/** * 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 { /** *

A structure that keeps track of which training jobs launched by your * hyperparameter tuning job are not improving model performance as evaluated * against an objective function.

See Also:

AWS * API Reference

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

The number of training jobs that have failed to improve model performance by * 1% or greater over prior training jobs as evaluated against an objective * function.

*/ inline int GetMaxNumberOfTrainingJobsNotImproving() const{ return m_maxNumberOfTrainingJobsNotImproving; } /** *

The number of training jobs that have failed to improve model performance by * 1% or greater over prior training jobs as evaluated against an objective * function.

*/ inline bool MaxNumberOfTrainingJobsNotImprovingHasBeenSet() const { return m_maxNumberOfTrainingJobsNotImprovingHasBeenSet; } /** *

The number of training jobs that have failed to improve model performance by * 1% or greater over prior training jobs as evaluated against an objective * function.

*/ inline void SetMaxNumberOfTrainingJobsNotImproving(int value) { m_maxNumberOfTrainingJobsNotImprovingHasBeenSet = true; m_maxNumberOfTrainingJobsNotImproving = value; } /** *

The number of training jobs that have failed to improve model performance by * 1% or greater over prior training jobs as evaluated against an objective * function.

*/ inline BestObjectiveNotImproving& WithMaxNumberOfTrainingJobsNotImproving(int value) { SetMaxNumberOfTrainingJobsNotImproving(value); return *this;} private: int m_maxNumberOfTrainingJobsNotImproving; bool m_maxNumberOfTrainingJobsNotImprovingHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws