Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0
Contains information about a training job.
AlgorithmSpecification Information about the algorithm used for training, and algorithm metadata.
Type: AlgorithmSpecification object
Required: No
CreationTime A timestamp that indicates when the training job was created.
Type: Timestamp
Required: No
EnableInterContainerTrafficEncryption To encrypt all communications between ML compute instances in distributed training, choose True
. Encryption provides greater security for distributed training, but training might take longer. How long it takes depends on the amount of communication between compute instances, especially if you use a deep learning algorithm in distributed training.
Type: Boolean
Required: No
EnableNetworkIsolation If the TrainingJob
was created with network isolation, the value is set to true
. If network isolation is enabled, nodes can’t communicate beyond the VPC they run in.
Type: Boolean
Required: No
FailureReason If the training job failed, the reason it failed.
Type: String
Length Constraints: Maximum length of 1024.
Required: No
FinalMetricDataList A list of final metric values that are set when the training job completes. Used only if the training job was configured to use metrics.
Type: Array of MetricData objects
Array Members: Minimum number of 0 items. Maximum number of 20 items.
Required: No
HyperParameters Algorithm-specific parameters.
Type: String to string map
Key Length Constraints: Maximum length of 256.
Key Pattern: .*
Value Length Constraints: Maximum length of 256.
Value Pattern: .*
Required: No
InputDataConfig An array of Channel
objects that describes each data input channel.
Type: Array of Channel objects
Array Members: Minimum number of 1 item. Maximum number of 20 items.
Required: No
LabelingJobArn The Amazon Resource Name (ARN) of the labeling job.
Type: String
Length Constraints: Maximum length of 2048.
Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:labeling-job/.*
Required: No
LastModifiedTime A timestamp that indicates when the status of the training job was last modified.
Type: Timestamp
Required: No
ModelArtifacts Information about the Amazon S3 location that is configured for storing model artifacts.
Type: ModelArtifacts object
Required: No
OutputDataConfig The S3 path where model artifacts that you configured when creating the job are stored. Amazon SageMaker creates subfolders for model artifacts.
Type: OutputDataConfig object
Required: No
ResourceConfig Resources, including ML compute instances and ML storage volumes, that are configured for model training.
Type: ResourceConfig object
Required: No
RoleArn The AWS Identity and Access Management (IAM) role configured for the training job.
Type: String
Length Constraints: Minimum length of 20. Maximum length of 2048.
Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$
Required: No
SecondaryStatus Provides detailed information about the state of the training job. For detailed information about the secondary status of the training job, see StatusMessage
under SecondaryStatusTransition.
Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:
InProgress
+ Starting
- Starting the training job. + Downloading
- An optional stage for algorithms that support File
training input mode. It indicates that data is being downloaded to the ML storage volumes. + Training
- Training is in progress. + Uploading
- Training is complete and the model artifacts are being uploaded to the S3 location.
Completed
+ Completed
- The training job has completed.
Failed
+ Failed
- The training job has failed. The reason for the failure is returned in the FailureReason
field of DescribeTrainingJobResponse
.
Stopped
+ MaxRuntimeExceeded
- The job stopped because it exceeded the maximum allowed runtime. + Stopped
- The training job has stopped.
Stopping
+ Stopping
- Stopping the training job. Valid values for SecondaryStatus
are subject to change. We no longer support the following secondary statuses:
+ LaunchingMLInstances
+ PreparingTrainingStack
+ DownloadingTrainingImage
Type: String
Valid Values:Starting | LaunchingMLInstances | PreparingTrainingStack | Downloading | DownloadingTrainingImage | Training | Uploading | Stopping | Stopped | MaxRuntimeExceeded | Completed | Failed | Interrupted | MaxWaitTimeExceeded
Required: No
SecondaryStatusTransitions A history of all of the secondary statuses that the training job has transitioned through.
Type: Array of SecondaryStatusTransition objects
Required: No
StoppingCondition Specifies a limit to how long a model training job can run. When the job reaches the time limit, Amazon SageMaker ends the training job. Use this API to cap model training costs.
To stop a job, Amazon SageMaker sends the algorithm the SIGTERM
signal, which delays job termination for 120 seconds. Algorithms can use this 120-second window to save the model artifacts, so the results of training are not lost.
Type: StoppingCondition object
Required: No
Tags An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
Type: Array of Tag objects
Array Members: Minimum number of 0 items. Maximum number of 50 items.
Required: No
TrainingEndTime Indicates the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime
and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.
Type: Timestamp
Required: No
TrainingJobArn The Amazon Resource Name (ARN) of the training job.
Type: String
Length Constraints: Maximum length of 256.
Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:training-job/.*
Required: No
TrainingJobName The name of the training job.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 63.
Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9])*
Required: No
TrainingJobStatus The status of the training job.
Training job statuses are:
+ InProgress
- The training is in progress. + Completed
- The training job has completed. + Failed
- The training job has failed. To see the reason for the failure, see the FailureReason
field in the response to a DescribeTrainingJobResponse
call. + Stopping
- The training job is stopping. + Stopped
- The training job has stopped. For more detailed information, see SecondaryStatus
.
Type: String
Valid Values:InProgress | Completed | Failed | Stopping | Stopped
Required: No
TrainingStartTime Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime
. The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.
Type: Timestamp
Required: No
TuningJobArn The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.
Type: String
Length Constraints: Maximum length of 256.
Pattern: arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:hyper-parameter-tuning-job/.*
Required: No
VpcConfig A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.
Type: VpcConfig object
Required: No
For more information about using this API in one of the language-specific AWS SDKs, see the following: + AWS SDK for C++ + AWS SDK for Go + AWS SDK for Go - Pilot + AWS SDK for Java + AWS SDK for Ruby V2