Skip to main content

auto_ml_jobs

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

Overview

Nameauto_ml_jobs
TypeResource
Idaws.sagemaker.auto_ml_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
auto_ml_job_arnstringReturns the ARN of the AutoML job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:automl-job/.*</code>)
auto_ml_job_artifactsobjectReturns information on the job's artifacts found in AutoMLJobArtifacts.
auto_ml_job_configobjectReturns the configuration for the AutoML job.
auto_ml_job_namestringReturns the name of the AutoML job. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,31}</code>)
auto_ml_job_objectiveobjectReturns the job's objective.
auto_ml_job_secondary_statusstringReturns the secondary status of the AutoML job. (Starting, MaxCandidatesReached, Failed, Stopped, MaxAutoMLJobRuntimeReached, Stopping, CandidateDefinitionsGenerated, Completed, ExplainabilityError, DeployingModel, ModelDeploymentError, GeneratingModelInsightsReport, ModelInsightsError, AnalyzingData, FeatureEngineering, ModelTuning, GeneratingExplainabilityReport, TrainingModels, PreTraining)
auto_ml_job_statusstringReturns the status of the AutoML job. (Completed, InProgress, Failed, Stopped, Stopping)
best_candidateobjectThe best model candidate selected by SageMaker AI Autopilot using both the best objective metric and lowest InferenceLatency for an experiment.
creation_timestring (date-time)Returns the creation time of the AutoML job.
end_timestring (date-time)Returns the end time of the AutoML job.
failure_reasonstringReturns the failure reason for an AutoML job, when applicable.
generate_candidate_definitions_onlybooleanIndicates whether the output for an AutoML job generates candidate definitions only.
input_data_configarrayReturns the input data configuration for the AutoML job.
last_modified_timestring (date-time)Returns the job's last modified time.
model_deploy_configobjectIndicates whether the model was deployed automatically to an endpoint and the name of that endpoint if deployed automatically.
model_deploy_resultobjectProvides information about endpoint for the model deployment.
output_data_configobjectReturns the job's output data config.
partial_failure_reasonsarrayReturns a list of reasons for partial failures within an AutoML job.
problem_typestringReturns the job's problem type. (BinaryClassification, MulticlassClassification, Regression)
resolved_attributesobjectContains ProblemType, AutoMLJobObjective, and CompletionCriteria. If you do not provide these values, they are inferred.
role_arnstringThe ARN of the IAM role that has read permission to the input data location and write permission to the output data location in Amazon S3. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_auto_ml_jobselectregionReturns information about an AutoML job created by calling CreateAutoMLJob. AutoML jobs created by calling CreateAutoMLJobV2 cannot be described by DescribeAutoMLJob.
list_auto_ml_jobsselectregionRequest a list of jobs.
create_auto_ml_jobinsertregion, AutoMLJobName, InputDataConfig, OutputDataConfig, RoleArnCreates an Autopilot job also referred to as Autopilot experiment or AutoML job. An AutoML job in SageMaker AI is a fully automated process that allows you to build machine learning models with minimal effort and machine learning expertise. When initiating an AutoML job, you provide your data and optionally specify parameters tailored to your use case. SageMaker AI then automates the entire model development lifecycle, including data preprocessing, model training, tuning, and evaluation. AutoML jobs are designed to simplify and accelerate the model building process by automating various tasks and exploring different combinations of machine learning algorithms, data preprocessing techniques, and hyperparameter values. The output of an AutoML job comprises one or more trained models ready for deployment and inference. Additionally, SageMaker AI AutoML jobs generate a candidate model leaderboard, allowing you to select the best-performing model for deployment. For more information about AutoML jobs, see https:​//docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html in the SageMaker AI developer guide. We recommend using the new versions CreateAutoMLJobV2 and DescribeAutoMLJobV2, which offer backward compatibility. CreateAutoMLJobV2 can manage tabular problem types identical to those of its previous version CreateAutoMLJob, as well as time-series forecasting, non-tabular problem types such as image or text classification, and text generation (LLMs fine-tuning). Find guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. You can find the best-performing model after you run an AutoML job by calling DescribeAutoMLJobV2 (recommended) or DescribeAutoMLJob.
stop_auto_ml_jobexecregion, AutoMLJobNameA method for forcing a running job to shut down.

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

Returns information about an AutoML job created by calling CreateAutoMLJob. AutoML jobs created by calling CreateAutoMLJobV2 cannot be described by DescribeAutoMLJob.

SELECT
auto_ml_job_arn,
auto_ml_job_artifacts,
auto_ml_job_config,
auto_ml_job_name,
auto_ml_job_objective,
auto_ml_job_secondary_status,
auto_ml_job_status,
best_candidate,
creation_time,
end_time,
failure_reason,
generate_candidate_definitions_only,
input_data_config,
last_modified_time,
model_deploy_config,
model_deploy_result,
output_data_config,
partial_failure_reasons,
problem_type,
resolved_attributes,
role_arn
FROM aws.sagemaker.auto_ml_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Autopilot job also referred to as Autopilot experiment or AutoML job. An AutoML job in SageMaker AI is a fully automated process that allows you to build machine learning models with minimal effort and machine learning expertise. When initiating an AutoML job, you provide your data and optionally specify parameters tailored to your use case. SageMaker AI then automates the entire model development lifecycle, including data preprocessing, model training, tuning, and evaluation. AutoML jobs are designed to simplify and accelerate the model building process by automating various tasks and exploring different combinations of machine learning algorithms, data preprocessing techniques, and hyperparameter values. The output of an AutoML job comprises one or more trained models ready for deployment and inference. Additionally, SageMaker AI AutoML jobs generate a candidate model leaderboard, allowing you to select the best-performing model for deployment. For more information about AutoML jobs, see https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-automate-model-development.html in the SageMaker AI developer guide. We recommend using the new versions CreateAutoMLJobV2 and DescribeAutoMLJobV2, which offer backward compatibility. CreateAutoMLJobV2 can manage tabular problem types identical to those of its previous version CreateAutoMLJob, as well as time-series forecasting, non-tabular problem types such as image or text classification, and text generation (LLMs fine-tuning). Find guidelines about how to migrate a CreateAutoMLJob to CreateAutoMLJobV2 in Migrate a CreateAutoMLJob to CreateAutoMLJobV2. You can find the best-performing model after you run an AutoML job by calling DescribeAutoMLJobV2 (recommended) or DescribeAutoMLJob.

INSERT INTO aws.sagemaker.auto_ml_jobs (
AutoMLJobName,
InputDataConfig,
OutputDataConfig,
ProblemType,
AutoMLJobObjective,
AutoMLJobConfig,
RoleArn,
GenerateCandidateDefinitionsOnly,
Tags,
ModelDeployConfig,
region
)
SELECT
'{{ AutoMLJobName }}' /* required */,
'{{ InputDataConfig }}' /* required */,
'{{ OutputDataConfig }}' /* required */,
'{{ ProblemType }}',
'{{ AutoMLJobObjective }}',
'{{ AutoMLJobConfig }}',
'{{ RoleArn }}' /* required */,
{{ GenerateCandidateDefinitionsOnly }},
'{{ Tags }}',
'{{ ModelDeployConfig }}',
'{{ region }}'
RETURNING
auto_ml_job_arn
;

Lifecycle Methods

A method for forcing a running job to shut down.

EXEC aws.sagemaker.auto_ml_jobs.stop_auto_ml_job
@region='{{ region }}' --required
@@json=
'{
"AutoMLJobName": "{{ AutoMLJobName }}"
}'
;