MMMWrapper.load_context#
- MMMWrapper.load_context(context)#
Loads artifacts from the specified
PythonModelContextthat can be used bypredict()when evaluating inputs. When loading an MLflow model withload_model(), this method is called as soon as thePythonModelis constructed.The same
PythonModelContextwill 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
PythonModelContextinstance containing artifacts that the model can use to perform inference.
- context: A