Skip to content

Commit

Permalink
made the parameter optional
Browse files Browse the repository at this point in the history
Signed-off-by: Yerzhaisang Taskali <[email protected]>
  • Loading branch information
Yerzhaisang committed Dec 10, 2024
1 parent f012eb6 commit c887ae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opensearch_py_ml/ml_commons/ml_commons_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@ def unload_model(self, model_id: str, node_ids: List[str] = []) -> object:
body=API_BODY,
)

def predict(self, algorithm_name: str, model_id: str, predict_object: dict) -> dict:
def predict(
self, model_id: str, predict_object: dict, algorithm_name: str = None
) -> dict:
"""
Generalized predict method to make predictions using different ML algorithms.
Expand Down

0 comments on commit c887ae3

Please sign in to comment.