amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.Types.TrainingJob

Description

 
Synopsis

Documentation

data TrainingJob Source #

Contains information about a training job.

See: newTrainingJob smart constructor.

Constructors

TrainingJob' 

Fields

  • algorithmSpecification :: Maybe AlgorithmSpecification

    Information about the algorithm used for training, and algorithm metadata.

  • autoMLJobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the job.

  • billableTimeInSeconds :: Maybe Natural

    The billable time in seconds.

  • checkpointConfig :: Maybe CheckpointConfig
     
  • creationTime :: Maybe POSIX

    A timestamp that indicates when the training job was created.

  • debugHookConfig :: Maybe DebugHookConfig
     
  • debugRuleConfigurations :: Maybe [DebugRuleConfiguration]

    Information about the debug rule configuration.

  • debugRuleEvaluationStatuses :: Maybe [DebugRuleEvaluationStatus]

    Information about the evaluation status of the rules for the training job.

  • enableInterContainerTrafficEncryption :: Maybe Bool

    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.

  • enableManagedSpotTraining :: Maybe Bool

    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.

  • enableNetworkIsolation :: Maybe Bool

    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 :: Maybe (HashMap Text Text)

    The environment variables to set in the Docker container.

  • experimentConfig :: Maybe ExperimentConfig
     
  • failureReason :: Maybe Text

    If the training job failed, the reason it failed.

  • finalMetricDataList :: Maybe [MetricData]

    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.

  • hyperParameters :: Maybe (HashMap Text Text)

    Algorithm-specific parameters.

  • inputDataConfig :: Maybe (NonEmpty Channel)

    An array of Channel objects that describes each data input channel.

  • labelingJobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the labeling job.

  • lastModifiedTime :: Maybe POSIX

    A timestamp that indicates when the status of the training job was last modified.

  • modelArtifacts :: Maybe ModelArtifacts

    Information about the Amazon S3 location that is configured for storing model artifacts.

  • outputDataConfig :: Maybe OutputDataConfig

    The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.

  • resourceConfig :: Maybe ResourceConfig

    Resources, including ML compute instances and ML storage volumes, that are configured for model training.

  • retryStrategy :: Maybe RetryStrategy

    The number of times to retry the job when the job fails due to an InternalServerError.

  • roleArn :: Maybe Text

    The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.

  • secondaryStatus :: Maybe 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 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
  • secondaryStatusTransitions :: Maybe [SecondaryStatusTransition]

    A history of all of the secondary statuses that the training job has transitioned through.

  • stoppingCondition :: Maybe 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 :: Maybe [Tag]

    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.

  • tensorBoardOutputConfig :: Maybe TensorBoardOutputConfig
     
  • trainingEndTime :: Maybe POSIX

    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.

  • trainingJobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the training job.

  • trainingJobName :: Maybe Text

    The name of the training job.

  • trainingJobStatus :: Maybe 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.

  • trainingStartTime :: Maybe POSIX

    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.

  • trainingTimeInSeconds :: Maybe Natural

    The training time in seconds.

  • tuningJobArn :: Maybe Text

    The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

  • vpcConfig :: Maybe 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.

Instances

Instances details
FromJSON TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

Generic TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

Associated Types

type Rep TrainingJob :: Type -> Type #

Read TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

Show TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

NFData TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

Methods

rnf :: TrainingJob -> () #

Eq TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

Hashable TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

type Rep TrainingJob Source # 
Instance details

Defined in Amazonka.SageMaker.Types.TrainingJob

type Rep TrainingJob = D1 ('MetaData "TrainingJob" "Amazonka.SageMaker.Types.TrainingJob" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "TrainingJob'" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "algorithmSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlgorithmSpecification)) :*: S1 ('MetaSel ('Just "autoMLJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "billableTimeInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "checkpointConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CheckpointConfig)))) :*: ((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "debugHookConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DebugHookConfig))) :*: (S1 ('MetaSel ('Just "debugRuleConfigurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DebugRuleConfiguration])) :*: (S1 ('MetaSel ('Just "debugRuleEvaluationStatuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DebugRuleEvaluationStatus])) :*: S1 ('MetaSel ('Just "enableInterContainerTrafficEncryption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "enableManagedSpotTraining") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "enableNetworkIsolation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "environment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "experimentConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ExperimentConfig)))) :*: ((S1 ('MetaSel ('Just "failureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "finalMetricDataList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricData]))) :*: (S1 ('MetaSel ('Just "hyperParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "inputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Channel))) :*: S1 ('MetaSel ('Just "labelingJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))) :*: ((((S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "modelArtifacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ModelArtifacts))) :*: (S1 ('MetaSel ('Just "outputDataConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OutputDataConfig)) :*: S1 ('MetaSel ('Just "resourceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceConfig)))) :*: ((S1 ('MetaSel ('Just "retryStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RetryStrategy)) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "secondaryStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SecondaryStatus)) :*: (S1 ('MetaSel ('Just "secondaryStatusTransitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SecondaryStatusTransition])) :*: S1 ('MetaSel ('Just "stoppingCondition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StoppingCondition)))))) :*: (((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "tensorBoardOutputConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TensorBoardOutputConfig))) :*: (S1 ('MetaSel ('Just "trainingEndTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "trainingJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "trainingJobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "trainingJobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrainingJobStatus)) :*: S1 ('MetaSel ('Just "trainingStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "trainingTimeInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "tuningJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfig)))))))))

newTrainingJob :: TrainingJob Source #

Create a value of TrainingJob with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:algorithmSpecification:TrainingJob', trainingJob_algorithmSpecification - Information about the algorithm used for training, and algorithm metadata.

$sel:autoMLJobArn:TrainingJob', trainingJob_autoMLJobArn - The Amazon Resource Name (ARN) of the job.

$sel:billableTimeInSeconds:TrainingJob', trainingJob_billableTimeInSeconds - The billable time in seconds.

$sel:checkpointConfig:TrainingJob', trainingJob_checkpointConfig - Undocumented member.

$sel:creationTime:TrainingJob', trainingJob_creationTime - A timestamp that indicates when the training job was created.

$sel:debugHookConfig:TrainingJob', trainingJob_debugHookConfig - Undocumented member.

$sel:debugRuleConfigurations:TrainingJob', trainingJob_debugRuleConfigurations - Information about the debug rule configuration.

$sel:debugRuleEvaluationStatuses:TrainingJob', trainingJob_debugRuleEvaluationStatuses - Information about the evaluation status of the rules for the training job.

$sel:enableInterContainerTrafficEncryption:TrainingJob', trainingJob_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.

$sel:enableManagedSpotTraining:TrainingJob', trainingJob_enableManagedSpotTraining - 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.

$sel:enableNetworkIsolation:TrainingJob', trainingJob_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.

$sel:environment:TrainingJob', trainingJob_environment - The environment variables to set in the Docker container.

$sel:experimentConfig:TrainingJob', trainingJob_experimentConfig - Undocumented member.

$sel:failureReason:TrainingJob', trainingJob_failureReason - If the training job failed, the reason it failed.

$sel:finalMetricDataList:TrainingJob', trainingJob_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.

$sel:hyperParameters:TrainingJob', trainingJob_hyperParameters - Algorithm-specific parameters.

$sel:inputDataConfig:TrainingJob', trainingJob_inputDataConfig - An array of Channel objects that describes each data input channel.

$sel:labelingJobArn:TrainingJob', trainingJob_labelingJobArn - The Amazon Resource Name (ARN) of the labeling job.

TrainingJob, trainingJob_lastModifiedTime - A timestamp that indicates when the status of the training job was last modified.

$sel:modelArtifacts:TrainingJob', trainingJob_modelArtifacts - Information about the Amazon S3 location that is configured for storing model artifacts.

$sel:outputDataConfig:TrainingJob', trainingJob_outputDataConfig - The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.

$sel:resourceConfig:TrainingJob', trainingJob_resourceConfig - Resources, including ML compute instances and ML storage volumes, that are configured for model training.

$sel:retryStrategy:TrainingJob', trainingJob_retryStrategy - The number of times to retry the job when the job fails due to an InternalServerError.

$sel:roleArn:TrainingJob', trainingJob_roleArn - The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.

$sel:secondaryStatus:TrainingJob', trainingJob_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 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

$sel:secondaryStatusTransitions:TrainingJob', trainingJob_secondaryStatusTransitions - A history of all of the secondary statuses that the training job has transitioned through.

$sel:stoppingCondition:TrainingJob', trainingJob_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.

$sel:tags:TrainingJob', trainingJob_tags - 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.

$sel:tensorBoardOutputConfig:TrainingJob', trainingJob_tensorBoardOutputConfig - Undocumented member.

$sel:trainingEndTime:TrainingJob', trainingJob_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 SageMaker detects a job failure.

$sel:trainingJobArn:TrainingJob', trainingJob_trainingJobArn - The Amazon Resource Name (ARN) of the training job.

$sel:trainingJobName:TrainingJob', trainingJob_trainingJobName - The name of the training job.

$sel:trainingJobStatus:TrainingJob', trainingJob_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.

$sel:trainingStartTime:TrainingJob', trainingJob_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.

$sel:trainingTimeInSeconds:TrainingJob', trainingJob_trainingTimeInSeconds - The training time in seconds.

$sel:tuningJobArn:TrainingJob', trainingJob_tuningJobArn - The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

$sel:vpcConfig:TrainingJob', trainingJob_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.

trainingJob_algorithmSpecification :: Lens' TrainingJob (Maybe AlgorithmSpecification) Source #

Information about the algorithm used for training, and algorithm metadata.

trainingJob_autoMLJobArn :: Lens' TrainingJob (Maybe Text) Source #

The Amazon Resource Name (ARN) of the job.

trainingJob_creationTime :: Lens' TrainingJob (Maybe UTCTime) Source #

A timestamp that indicates when the training job was created.

trainingJob_debugRuleConfigurations :: Lens' TrainingJob (Maybe [DebugRuleConfiguration]) Source #

Information about the debug rule configuration.

trainingJob_debugRuleEvaluationStatuses :: Lens' TrainingJob (Maybe [DebugRuleEvaluationStatus]) Source #

Information about the evaluation status of the rules for the training job.

trainingJob_enableInterContainerTrafficEncryption :: Lens' TrainingJob (Maybe Bool) Source #

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.

trainingJob_enableManagedSpotTraining :: Lens' TrainingJob (Maybe Bool) Source #

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.

trainingJob_enableNetworkIsolation :: Lens' TrainingJob (Maybe Bool) Source #

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.

trainingJob_environment :: Lens' TrainingJob (Maybe (HashMap Text Text)) Source #

The environment variables to set in the Docker container.

trainingJob_failureReason :: Lens' TrainingJob (Maybe Text) Source #

If the training job failed, the reason it failed.

trainingJob_finalMetricDataList :: Lens' TrainingJob (Maybe [MetricData]) Source #

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.

trainingJob_inputDataConfig :: Lens' TrainingJob (Maybe (NonEmpty Channel)) Source #

An array of Channel objects that describes each data input channel.

trainingJob_labelingJobArn :: Lens' TrainingJob (Maybe Text) Source #

The Amazon Resource Name (ARN) of the labeling job.

trainingJob_lastModifiedTime :: Lens' TrainingJob (Maybe UTCTime) Source #

A timestamp that indicates when the status of the training job was last modified.

trainingJob_modelArtifacts :: Lens' TrainingJob (Maybe ModelArtifacts) Source #

Information about the Amazon S3 location that is configured for storing model artifacts.

trainingJob_outputDataConfig :: Lens' TrainingJob (Maybe OutputDataConfig) Source #

The S3 path where model artifacts that you configured when creating the job are stored. SageMaker creates subfolders for model artifacts.

trainingJob_resourceConfig :: Lens' TrainingJob (Maybe ResourceConfig) Source #

Resources, including ML compute instances and ML storage volumes, that are configured for model training.

trainingJob_retryStrategy :: Lens' TrainingJob (Maybe RetryStrategy) Source #

The number of times to retry the job when the job fails due to an InternalServerError.

trainingJob_roleArn :: Lens' TrainingJob (Maybe Text) Source #

The Amazon Web Services Identity and Access Management (IAM) role configured for the training job.

trainingJob_secondaryStatus :: Lens' TrainingJob (Maybe SecondaryStatus) Source #

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

trainingJob_secondaryStatusTransitions :: Lens' TrainingJob (Maybe [SecondaryStatusTransition]) Source #

A history of all of the secondary statuses that the training job has transitioned through.

trainingJob_stoppingCondition :: Lens' TrainingJob (Maybe StoppingCondition) Source #

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.

trainingJob_tags :: Lens' TrainingJob (Maybe [Tag]) Source #

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.

trainingJob_trainingEndTime :: Lens' TrainingJob (Maybe UTCTime) Source #

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.

trainingJob_trainingJobArn :: Lens' TrainingJob (Maybe Text) Source #

The Amazon Resource Name (ARN) of the training job.

trainingJob_trainingJobName :: Lens' TrainingJob (Maybe Text) Source #

The name of the training job.

trainingJob_trainingJobStatus :: Lens' TrainingJob (Maybe TrainingJobStatus) Source #

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.

trainingJob_trainingStartTime :: Lens' TrainingJob (Maybe UTCTime) Source #

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.

trainingJob_tuningJobArn :: Lens' TrainingJob (Maybe Text) Source #

The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

trainingJob_vpcConfig :: Lens' TrainingJob (Maybe VpcConfig) Source #

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.