TrainingJob
¶
Source code in docs_src/capo_sagemaker/types/training_job.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
algorithm_specification
instance-attribute
¶
algorithm_specification: NotRequired[AlgorithmSpecification]
Information about the algorithm used for training, and algorithm metadata.
auto_ml_job_arn
instance-attribute
¶
auto_ml_job_arn: NotRequired[AutoMLJobArn]
The Amazon Resource Name (ARN) of the job.
billable_time_in_seconds
instance-attribute
¶
billable_time_in_seconds: NotRequired[BillableTimeInSeconds]
The billable time in seconds.
creation_time
instance-attribute
¶
creation_time: NotRequired[Timestamp]
A timestamp that indicates when the training job was created.
debug_rule_configurations
instance-attribute
¶
debug_rule_configurations: NotRequired[DebugRuleConfigurations]
Information about the debug rule configuration.
debug_rule_evaluation_statuses
instance-attribute
¶
debug_rule_evaluation_statuses: NotRequired[DebugRuleEvaluationStatuses]
Information about the evaluation status of the rules for the training job.
enable_inter_container_traffic_encryption
instance-attribute
¶
enable_inter_container_traffic_encryption: NotRequired[Boolean]
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.
enable_managed_spot_training
instance-attribute
¶
enable_managed_spot_training: NotRequired[Boolean]
When true, enables managed spot training using Amazon EC2 Spot instances to run training jobs instead of on-demand instances. For more information, see Managed Spot Training.
enable_network_isolation
instance-attribute
¶
enable_network_isolation: NotRequired[Boolean]
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.
environment
instance-attribute
¶
environment: NotRequired[TrainingEnvironmentMap]
The environment variables to set in the Docker container.
failure_reason
instance-attribute
¶
failure_reason: NotRequired[FailureReason]
If the training job failed, the reason it failed.
final_metric_data_list
instance-attribute
¶
final_metric_data_list: NotRequired[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.
hyper_parameters
instance-attribute
¶
hyper_parameters: NotRequired[HyperParameters]
Algorithm-specific parameters.
input_data_config
instance-attribute
¶
input_data_config: NotRequired[InputDataConfig]
An array of Channel objects that describes each data input channel.
Your input must be in the same Amazon Web Services region as your training job.
labeling_job_arn
instance-attribute
¶
labeling_job_arn: NotRequired[LabelingJobArn]
The Amazon Resource Name (ARN) of the labeling job.
last_modified_time
instance-attribute
¶
last_modified_time: NotRequired[Timestamp]
A timestamp that indicates when the status of the training job was last modified.
model_artifacts
instance-attribute
¶
model_artifacts: NotRequired[ModelArtifacts]
Information about the Amazon S3 location that is configured for storing model artifacts.
model_package_config
instance-attribute
¶
model_package_config: NotRequired[ModelPackageConfig]
The model package configuration.
output_data_config
instance-attribute
¶
output_data_config: NotRequired[OutputDataConfig]
The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.
output_model_package_arn
instance-attribute
¶
output_model_package_arn: NotRequired[ModelPackageArn]
The output model package Amazon Resource Name (ARN) that contains model weights or checkpoint.
resource_config
instance-attribute
¶
resource_config: NotRequired[ResourceConfig]
Resources, including ML compute instances and ML storage volumes, that are configured for model training.
retry_strategy
instance-attribute
¶
retry_strategy: NotRequired[RetryStrategy]
The number of times to retry the job when the job fails due to an InternalServerError.
role_arn
instance-attribute
¶
role_arn: NotRequired[RoleArn]
The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.
secondary_status
instance-attribute
¶
secondary_status: NotRequired[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.
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 supportFiletraining 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 theFailureReasonfield ofDescribeTrainingJobResponse.
-
- 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
secondary_status_transitions
instance-attribute
¶
secondary_status_transitions: NotRequired[SecondaryStatusTransitions]
A history of all of the secondary statuses that the training job has transitioned through.
stopping_condition
instance-attribute
¶
stopping_condition: NotRequired[StoppingCondition]
Specifies a limit to how long a model training job can run. It also specifies how long a managed Spot training job has to complete. When the job reaches the time limit, SageMaker ends the training job. Use this API to cap model training costs.
To stop a job, 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.
tags
instance-attribute
¶
tags: NotRequired[TagList]
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
tensor_board_output_config
instance-attribute
¶
tensor_board_output_config: NotRequired[TensorBoardOutputConfig]
training_end_time
instance-attribute
¶
training_end_time: NotRequired[Timestamp]
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 SageMaker detects a job failure.
training_job_arn
instance-attribute
¶
training_job_arn: NotRequired[TrainingJobArn]
The Amazon Resource Name (ARN) of the training job.
training_job_name
instance-attribute
¶
training_job_name: NotRequired[TrainingJobName]
The name of the training job.
training_job_status
instance-attribute
¶
training_job_status: NotRequired[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 theFailureReasonfield in the response to aDescribeTrainingJobResponsecall. -
Stopping- The training job is stopping. -
Stopped- The training job has stopped.
For more detailed information, see SecondaryStatus.
training_start_time
instance-attribute
¶
training_start_time: NotRequired[Timestamp]
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.
training_time_in_seconds
instance-attribute
¶
training_time_in_seconds: NotRequired[TrainingTimeInSeconds]
The training time in seconds.
tuning_job_arn
instance-attribute
¶
tuning_job_arn: NotRequired[HyperParameterTuningJobArn]
The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.
vpc_config
instance-attribute
¶
vpc_config: NotRequired[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.
warm_pool_status
instance-attribute
¶
warm_pool_status: NotRequired[WarmPoolStatus]
The status of the warm pool associated with the training job.