openlayer.Project.restore#

Project.restore(*args, **kwargs)#

Removes the resources specified 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

Related guide: How to upload datasets and models for development.

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")