openlayer.OpenlayerClient.restore#

OpenlayerClient.restore(*resource_names, project_id)#

Removes the resource specified by resource_name from the staging area.

Parameters
*resource_namesstr

The names of the resources to restore, separated by comma. Valid resource names are "model", "training", and "validation".

Important

To see the names of the resources staged, use the status method.

Examples

Let’s say you have initially used the add_model method to add a model to the staging area.

>>> project.add_model(
...     model_package_dir="/path/to/model/package",
...     sample_data=df
... )

You can see the model staged with the status method:

>>> project.status()

You can then remove the model from the staging area with the restore method:

>>> project.restore(resource_name="model")