All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.sagemaker.model.AutoMLJobCompletionCriteria Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 

* How long a job is allowed to run, or how many candidates a job is allowed to generate. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AutoMLJobCompletionCriteria implements Serializable, Cloneable, StructuredPojo { /** *

* The maximum number of times a training job is allowed to run. *

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem * types, the supported value is 1. For tabular problem types, the maximum value is 750. *

*/ private Integer maxCandidates; /** *

* The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as * part of a hyperparameter tuning job. For more information, see the StoppingCondition * used by the CreateHyperParameterTuningJob action. *

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job * candidate. *

*

* For * TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). *

*/ private Integer maxRuntimePerTrainingJobInSeconds; /** *

* The maximum runtime, in seconds, an AutoML job has to complete. *

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, * are not completed. *

*/ private Integer maxAutoMLJobRuntimeInSeconds; /** *

* The maximum number of times a training job is allowed to run. *

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem * types, the supported value is 1. For tabular problem types, the maximum value is 750. *

* * @param maxCandidates * The maximum number of times a training job is allowed to run.

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) * problem types, the supported value is 1. For tabular problem types, the maximum value is 750. */ public void setMaxCandidates(Integer maxCandidates) { this.maxCandidates = maxCandidates; } /** *

* The maximum number of times a training job is allowed to run. *

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem * types, the supported value is 1. For tabular problem types, the maximum value is 750. *

* * @return The maximum number of times a training job is allowed to run.

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) * problem types, the supported value is 1. For tabular problem types, the maximum value is 750. */ public Integer getMaxCandidates() { return this.maxCandidates; } /** *

* The maximum number of times a training job is allowed to run. *

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) problem * types, the supported value is 1. For tabular problem types, the maximum value is 750. *

* * @param maxCandidates * The maximum number of times a training job is allowed to run.

*

* For text and image classification, time-series forecasting, as well as text generation (LLMs fine-tuning) * problem types, the supported value is 1. For tabular problem types, the maximum value is 750. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoMLJobCompletionCriteria withMaxCandidates(Integer maxCandidates) { setMaxCandidates(maxCandidates); return this; } /** *

* The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as * part of a hyperparameter tuning job. For more information, see the StoppingCondition * used by the CreateHyperParameterTuningJob action. *

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job * candidate. *

*

* For * TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). *

* * @param maxRuntimePerTrainingJobInSeconds * The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to * run as part of a hyperparameter tuning job. For more information, see the StoppingCondition used by the CreateHyperParameterTuningJob action.

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of * the job candidate. *

*

* For TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). */ public void setMaxRuntimePerTrainingJobInSeconds(Integer maxRuntimePerTrainingJobInSeconds) { this.maxRuntimePerTrainingJobInSeconds = maxRuntimePerTrainingJobInSeconds; } /** *

* The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as * part of a hyperparameter tuning job. For more information, see the StoppingCondition * used by the CreateHyperParameterTuningJob action. *

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job * candidate. *

*

* For * TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). *

* * @return The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to * run as part of a hyperparameter tuning job. For more information, see the StoppingCondition used by the CreateHyperParameterTuningJob action.

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of * the job candidate. *

*

* For TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). */ public Integer getMaxRuntimePerTrainingJobInSeconds() { return this.maxRuntimePerTrainingJobInSeconds; } /** *

* The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as * part of a hyperparameter tuning job. For more information, see the StoppingCondition * used by the CreateHyperParameterTuningJob action. *

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of the job * candidate. *

*

* For * TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). *

* * @param maxRuntimePerTrainingJobInSeconds * The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to * run as part of a hyperparameter tuning job. For more information, see the StoppingCondition used by the CreateHyperParameterTuningJob action.

*

* For job V2s (jobs created by calling CreateAutoMLJobV2), this field controls the runtime of * the job candidate. *

*

* For TextGenerationJobConfig problem types, the maximum time defaults to 72 hours (259200 seconds). * @return Returns a reference to this object so that method calls can be chained together. */ public AutoMLJobCompletionCriteria withMaxRuntimePerTrainingJobInSeconds(Integer maxRuntimePerTrainingJobInSeconds) { setMaxRuntimePerTrainingJobInSeconds(maxRuntimePerTrainingJobInSeconds); return this; } /** *

* The maximum runtime, in seconds, an AutoML job has to complete. *

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, * are not completed. *

* * @param maxAutoMLJobRuntimeInSeconds * The maximum runtime, in seconds, an AutoML job has to complete.

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model * deployment, are not completed. */ public void setMaxAutoMLJobRuntimeInSeconds(Integer maxAutoMLJobRuntimeInSeconds) { this.maxAutoMLJobRuntimeInSeconds = maxAutoMLJobRuntimeInSeconds; } /** *

* The maximum runtime, in seconds, an AutoML job has to complete. *

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, * are not completed. *

* * @return The maximum runtime, in seconds, an AutoML job has to complete.

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is * ended gracefully. The AutoML job identifies the best model whose training was completed and marks it as * the best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model * deployment, are not completed. */ public Integer getMaxAutoMLJobRuntimeInSeconds() { return this.maxAutoMLJobRuntimeInSeconds; } /** *

* The maximum runtime, in seconds, an AutoML job has to complete. *

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model deployment, * are not completed. *

* * @param maxAutoMLJobRuntimeInSeconds * The maximum runtime, in seconds, an AutoML job has to complete.

*

* If an AutoML job exceeds the maximum runtime, the job is stopped automatically and its processing is ended * gracefully. The AutoML job identifies the best model whose training was completed and marks it as the * best-performing model. Any unfinished steps of the job, such as automatic one-click Autopilot model * deployment, are not completed. * @return Returns a reference to this object so that method calls can be chained together. */ public AutoMLJobCompletionCriteria withMaxAutoMLJobRuntimeInSeconds(Integer maxAutoMLJobRuntimeInSeconds) { setMaxAutoMLJobRuntimeInSeconds(maxAutoMLJobRuntimeInSeconds); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getMaxCandidates() != null) sb.append("MaxCandidates: ").append(getMaxCandidates()).append(","); if (getMaxRuntimePerTrainingJobInSeconds() != null) sb.append("MaxRuntimePerTrainingJobInSeconds: ").append(getMaxRuntimePerTrainingJobInSeconds()).append(","); if (getMaxAutoMLJobRuntimeInSeconds() != null) sb.append("MaxAutoMLJobRuntimeInSeconds: ").append(getMaxAutoMLJobRuntimeInSeconds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AutoMLJobCompletionCriteria == false) return false; AutoMLJobCompletionCriteria other = (AutoMLJobCompletionCriteria) obj; if (other.getMaxCandidates() == null ^ this.getMaxCandidates() == null) return false; if (other.getMaxCandidates() != null && other.getMaxCandidates().equals(this.getMaxCandidates()) == false) return false; if (other.getMaxRuntimePerTrainingJobInSeconds() == null ^ this.getMaxRuntimePerTrainingJobInSeconds() == null) return false; if (other.getMaxRuntimePerTrainingJobInSeconds() != null && other.getMaxRuntimePerTrainingJobInSeconds().equals(this.getMaxRuntimePerTrainingJobInSeconds()) == false) return false; if (other.getMaxAutoMLJobRuntimeInSeconds() == null ^ this.getMaxAutoMLJobRuntimeInSeconds() == null) return false; if (other.getMaxAutoMLJobRuntimeInSeconds() != null && other.getMaxAutoMLJobRuntimeInSeconds().equals(this.getMaxAutoMLJobRuntimeInSeconds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMaxCandidates() == null) ? 0 : getMaxCandidates().hashCode()); hashCode = prime * hashCode + ((getMaxRuntimePerTrainingJobInSeconds() == null) ? 0 : getMaxRuntimePerTrainingJobInSeconds().hashCode()); hashCode = prime * hashCode + ((getMaxAutoMLJobRuntimeInSeconds() == null) ? 0 : getMaxAutoMLJobRuntimeInSeconds().hashCode()); return hashCode; } @Override public AutoMLJobCompletionCriteria clone() { try { return (AutoMLJobCompletionCriteria) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.AutoMLJobCompletionCriteriaMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy