Interacting with saved models¶
This is the main class that you will use in Python recipes and the iPython notebook.
For starting code samples, please see Python recipes.
-
class
dataiku.
Model
(lookup, project_key=None)¶ This is a handle to interact with a saved model
-
activate_version
(version_id)¶ Activate a version in the model
Parameters: version_id – the unique identifier of the version to activate
-
get_id
()¶ Get the unique identifier of the model
-
get_name
()¶ Get the name of the model
-
get_type
()¶ Get the type of the model, prediction or clustering
-
get_version_metrics
(version_id)¶ Get the training metrics of a version of this model, as a
SavedModelVersionMetrics
Parameters: version_id – the unique identifier of the version for which to retrieve metrics
-
static
list_models
(project_key)¶ Retrieve the list of saved models
Parameters: project_key – key of the project from which to list models
-
list_versions
()¶ List the versions this saved model contains
-