Use the Vertex AI SDK for Python to create and manage your experiment runs. You can use the Google Cloud console to delete experiment runs.
Vertex AI SDK for Python
The following samples use the methods init
,
start_run
,
and end_run
from the aiplatform
Package
functions, and delete
from the ExperimentClass
.
Create and start run
Python
experiment_name
: Provide the name of your experiment. You can find your list of experiments in the Google Cloud console by selecting "Experiments" in the section nav.run_name
: Specify a run name to associate with your current session. Seestart_run
in the Vertex AI SDK reference documentation.experiment_run_tensorboard
: Optional. A backing TensorBoard resource to enable and store time series metrics logged to this experiment run usinglog_time_series_metrics
.project
: Your project ID. You can find these IDs in the Google Cloud console welcome page.location
: See List of available locations
End run
Python
experiment_name
: Provide the name of your experiment. You can find your list of experiments in the Google Cloud console by selecting "Experiments" in the section nav.run_name
: Specify a run name.project
: Your project ID. You can find these in the Google Cloud console welcome page.location
: See List of available locations
Resume run
Python
experiment_name
: Provide the name of your experiment. You can find your list of experiments in the Google Cloud console by selecting "Experiments" in the section nav.run_name
: Specify name of run that you want to resume.project
: Your project ID. You can find these in the Google Cloud console welcome page.location
: See List of available locations
Delete run
Python
experiment
: The name or instance of this experiment. You can find your list of experiments in the Google Cloud console by selecting "Experiments" in the section nav.run_name
: Specify name of run that you want to delete.project
: Your project ID. You can find these in the Google Cloud console welcome page.location
: See List of available locationsdelete_backing_tensorboard_run
: Whether to delete the backing Vertex AI TensorBoard run that stores time series metrics for this run.
Manage status
Python
run_name
: run name associated with your experimentexperiment_name
: name of your experiment. You can find your list of experiments in the Google Cloud console by selecting Experiments in the section nav.project
: Your project ID. You can find these Project IDs in the Google Cloud console welcome page.location
: See List of available locationsstate
: Possible values forstate
, which shows up as "status" in the Google Cloud console, are:aiplatform.gapic.Execution.State.CACHED
aiplatform.gapic.Execution.State.CANCELLED
aiplatform.gapic.Execution.State.COMPLETE
aiplatform.gapic.Execution.State.FAILED
aiplatform.gapic.Execution.State.NEW
aiplatform.gapic.Execution.State.RUNNING
Google Cloud console
Follow these steps to delete an experiment run.- In the Google Cloud console, go to the Experiments page.
Go to Experiments - In the experiment details page, click the name of the experiment that is associated with the experiment run you want to delete. The Experiment runs page appears with the list of all the experiment runs for that experiment.
- Select the checkbox associated with the run that you want to delete. The Delete button appears.
- Click Delete
- Alternatively, you can go to the options menu that's in the same row as the experiment run and select delete.
View list of experiment runs and run details
The Google Cloud console provides a visualization of the data associated with these runs.