MMMWrapper.predict#
- MMMWrapper.predict(context, model_input, params=None)[source]#
Perform predictions or sampling using the specified prediction method.
- Parameters:
- context
Any The context in which the model is running. Isn’t specified by users but is passed by MLflow.
- model_input
pd.DataFrame,shape(n_pred,n_features) The input data used for prediction.
- params
dict, optional A dictionary of parameters to specify the prediction method.
- context
- Returns:
ndarrayorInferenceDataThe predictions or samples generated by the model.
- Raises:
ValueErrorIf an unsupported prediction method is specified.