12-23-2022, 10:54 AM
from Notebook.DSNotebook.NotebookExecutor import NotebookExecutor
nb = NotebookExecutor()
saved_model = nb.save_model(model = 'model', modelName = 'cluster_model.pkl', modelType = 'ml')
Using this code we can save the data as model. Here ‘modelName’ represents the name with which we are saving.
But in order to use it as model we have to register it.
In order to register it as Model
Go to the option called Models which is available in Right side panel of DS lab.
There go to 3dots which is right next to our model name. There we have to select register option.
nb = NotebookExecutor()
saved_model = nb.save_model(model = 'model', modelName = 'cluster_model.pkl', modelType = 'ml')
Using this code we can save the data as model. Here ‘modelName’ represents the name with which we are saving.
But in order to use it as model we have to register it.
In order to register it as Model
Go to the option called Models which is available in Right side panel of DS lab.
There go to 3dots which is right next to our model name. There we have to select register option.