MMMWrapper.load_context#
- MMMWrapper.load_context(context)#
Loads artifacts from the specified
PythonModelContext
that can be used bypredict()
when evaluating inputs. When loading an MLflow model withload_model()
, this method is called as soon as thePythonModel
is constructed.The same
PythonModelContext
will also be available during calls topredict()
, but it may be more efficient to override this method and load artifacts from the context at model load time.- Args:
- context: A
PythonModelContext
instance containing artifacts that the model can use to perform inference.
- context: A