/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

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

See Also:

AWS * API Reference

*/ class AutoMLJobCompletionCriteria { public: AWS_SAGEMAKER_API AutoMLJobCompletionCriteria(); AWS_SAGEMAKER_API AutoMLJobCompletionCriteria(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API AutoMLJobCompletionCriteria& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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

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

*/ inline int GetMaxCandidates() const{ return m_maxCandidates; } /** *

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

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

*/ inline bool MaxCandidatesHasBeenSet() const { return m_maxCandidatesHasBeenSet; } /** *

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

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

*/ inline void SetMaxCandidates(int value) { m_maxCandidatesHasBeenSet = true; m_maxCandidates = value; } /** *

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

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

*/ inline AutoMLJobCompletionCriteria& WithMaxCandidates(int value) { SetMaxCandidates(value); 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.

*/ inline int GetMaxRuntimePerTrainingJobInSeconds() const{ return m_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.

*/ inline bool MaxRuntimePerTrainingJobInSecondsHasBeenSet() const { return m_maxRuntimePerTrainingJobInSecondsHasBeenSet; } /** *

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.

*/ inline void SetMaxRuntimePerTrainingJobInSeconds(int value) { m_maxRuntimePerTrainingJobInSecondsHasBeenSet = true; m_maxRuntimePerTrainingJobInSeconds = value; } /** *

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.

*/ inline AutoMLJobCompletionCriteria& WithMaxRuntimePerTrainingJobInSeconds(int value) { SetMaxRuntimePerTrainingJobInSeconds(value); 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.

*/ inline int GetMaxAutoMLJobRuntimeInSeconds() const{ return m_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.

*/ inline bool MaxAutoMLJobRuntimeInSecondsHasBeenSet() const { return m_maxAutoMLJobRuntimeInSecondsHasBeenSet; } /** *

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.

*/ inline void SetMaxAutoMLJobRuntimeInSeconds(int value) { m_maxAutoMLJobRuntimeInSecondsHasBeenSet = true; m_maxAutoMLJobRuntimeInSeconds = value; } /** *

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.

*/ inline AutoMLJobCompletionCriteria& WithMaxAutoMLJobRuntimeInSeconds(int value) { SetMaxAutoMLJobRuntimeInSeconds(value); return *this;} private: int m_maxCandidates; bool m_maxCandidatesHasBeenSet = false; int m_maxRuntimePerTrainingJobInSeconds; bool m_maxRuntimePerTrainingJobInSecondsHasBeenSet = false; int m_maxAutoMLJobRuntimeInSeconds; bool m_maxAutoMLJobRuntimeInSecondsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws