predict¶
- MultiModalEndpoint.predict(data: str | list[str] | DataFrame, **inference_kwargs: Any) Series[source]¶
Predict
datawith the deployed endpoint.This is intended for low-latency inference. For larger inputs, use
autogluon.cloud.MultiModalCloudPredictor.predict()instead.- Parameters:
data (str | list[str] | pd.DataFrame) –
Data to predict. One of:
a
pd.DataFrameor a local path to a data file.a local path to a single image file, or a list of local paths to image files.
**inference_kwargs (Any) – Additional args passed to the
predictcall of the AutoGluon predictor on the endpoint. Ifdatahas an image column, passimage_columnto name the column with absolute paths to local images; the images are encoded and sent with the request.
- Returns:
pd.Series – Predictions for
data.
SageMaker API
InvokeEndpoint: sends the data to the endpoint and returns the predictions. The payload is limited to 6 MB (4 MB for serverless endpoints).