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
statusmethod.
Examples
Related guide: How to upload datasets and models for development.
Let’s say you have initially used the
add_modelmethod 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
statusmethod:>>> project.status()
You can then remove the model from the staging area with the
restoremethod:>>> project.restore(resource_name="model")