Skip to main content

experiments

Creates, updates, deletes, gets or lists an experiments resource.

Overview

Nameexperiments
TypeResource
Idaws.sagemaker.experiments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_byobjectInformation about the user who created or modified a SageMaker resource.
creation_timestring (date-time)When the experiment was created.
descriptionstringThe description of the experiment. (pattern: <code>.*</code>)
display_namestringThe name of the experiment as displayed. If DisplayName isn't specified, ExperimentName is displayed. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,119}</code>)
experiment_arnstringThe Amazon Resource Name (ARN) of the experiment. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:experiment/.*</code>)
experiment_namestringThe name of the experiment. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,119}</code>)
last_modified_byobjectInformation about the user who created or modified a SageMaker resource.
last_modified_timestring (date-time)When the experiment was last modified.
sourceobjectThe Amazon Resource Name (ARN) of the source and, optionally, the type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_experimentselectregionProvides a list of an experiment's properties.
list_experimentsselectregionLists all the experiments in your account. The list can be filtered to show only experiments that were created in a specific time range. The list can be sorted by experiment name or creation time.
create_experimentinsertregion, ExperimentNameCreates a SageMaker experiment. An experiment is a collection of trials that are observed, compared and evaluated as a group. A trial is a set of steps, called trial components, that produce a machine learning model. In the Studio UI, trials are referred to as run groups and trial components are referred to as runs. The goal of an experiment is to determine the components that produce the best model. Multiple trials are performed, each one isolating and measuring the impact of a change to one or more inputs, while keeping the remaining inputs constant. When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK. You can add tags to experiments, trials, trial components and then use the Search API to search for the tags. To add a description to an experiment, specify the optional Description parameter. To add a description later, or to change the description, call the UpdateExperiment API. To get a list of all your experiments, call the ListExperiments API. To view an experiment's properties, call the DescribeExperiment API. To get a list of all the trials associated with an experiment, call the ListTrials API. To create a trial call the CreateTrial API.
update_experimentupdateregion, ExperimentNameAdds, updates, or removes the description of an experiment. Updates the display name of an experiment.
delete_experimentdeleteregionDeletes an SageMaker experiment. All trials associated with the experiment must be deleted first. Use the ListTrials API to get a list of the trials associated with the experiment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides a list of an experiment's properties.

SELECT
created_by,
creation_time,
description,
display_name,
experiment_arn,
experiment_name,
last_modified_by,
last_modified_time,
source
FROM aws.sagemaker.experiments
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a SageMaker experiment. An experiment is a collection of trials that are observed, compared and evaluated as a group. A trial is a set of steps, called trial components, that produce a machine learning model. In the Studio UI, trials are referred to as run groups and trial components are referred to as runs. The goal of an experiment is to determine the components that produce the best model. Multiple trials are performed, each one isolating and measuring the impact of a change to one or more inputs, while keeping the remaining inputs constant. When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK. You can add tags to experiments, trials, trial components and then use the Search API to search for the tags. To add a description to an experiment, specify the optional Description parameter. To add a description later, or to change the description, call the UpdateExperiment API. To get a list of all your experiments, call the ListExperiments API. To view an experiment's properties, call the DescribeExperiment API. To get a list of all the trials associated with an experiment, call the ListTrials API. To create a trial call the CreateTrial API.

INSERT INTO aws.sagemaker.experiments (
ExperimentName,
DisplayName,
Description,
Tags,
region
)
SELECT
'{{ ExperimentName }}' /* required */,
'{{ DisplayName }}',
'{{ Description }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
experiment_arn
;

UPDATE examples

Adds, updates, or removes the description of an experiment. Updates the display name of an experiment.

UPDATE aws.sagemaker.experiments
SET
ExperimentName = '{{ ExperimentName }}',
DisplayName = '{{ DisplayName }}',
Description = '{{ Description }}'
WHERE
region = '{{ region }}' --required
AND ExperimentName = '{{ ExperimentName }}' --required
RETURNING
experiment_arn;

DELETE examples

Deletes an SageMaker experiment. All trials associated with the experiment must be deleted first. Use the ListTrials API to get a list of the trials associated with the experiment.

DELETE FROM aws.sagemaker.experiments
WHERE region = '{{ region }}' --required
;