@Generated(value="software.amazon.awssdk:codegen") public final class TrainingJob extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TrainingJob.Builder,TrainingJob>
Contains information about a training job.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TrainingJob.Builder |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmSpecification |
algorithmSpecification()
Information about the algorithm used for training, and algorithm metadata.
|
String |
autoMLJobArn()
The Amazon Resource Name (ARN) of the job.
|
Integer |
billableTimeInSeconds()
The billable time in seconds.
|
static TrainingJob.Builder |
builder() |
CheckpointConfig |
checkpointConfig()
Returns the value of the CheckpointConfig property for this object.
|
Instant |
creationTime()
A timestamp that indicates when the training job was created.
|
DebugHookConfig |
debugHookConfig()
Returns the value of the DebugHookConfig property for this object.
|
List<DebugRuleConfiguration> |
debugRuleConfigurations()
Information about the debug rule configuration.
|
List<DebugRuleEvaluationStatus> |
debugRuleEvaluationStatuses()
Information about the evaluation status of the rules for the training job.
|
Boolean |
enableInterContainerTrafficEncryption()
To encrypt all communications between ML compute instances in distributed training, choose
True. |
Boolean |
enableManagedSpotTraining()
When true, enables managed spot training using Amazon EC2 Spot instances to run training jobs instead of
on-demand instances.
|
Boolean |
enableNetworkIsolation()
If the
TrainingJob was created with network isolation, the value is set to true. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExperimentConfig |
experimentConfig()
Returns the value of the ExperimentConfig property for this object.
|
String |
failureReason()
If the training job failed, the reason it failed.
|
List<MetricData> |
finalMetricDataList()
A list of final metric values that are set when the training job completes.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDebugRuleConfigurations()
Returns true if the DebugRuleConfigurations property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasDebugRuleEvaluationStatuses()
Returns true if the DebugRuleEvaluationStatuses property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
boolean |
hasFinalMetricDataList()
Returns true if the FinalMetricDataList property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasHyperParameters()
Returns true if the HyperParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasInputDataConfig()
Returns true if the InputDataConfig property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSecondaryStatusTransitions()
Returns true if the SecondaryStatusTransitions property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Map<String,String> |
hyperParameters()
Algorithm-specific parameters.
|
List<Channel> |
inputDataConfig()
An array of
Channel objects that describes each data input channel. |
String |
labelingJobArn()
The Amazon Resource Name (ARN) of the labeling job.
|
Instant |
lastModifiedTime()
A timestamp that indicates when the status of the training job was last modified.
|
ModelArtifacts |
modelArtifacts()
Information about the Amazon S3 location that is configured for storing model artifacts.
|
OutputDataConfig |
outputDataConfig()
The S3 path where model artifacts that you configured when creating the job are stored.
|
ResourceConfig |
resourceConfig()
Resources, including ML compute instances and ML storage volumes, that are configured for model training.
|
String |
roleArn()
The AWS Identity and Access Management (IAM) role configured for the training job.
|
List<SdkField<?>> |
sdkFields() |
SecondaryStatus |
secondaryStatus()
Provides detailed information about the state of the training job.
|
String |
secondaryStatusAsString()
Provides detailed information about the state of the training job.
|
List<SecondaryStatusTransition> |
secondaryStatusTransitions()
A history of all of the secondary statuses that the training job has transitioned through.
|
static Class<? extends TrainingJob.Builder> |
serializableBuilderClass() |
StoppingCondition |
stoppingCondition()
Specifies a limit to how long a model training job can run.
|
List<Tag> |
tags()
An array of key-value pairs.
|
TensorBoardOutputConfig |
tensorBoardOutputConfig()
Returns the value of the TensorBoardOutputConfig property for this object.
|
TrainingJob.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
trainingEndTime()
Indicates the time when the training job ends on training instances.
|
String |
trainingJobArn()
The Amazon Resource Name (ARN) of the training job.
|
String |
trainingJobName()
The name of the training job.
|
TrainingJobStatus |
trainingJobStatus()
The status of the training job.
|
String |
trainingJobStatusAsString()
The status of the training job.
|
Instant |
trainingStartTime()
Indicates the time when the training job starts on training instances.
|
Integer |
trainingTimeInSeconds()
The training time in seconds.
|
String |
tuningJobArn()
The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a
hyperparameter tuning job.
|
VpcConfig |
vpcConfig()
A VpcConfig object that specifies the VPC that this training job has access to.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String trainingJobName()
The name of the training job.
public String trainingJobArn()
The Amazon Resource Name (ARN) of the training job.
public String tuningJobArn()
The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.
public String labelingJobArn()
The Amazon Resource Name (ARN) of the labeling job.
public String autoMLJobArn()
The Amazon Resource Name (ARN) of the job.
public ModelArtifacts modelArtifacts()
Information about the Amazon S3 location that is configured for storing model artifacts.
public TrainingJobStatus 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.
If the service returns an enum value that is not available in the current SDK version, trainingJobStatus
will return TrainingJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from trainingJobStatusAsString().
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.
TrainingJobStatuspublic String trainingJobStatusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, trainingJobStatus
will return TrainingJobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from trainingJobStatusAsString().
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.
TrainingJobStatuspublic SecondaryStatus 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:
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 - The training job has completed.
Failed - The training job has failed. The reason for the failure is returned in the
FailureReason field of DescribeTrainingJobResponse.
MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.
Stopped - The training job has stopped.
Stopping - Stopping the training job.
Valid values for SecondaryStatus are subject to change.
We no longer support the following secondary statuses:
LaunchingMLInstances
PreparingTrainingStack
DownloadingTrainingImage
If the service returns an enum value that is not available in the current SDK version, secondaryStatus
will return SecondaryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from secondaryStatusAsString().
StatusMessage under
SecondaryStatusTransition.
Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:
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 - The training job has completed.
Failed - The training job has failed. The reason for the failure is returned in the
FailureReason field of DescribeTrainingJobResponse.
MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.
Stopped - The training job has stopped.
Stopping - Stopping the training job.
Valid values for SecondaryStatus are subject to change.
We no longer support the following secondary statuses:
LaunchingMLInstances
PreparingTrainingStack
DownloadingTrainingImage
SecondaryStatuspublic String secondaryStatusAsString()
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:
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 - The training job has completed.
Failed - The training job has failed. The reason for the failure is returned in the
FailureReason field of DescribeTrainingJobResponse.
MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.
Stopped - The training job has stopped.
Stopping - Stopping the training job.
Valid values for SecondaryStatus are subject to change.
We no longer support the following secondary statuses:
LaunchingMLInstances
PreparingTrainingStack
DownloadingTrainingImage
If the service returns an enum value that is not available in the current SDK version, secondaryStatus
will return SecondaryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from secondaryStatusAsString().
StatusMessage under
SecondaryStatusTransition.
Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:
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 - The training job has completed.
Failed - The training job has failed. The reason for the failure is returned in the
FailureReason field of DescribeTrainingJobResponse.
MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.
Stopped - The training job has stopped.
Stopping - Stopping the training job.
Valid values for SecondaryStatus are subject to change.
We no longer support the following secondary statuses:
LaunchingMLInstances
PreparingTrainingStack
DownloadingTrainingImage
SecondaryStatuspublic String failureReason()
If the training job failed, the reason it failed.
public boolean hasHyperParameters()
public Map<String,String> hyperParameters()
Algorithm-specific parameters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasHyperParameters() to see if a value was sent in this field.
public AlgorithmSpecification algorithmSpecification()
Information about the algorithm used for training, and algorithm metadata.
public String roleArn()
The AWS Identity and Access Management (IAM) role configured for the training job.
public boolean hasInputDataConfig()
public List<Channel> inputDataConfig()
An array of Channel objects that describes each data input channel.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInputDataConfig() to see if a value was sent in this field.
Channel objects that describes each data input channel.public OutputDataConfig outputDataConfig()
The S3 path where model artifacts that you configured when creating the job are stored. Amazon SageMaker creates subfolders for model artifacts.
public ResourceConfig resourceConfig()
Resources, including ML compute instances and ML storage volumes, that are configured for model training.
public VpcConfig 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.
public StoppingCondition 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.
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.
public Instant creationTime()
A timestamp that indicates when the training job was created.
public Instant 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.
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.public Instant 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.
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.public Instant lastModifiedTime()
A timestamp that indicates when the status of the training job was last modified.
public boolean hasSecondaryStatusTransitions()
public List<SecondaryStatusTransition> secondaryStatusTransitions()
A history of all of the secondary statuses that the training job has transitioned through.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSecondaryStatusTransitions() to see if a value was sent in this field.
public boolean hasFinalMetricDataList()
public List<MetricData> 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFinalMetricDataList() to see if a value was sent in this field.
public Boolean 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.
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.public Boolean 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.
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.public Boolean 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.
public CheckpointConfig checkpointConfig()
public Integer trainingTimeInSeconds()
The training time in seconds.
public Integer billableTimeInSeconds()
The billable time in seconds.
public DebugHookConfig debugHookConfig()
public ExperimentConfig experimentConfig()
public boolean hasDebugRuleConfigurations()
public List<DebugRuleConfiguration> debugRuleConfigurations()
Information about the debug rule configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDebugRuleConfigurations() to see if a value was sent in this field.
public TensorBoardOutputConfig tensorBoardOutputConfig()
public boolean hasDebugRuleEvaluationStatuses()
public List<DebugRuleEvaluationStatus> debugRuleEvaluationStatuses()
Information about the evaluation status of the rules for the training job.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDebugRuleEvaluationStatuses() to see if a value was sent in this field.
public boolean hasTags()
public List<Tag> tags()
An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public TrainingJob.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TrainingJob.Builder,TrainingJob>public static TrainingJob.Builder builder()
public static Class<? extends TrainingJob.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.