Skip to main content
Version: Cloud

Saving Model and Explainer objects with Deeploy Python Client

The Deeploy Python Client lets you save machine learning models and explainers from specific frameworks to a local folder in the required format. It also supports saving models and explainers from other frameworks or using 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")