/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The container for the summary information about a training job. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HyperParameterTrainingJobSummary implements Serializable, Cloneable, StructuredPojo { /** ** The training job definition name. *
*/ private String trainingJobDefinitionName; /** ** The name of the training job. *
*/ private String trainingJobName; /** ** The Amazon Resource Name (ARN) of the training job. *
*/ private String trainingJobArn; /** ** The HyperParameter tuning job that launched the training job. *
*/ private String tuningJobName; /** ** The date and time that the training job was created. *
*/ private java.util.Date creationTime; /** ** The date and time that the training job started. *
*/ private java.util.Date trainingStartTime; /** *
* Specifies 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.
*
* The status of the training job. *
*/ private String trainingJobStatus; /** ** A list of the hyperparameters for which you specified ranges to search. *
*/ private java.util.Map* The reason that the training job failed. *
*/ private String failureReason; /** ** The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the * tuning job that launched this training job. *
*/ private FinalHyperParameterTuningJobObjectiveMetric finalHyperParameterTuningJobObjectiveMetric; /** ** The status of the objective metric for the training job: *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and * used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter * tuning process. This typically occurs when the training job failed or did not emit an objective metric. *
** The training job definition name. *
* * @param trainingJobDefinitionName * The training job definition name. */ public void setTrainingJobDefinitionName(String trainingJobDefinitionName) { this.trainingJobDefinitionName = trainingJobDefinitionName; } /** ** The training job definition name. *
* * @return The training job definition name. */ public String getTrainingJobDefinitionName() { return this.trainingJobDefinitionName; } /** ** The training job definition name. *
* * @param trainingJobDefinitionName * The training job definition name. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTrainingJobDefinitionName(String trainingJobDefinitionName) { setTrainingJobDefinitionName(trainingJobDefinitionName); return this; } /** ** The name of the training job. *
* * @param trainingJobName * The name of the training job. */ public void setTrainingJobName(String trainingJobName) { this.trainingJobName = trainingJobName; } /** ** The name of the training job. *
* * @return The name of the training job. */ public String getTrainingJobName() { return this.trainingJobName; } /** ** The name of the training job. *
* * @param trainingJobName * The name of the training job. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTrainingJobName(String trainingJobName) { setTrainingJobName(trainingJobName); return this; } /** ** The Amazon Resource Name (ARN) of the training job. *
* * @param trainingJobArn * The Amazon Resource Name (ARN) of the training job. */ public void setTrainingJobArn(String trainingJobArn) { this.trainingJobArn = trainingJobArn; } /** ** The Amazon Resource Name (ARN) of the training job. *
* * @return The Amazon Resource Name (ARN) of the training job. */ public String getTrainingJobArn() { return this.trainingJobArn; } /** ** The Amazon Resource Name (ARN) of the training job. *
* * @param trainingJobArn * The Amazon Resource Name (ARN) of the training job. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTrainingJobArn(String trainingJobArn) { setTrainingJobArn(trainingJobArn); return this; } /** ** The HyperParameter tuning job that launched the training job. *
* * @param tuningJobName * The HyperParameter tuning job that launched the training job. */ public void setTuningJobName(String tuningJobName) { this.tuningJobName = tuningJobName; } /** ** The HyperParameter tuning job that launched the training job. *
* * @return The HyperParameter tuning job that launched the training job. */ public String getTuningJobName() { return this.tuningJobName; } /** ** The HyperParameter tuning job that launched the training job. *
* * @param tuningJobName * The HyperParameter tuning job that launched the training job. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTuningJobName(String tuningJobName) { setTuningJobName(tuningJobName); return this; } /** ** The date and time that the training job was created. *
* * @param creationTime * The date and time that the training job was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The date and time that the training job was created. *
* * @return The date and time that the training job was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The date and time that the training job was created. *
* * @param creationTime * The date and time that the training job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The date and time that the training job started. *
* * @param trainingStartTime * The date and time that the training job started. */ public void setTrainingStartTime(java.util.Date trainingStartTime) { this.trainingStartTime = trainingStartTime; } /** ** The date and time that the training job started. *
* * @return The date and time that the training job started. */ public java.util.Date getTrainingStartTime() { return this.trainingStartTime; } /** ** The date and time that the training job started. *
* * @param trainingStartTime * The date and time that the training job started. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTrainingStartTime(java.util.Date trainingStartTime) { setTrainingStartTime(trainingStartTime); return this; } /** *
* Specifies 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.
*
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.
*/
public void setTrainingEndTime(java.util.Date trainingEndTime) {
this.trainingEndTime = trainingEndTime;
}
/**
*
* Specifies 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.
*
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.
*/
public java.util.Date getTrainingEndTime() {
return this.trainingEndTime;
}
/**
*
* Specifies 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HyperParameterTrainingJobSummary withTrainingEndTime(java.util.Date trainingEndTime) {
setTrainingEndTime(trainingEndTime);
return this;
}
/**
* * The status of the training job. *
* * @param trainingJobStatus * The status of the training job. * @see TrainingJobStatus */ public void setTrainingJobStatus(String trainingJobStatus) { this.trainingJobStatus = trainingJobStatus; } /** ** The status of the training job. *
* * @return The status of the training job. * @see TrainingJobStatus */ public String getTrainingJobStatus() { return this.trainingJobStatus; } /** ** The status of the training job. *
* * @param trainingJobStatus * The status of the training job. * @return Returns a reference to this object so that method calls can be chained together. * @see TrainingJobStatus */ public HyperParameterTrainingJobSummary withTrainingJobStatus(String trainingJobStatus) { setTrainingJobStatus(trainingJobStatus); return this; } /** ** The status of the training job. *
* * @param trainingJobStatus * The status of the training job. * @return Returns a reference to this object so that method calls can be chained together. * @see TrainingJobStatus */ public HyperParameterTrainingJobSummary withTrainingJobStatus(TrainingJobStatus trainingJobStatus) { this.trainingJobStatus = trainingJobStatus.toString(); return this; } /** ** A list of the hyperparameters for which you specified ranges to search. *
* * @return A list of the hyperparameters for which you specified ranges to search. */ public java.util.Map* A list of the hyperparameters for which you specified ranges to search. *
* * @param tunedHyperParameters * A list of the hyperparameters for which you specified ranges to search. */ public void setTunedHyperParameters(java.util.Map* A list of the hyperparameters for which you specified ranges to search. *
* * @param tunedHyperParameters * A list of the hyperparameters for which you specified ranges to search. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withTunedHyperParameters(java.util.Map* The reason that the training job failed. *
* * @param failureReason * The reason that the training job failed. */ public void setFailureReason(String failureReason) { this.failureReason = failureReason; } /** ** The reason that the training job failed. *
* * @return The reason that the training job failed. */ public String getFailureReason() { return this.failureReason; } /** ** The reason that the training job failed. *
* * @param failureReason * The reason that the training job failed. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withFailureReason(String failureReason) { setFailureReason(failureReason); return this; } /** ** The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the * tuning job that launched this training job. *
* * @param finalHyperParameterTuningJobObjectiveMetric * The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric * of the tuning job that launched this training job. */ public void setFinalHyperParameterTuningJobObjectiveMetric(FinalHyperParameterTuningJobObjectiveMetric finalHyperParameterTuningJobObjectiveMetric) { this.finalHyperParameterTuningJobObjectiveMetric = finalHyperParameterTuningJobObjectiveMetric; } /** ** The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the * tuning job that launched this training job. *
* * @return The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric * of the tuning job that launched this training job. */ public FinalHyperParameterTuningJobObjectiveMetric getFinalHyperParameterTuningJobObjectiveMetric() { return this.finalHyperParameterTuningJobObjectiveMetric; } /** ** The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the * tuning job that launched this training job. *
* * @param finalHyperParameterTuningJobObjectiveMetric * The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric * of the tuning job that launched this training job. * @return Returns a reference to this object so that method calls can be chained together. */ public HyperParameterTrainingJobSummary withFinalHyperParameterTuningJobObjectiveMetric( FinalHyperParameterTuningJobObjectiveMetric finalHyperParameterTuningJobObjectiveMetric) { setFinalHyperParameterTuningJobObjectiveMetric(finalHyperParameterTuningJobObjectiveMetric); return this; } /** ** The status of the objective metric for the training job: *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and * used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter * tuning process. This typically occurs when the training job failed or did not emit an objective metric. *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job * and used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the * hyperparameter tuning process. This typically occurs when the training job failed or did not emit an * objective metric. *
** The status of the objective metric for the training job: *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and * used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter * tuning process. This typically occurs when the training job failed or did not emit an objective metric. *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job * and used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the * hyperparameter tuning process. This typically occurs when the training job failed or did not emit an * objective metric. *
** The status of the objective metric for the training job: *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and * used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter * tuning process. This typically occurs when the training job failed or did not emit an objective metric. *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job * and used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the * hyperparameter tuning process. This typically occurs when the training job failed or did not emit an * objective metric. *
** The status of the objective metric for the training job: *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job and * used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the hyperparameter * tuning process. This typically occurs when the training job failed or did not emit an objective metric. *
** Succeeded: The final objective metric for the training job was evaluated by the hyperparameter tuning job * and used in the hyperparameter tuning process. *
** Pending: The training job is in progress and evaluation of its final objective metric is pending. *
** Failed: The final objective metric for the training job was not evaluated, and was not used in the * hyperparameter tuning process. This typically occurs when the training job failed or did not emit an * objective metric. *
*