Skip to main content
Version: Cloud

Saving Model and Explainer objects with Deeploy Python Client

Easily save machine learning models in the required format. Using the Deeploy Python Client, you can save models and explainers of certain frameworks to a local folder without knowing the details of the required format. You can also save the models and explainers of other supported frameworks or use a remote repository.

danger

Make sure to use supported versions of the libraries used to save the models.

from deeploy.services import ModelWrapper, ExplainerWrapper

model_wrapper = ModelWrapper(model)
model_wrapper.save(local_folder_path="./model")

explainer_wrapper = ExplainerWrapper(explainer)
explainer_wrapper.save(local_folder_path="./explainer")