Skip to content

Commit

Permalink
fixed docstring typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LEFTA98 committed Aug 31, 2022
1 parent 1b79f62 commit 18ebcaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opensearch_py_ml/sagemaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import numpy as np
from opensearch_py_ml import DataFrame
from typing import List, Optional
from typing import List, Optional, Dict, Tuple, Any
from math import ceil

from sagemaker import RealTimePredictor, Session
Expand All @@ -21,7 +21,7 @@ def make_sagemaker_prediction(endpoint_name: str,
column_order: Optional[List[str]] = None,
chunksize: int = None,
sort_index: Optional[str] = '_doc'
)-> np.array:
) -> Tuple[List[Any], Dict[Any, Any]]:
"""
Make a prediction on an opensearch_py_ml dataframe using a deployed SageMaker model endpoint.
Expand All @@ -44,7 +44,7 @@ def make_sagemaker_prediction(endpoint_name: str,
Returns
----------
np.array representing the output of the model on input data
list representing the indices, dictionary representing the output of the model on input data
"""
predictor = RealTimePredictor(endpoint=endpoint_name, sagemaker_session=sagemaker_session, content_type='text/csv')
data = data.drop(columns=target_column)
Expand Down

0 comments on commit 18ebcaa

Please sign in to comment.