MMMWrapper.load_context#

MMMWrapper.load_context(context)#

Loads artifacts from the specified PythonModelContext that can be used by predict() when evaluating inputs. When loading an MLflow model with load_model(), this method is called as soon as the PythonModel is constructed.

The same PythonModelContext will also be available during calls to predict(), 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.