Skip to content

aws.sagemaker.describe_auto_ml_job

Example SQL Queries

SELECT * FROM
aws.sagemaker.describe_auto_ml_job
WHERE
"auto_ml_job_name" = 'VALUE';

Description

Returns information about an AutoML job created by calling CreateAutoMLJob.

AutoML jobs created by calling CreateAutoMLJobV2 cannot be described by DescribeAutoMLJob.

Table Definition

Column NameColumn Data Type
auto_ml_job_name Required Input Column

Returns the name of the AutoML job.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

auto_ml_job_arn

Returns the ARN of the AutoML job.

VARCHAR
auto_ml_job_artifacts

Returns information on the job's artifacts found in AutoMLJobArtifacts.

STRUCT(
"candidate_definition_notebook_location" VARCHAR,
"data_exploration_notebook_location" VARCHAR
)
Show child fields
auto_ml_job_artifacts.candidate_definition_notebook_location

The URL of the notebook location.

auto_ml_job_artifacts.data_exploration_notebook_location

The URL of the notebook location.

auto_ml_job_config

Returns the configuration for the AutoML job.

STRUCT(
"completion_criteria" STRUCT(
"max_candidates" BIGINT,
"max_runtime_per_training_job_in_seconds" BIGINT,
"max_auto_ml_job_runtime_in_seconds" BIGINT
),
"security_config" STRUCT(
"volume_kms_key_id" VARCHAR,
"enable_inter_container_traffic_encryption" BOOLEAN,
"vpc_config" STRUCT(
"security_group_ids" VARCHAR[],
"subnets" VARCHAR[]
)
),
"candidate_generation_config" STRUCT(
"feature_specification_s3_uri" VARCHAR,
"algorithms_config" STRUCT(
"auto_ml_algorithms" VARCHAR[]
)[]
),
"data_split_config" STRUCT(
"validation_fraction" DOUBLE
),
"mode" VARCHAR
)
Show child fields
auto_ml_job_config.candidate_generation_config

The configuration for generating a candidate for an AutoML job (optional).

Show child fields
auto_ml_job_config.candidate_generation_config.algorithms_config[]
Show child fields
auto_ml_job_config.candidate_generation_config.algorithms_config[].auto_ml_algorithms[]
auto_ml_job_config.candidate_generation_config.feature_specification_s3_uri

A URL to the Amazon S3 data source containing selected features from the input data source to run an Autopilot job. You can input FeatureAttributeNames (optional) in JSON format as shown below:

{ "FeatureAttributeNames":["col1", "col2", ...] }.

You can also specify the data type of the feature (optional) in the format shown below:

{ "FeatureDataTypes":{"col1":"numeric", "col2":"categorical" ... } }

These column keys may not include the target column.

In ensembling mode, Autopilot only supports the following data types: numeric, categorical, text, and datetime. In HPO mode, Autopilot can support numeric, categorical, text, datetime, and sequence.

If only FeatureDataTypes is provided, the column keys (col1, col2,..) should be a subset of the column names in the input data.

If both FeatureDataTypes and FeatureAttributeNames are provided, then the column keys should be a subset of the column names provided in FeatureAttributeNames.

The key name FeatureAttributeNames is fixed. The values listed in ["col1", "col2", ...] are case sensitive and should be a list of strings containing unique values that are a subset of the column names in the input data. The list of columns provided must not include the target column.

auto_ml_job_config.completion_criteria

How long an AutoML job is allowed to run, or how many candidates a job is allowed to generate.

Show child fields
auto_ml_job_config.completion_criteria.max_auto_ml_job_runtime_in_seconds

The maximum runtime, in seconds, an AutoML job has to complete.

If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended gracefully. The AutoML job identifies the best model whose training was completed and marks it as the best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, are not completed.

auto_ml_job_config.completion_criteria.max_candidates

The maximum number of times a training job is allowed to run.

For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem types, the supported value is 1. For tabular problem types, the maximum value is 750.

auto_ml_job_config.completion_criteria.max_runtime_per_training_job_in_seconds

The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a hyperparameter tuning job. For more information, see the StoppingCondition used by the CreateHyperParameterTuningJob action.

For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job candidate.

For TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds).

auto_ml_job_config.data_split_config

The configuration for splitting the input training dataset.

Type: AutoMLDataSplitConfig

Show child fields
auto_ml_job_config.data_split_config.validation_fraction

The validation fraction (optional) is a float that specifies the portion of the training dataset to be used for validation. The default value is 0.2, and values must be greater than 0 and less than 1. We recommend setting this value to be less than 0.5.

auto_ml_job_config.mode

The method that Autopilot uses to train the data. You can either specify the mode manually or let Autopilot choose for you based on the dataset size by selecting AUTO. In AUTO mode, Autopilot chooses ENSEMBLING for datasets smaller than 100 MB, and HYPERPARAMETER_TUNING for larger ones.

The ENSEMBLING mode uses a multi-stack ensemble model to predict classification and regression tasks directly from your dataset. This machine learning mode combines several base models to produce an optimal predictive model. It then uses a stacking ensemble method to combine predictions from contributing members. A multi-stack ensemble model can provide better performance over a single model by combining the predictive capabilities of multiple models. See Autopilot algorithm support for a list of algorithms supported by ENSEMBLING mode.

The HYPERPARAMETER_TUNING (HPO) mode uses the best hyperparameters to train the best version of a model. HPO automatically selects an algorithm for the type of problem you want to solve. Then HPO finds the best hyperparameters according to your objective metric. See Autopilot algorithm support for a list of algorithms supported by HYPERPARAMETER_TUNING mode.

auto_ml_job_config.security_config

The security configuration for traffic encryption or Amazon VPC settings.

Show child fields
auto_ml_job_config.security_config.enable_inter_container_traffic_encryption

Whether to use traffic encryption between the container layers.

auto_ml_job_config.security_config.volume_kms_key_id

The key used to encrypt stored data.

auto_ml_job_config.security_config.vpc_config

The VPC configuration.

Show child fields
auto_ml_job_config.security_config.vpc_config.security_group_ids[]
auto_ml_job_config.security_config.vpc_config.subnets[]
auto_ml_job_objective

Returns the job's objective.

STRUCT(
"metric_name" VARCHAR
)
Show child fields
auto_ml_job_objective.metric_name

The name of the objective metric used to measure the predictive quality of a machine learning system. During training, the model's parameters are updated iteratively to optimize its performance based on the feedback provided by the objective metric when evaluating the model on the validation dataset.

The list of available metrics supported by Autopilot and the default metric applied when you do not specify a metric name explicitly depend on the problem type.

  • For tabular problem types:

    • List of available metrics:

      • Regression: MAE, MSE, R2, RMSE

      • Binary classification: Accuracy, AUC, BalancedAccuracy, F1, Precision, Recall

      • Multiclass classification: Accuracy, BalancedAccuracy, F1macro, PrecisionMacro, RecallMacro

      For a description of each metric, see Autopilot metrics for classification and regression.

    • Default objective metrics:

      • Regression: MSE.

      • Binary classification: F1.

      • Multiclass classification: Accuracy.

  • For image or text classification problem types:

  • For time-series forecasting problem types:

  • For text generation problem types (LLMs fine-tuning): Fine-tuning language models in Autopilot does not require setting the AutoMLJobObjective field. Autopilot fine-tunes LLMs without requiring multiple candidates to be trained and evaluated. Instead, using your dataset, Autopilot directly fine-tunes your target model to enhance a default objective metric, the cross-entropy loss. After fine-tuning a language model, you can evaluate the quality of its generated text using different metrics. For a list of the available metrics, see Metrics for fine-tuning LLMs in Autopilot.

auto_ml_job_secondary_status

Returns the secondary status of the AutoML job.

VARCHAR
auto_ml_job_status

Returns the status of the AutoML job.

VARCHAR
best_candidate

The best model candidate selected by SageMaker Autopilot using both the best objective metric and lowest InferenceLatency for an experiment.

STRUCT(
"candidate_name" VARCHAR,
"final_auto_ml_job_objective_metric" STRUCT(
"type" VARCHAR,
"metric_name" VARCHAR,
"value" DOUBLE,
"standard_metric_name" VARCHAR
),
"objective_status" VARCHAR,
"candidate_steps" STRUCT(
"candidate_step_type" VARCHAR,
"candidate_step_arn" VARCHAR,
"candidate_step_name" VARCHAR
)[],
"candidate_status" VARCHAR,
"inference_containers" STRUCT(
"image" VARCHAR,
"model_data_url" VARCHAR,
"environment" MAP(VARCHAR, VARCHAR)
)[],
"creation_time" TIMESTAMP_S,
"end_time" TIMESTAMP_S,
"last_modified_time" TIMESTAMP_S,
"failure_reason" VARCHAR,
"candidate_properties" STRUCT(
"candidate_artifact_locations" STRUCT(
"explainability" VARCHAR,
"model_insights" VARCHAR,
"backtest_results" VARCHAR
),
"candidate_metrics" STRUCT(
"metric_name" VARCHAR,
"value" DOUBLE,
"set" VARCHAR,
"standard_metric_name" VARCHAR
)[]
),
"inference_container_definitions" MAP(VARCHAR, STRUCT(
"image" VARCHAR,
"model_data_url" VARCHAR,
"environment" MAP(VARCHAR, VARCHAR)
)[])
)
Show child fields
best_candidate.candidate_name

The name of the candidate.

best_candidate.candidate_properties

The properties of an AutoML candidate job.

Show child fields
best_candidate.candidate_properties.candidate_artifact_locations

The Amazon S3 prefix to the artifacts generated for an AutoML candidate.

Show child fields
best_candidate.candidate_properties.candidate_artifact_locations.backtest_results

The Amazon S3 prefix to the accuracy metrics and the inference results observed over the testing window. Available only for the time-series forecasting problem type.

best_candidate.candidate_properties.candidate_artifact_locations.explainability

The Amazon S3 prefix to the explainability artifacts generated for the AutoML candidate.

best_candidate.candidate_properties.candidate_artifact_locations.model_insights

The Amazon S3 prefix to the model insight artifacts generated for the AutoML candidate.

best_candidate.candidate_properties.candidate_metrics[]
Show child fields
best_candidate.candidate_properties.candidate_metrics[].metric_name

The name of the metric.

best_candidate.candidate_properties.candidate_metrics[].set

The dataset split from which the AutoML job produced the metric.

best_candidate.candidate_properties.candidate_metrics[].standard_metric_name

The name of the standard metric.

For definitions of the standard metrics, see Autopilot candidate metrics .

best_candidate.candidate_properties.candidate_metrics[].value

The value of the metric.

best_candidate.candidate_status

The candidate's status.

best_candidate.candidate_steps[]
Show child fields
best_candidate.candidate_steps[].candidate_step_arn

The ARN for the candidate's step.

best_candidate.candidate_steps[].candidate_step_name

The name for the candidate's step.

best_candidate.candidate_steps[].candidate_step_type

Whether the candidate is at the transform, training, or processing step.

best_candidate.creation_time

The creation time.

best_candidate.end_time

The end time.

best_candidate.failure_reason

The failure reason.

best_candidate.final_auto_ml_job_objective_metric

The best candidate result from an AutoML training job.

Show child fields
best_candidate.final_auto_ml_job_objective_metric.metric_name

The name of the metric with the best result. For a description of the possible objective metrics, see AutoMLJobObjective$MetricName.

best_candidate.final_auto_ml_job_objective_metric.standard_metric_name

The name of the standard metric. For a description of the standard metrics, see Autopilot candidate metrics.

best_candidate.final_auto_ml_job_objective_metric.type

The type of metric with the best result.

best_candidate.final_auto_ml_job_objective_metric.value

The value of the metric with the best result.

best_candidate.inference_container_definitions

The mapping of all supported processing unit (CPU, GPU, etc...) to inference container definitions for the candidate. This field is populated for the AutoML jobs V2 (for example, for jobs created by calling CreateAutoMLJobV2) related to image or text classification problem types only.

best_candidate.inference_containers[]
Show child fields
best_candidate.inference_containers[].environment

The environment variables to set in the container. For more information, see ContainerDefinition.

best_candidate.inference_containers[].image

The Amazon Elastic Container Registry (Amazon ECR) path of the container. For more information, see ContainerDefinition.

best_candidate.inference_containers[].model_data_url

The location of the model artifacts. For more information, see ContainerDefinition.

best_candidate.last_modified_time

The last modified time.

best_candidate.objective_status

The objective's status.

creation_time

Returns the creation time of the AutoML job.

TIMESTAMP_S
end_time

Returns the end time of the AutoML job.

TIMESTAMP_S
failure_reason

Returns the failure reason for an AutoML job, when applicable.

VARCHAR
generate_candidate_definitions_only

Indicates whether the output for an AutoML job generates candidate definitions only.

BOOLEAN
input_data_config

Returns the input data configuration for the AutoML job.

STRUCT(
"data_source" STRUCT(
"s3_data_source" STRUCT(
"s3_data_type" VARCHAR,
"s3_uri" VARCHAR
)
),
"compression_type" VARCHAR,
"target_attribute_name" VARCHAR,
"content_type" VARCHAR,
"channel_type" VARCHAR,
"sample_weight_attribute_name" VARCHAR
)[]
Show child fields
input_data_config[]
Show child fields
input_data_config[].channel_type

The channel type (optional) is an enum string. The default value is training. Channels for training and validation must share the same ContentType and TargetAttributeName. For information on specifying training and validation channel types, see How to specify training and validation datasets.

input_data_config[].compression_type

You can use Gzip or None. The default value is None.

input_data_config[].content_type

The content type of the data from the input source. You can use text/csv;header=present or x-application/vnd.amazon+parquet. The default value is text/csv;header=present.

input_data_config[].data_source

The data source for an AutoML channel.

Show child fields
input_data_config[].data_source.s3_data_source

The Amazon S3 location of the input data.

Show child fields
input_data_config[].data_source.s3_data_source.s3_data_type

The data type.

  • If you choose S3Prefix, S3Uri identifies a key name prefix. SageMaker uses all objects that match the specified key name prefix for model training.

    The S3Prefix should have the following format:

    s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE

  • If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want SageMaker to use for model training.

    A ManifestFile should have the format shown below:

    [ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"},

    "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",

    "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",

    ... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]

  • If you choose AugmentedManifestFile, S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile is available for V2 API jobs only (for example, for jobs created by calling CreateAutoMLJobV2).

    Here is a minimal, single-record example of an AugmentedManifestFile:

    {"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",

    "label-metadata": {"class-name": "cat" }

    For more information on AugmentedManifestFile, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.

input_data_config[].data_source.s3_data_source.s3_uri

The URL to the Amazon S3 data source. The Uri refers to the Amazon S3 prefix or ManifestFile depending on the data type.

input_data_config[].sample_weight_attribute_name

If specified, this column name indicates which column of the dataset should be treated as sample weights for use by the objective metric during the training, evaluation, and the selection of the best model. This column is not considered as a predictive feature. For more information on Autopilot metrics, see Metrics and validation.

Sample weights should be numeric, non-negative, with larger values indicating which rows are more important than others. Data points that have invalid or no weight value are excluded.

Support for sample weights is available in Ensembling mode only.

input_data_config[].target_attribute_name

The name of the target variable in supervised learning, usually represented by 'y'.

last_modified_time

Returns the job's last modified time.

TIMESTAMP_S
model_deploy_config

Indicates whether the model was deployed automatically to an endpoint and the name of that endpoint if deployed automatically.

STRUCT(
"auto_generate_endpoint_name" BOOLEAN,
"endpoint_name" VARCHAR
)
Show child fields
model_deploy_config.auto_generate_endpoint_name

Set to True to automatically generate an endpoint name for a one-click Autopilot model deployment; set to False otherwise. The default value is False.

If you set AutoGenerateEndpointName to True, do not specify the EndpointName; otherwise a 400 error is thrown.

model_deploy_config.endpoint_name

Specifies the endpoint name to use for a one-click Autopilot model deployment if the endpoint name is not generated automatically.

Specify the EndpointName if and only if you set AutoGenerateEndpointName to False; otherwise a 400 error is thrown.

model_deploy_result

Provides information about endpoint for the model deployment.

STRUCT(
"endpoint_name" VARCHAR
)
Show child fields
model_deploy_result.endpoint_name

The name of the endpoint to which the model has been deployed.

If model deployment fails, this field is omitted from the response.

output_data_config

Returns the job's output data config.

STRUCT(
"kms_key_id" VARCHAR,
"s3_output_path" VARCHAR
)
Show child fields
output_data_config.kms_key_id

The Key Management Service encryption key ID.

output_data_config.s3_output_path

The Amazon S3 output path. Must be 512 characters or less.

partial_failure_reasons

Returns a list of reasons for partial failures within an AutoML job.

STRUCT(
"partial_failure_message" VARCHAR
)[]
Show child fields
partial_failure_reasons[]
Show child fields
partial_failure_reasons[].partial_failure_message

The message containing the reason for a partial failure of an AutoML job.

problem_type

Returns the job's problem type.

VARCHAR
resolved_attributes

Contains ProblemType, AutoMLJobObjective, and CompletionCriteria. If you do not provide these values, they are inferred.

STRUCT(
"auto_ml_job_objective" STRUCT(
"metric_name" VARCHAR
),
"problem_type" VARCHAR,
"completion_criteria" STRUCT(
"max_candidates" BIGINT,
"max_runtime_per_training_job_in_seconds" BIGINT,
"max_auto_ml_job_runtime_in_seconds" BIGINT
)
)
Show child fields
resolved_attributes.auto_ml_job_objective

Specifies a metric to minimize or maximize as the objective of an AutoML job.

Show child fields
resolved_attributes.auto_ml_job_objective.metric_name

The name of the objective metric used to measure the predictive quality of a machine learning system. During training, the model's parameters are updated iteratively to optimize its performance based on the feedback provided by the objective metric when evaluating the model on the validation dataset.

The list of available metrics supported by Autopilot and the default metric applied when you do not specify a metric name explicitly depend on the problem type.

  • For tabular problem types:

    • List of available metrics:

      • Regression: MAE, MSE, R2, RMSE

      • Binary classification: Accuracy, AUC, BalancedAccuracy, F1, Precision, Recall

      • Multiclass classification: Accuracy, BalancedAccuracy, F1macro, PrecisionMacro, RecallMacro

      For a description of each metric, see Autopilot metrics for classification and regression.

    • Default objective metrics:

      • Regression: MSE.

      • Binary classification: F1.

      • Multiclass classification: Accuracy.

  • For image or text classification problem types:

  • For time-series forecasting problem types:

  • For text generation problem types (LLMs fine-tuning): Fine-tuning language models in Autopilot does not require setting the AutoMLJobObjective field. Autopilot fine-tunes LLMs without requiring multiple candidates to be trained and evaluated. Instead, using your dataset, Autopilot directly fine-tunes your target model to enhance a default objective metric, the cross-entropy loss. After fine-tuning a language model, you can evaluate the quality of its generated text using different metrics. For a list of the available metrics, see Metrics for fine-tuning LLMs in Autopilot.

resolved_attributes.completion_criteria

How long a job is allowed to run, or how many candidates a job is allowed to generate.

Show child fields
resolved_attributes.completion_criteria.max_auto_ml_job_runtime_in_seconds

The maximum runtime, in seconds, an AutoML job has to complete.

If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended gracefully. The AutoML job identifies the best model whose training was completed and marks it as the best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, are not completed.

resolved_attributes.completion_criteria.max_candidates

The maximum number of times a training job is allowed to run.

For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem types, the supported value is 1. For tabular problem types, the maximum value is 750.

resolved_attributes.completion_criteria.max_runtime_per_training_job_in_seconds

The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a hyperparameter tuning job. For more information, see the StoppingCondition used by the CreateHyperParameterTuningJob action.

For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job candidate.

For TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds).

resolved_attributes.problem_type

The problem type.

role_arn

The 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.

VARCHAR