mb.add_models(models)
Adds one or more models to the model registry. The registry is updated with the new model if a an entry with that name already exists.
Parameters
models
:Dict[str, Any]
A dictionary of{ modelName: modelVariable }
. The keys of the dictionary must be strings. The values are the models to store. The values are Python variables, not paths to.pkl
files.
Returns
No value is returned. A success status message is printed if the command is successful.
Examples
Adding a model
mb.add_models({ "example_model": my_model })
Adding multiple models
mb.add_models({ "example_model": my_model, "another_model": other_model })
Adding multiple model to the "finance" directory
mb.add_models({ "finance/example_model": my_model, "finance/another_model": other_model })