AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HyperParameterTuningJobConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/HyperParameterTuningJobStrategyType.h>
9#include <aws/sagemaker/model/HyperParameterTuningJobStrategyConfig.h>
10#include <aws/sagemaker/model/HyperParameterTuningJobObjective.h>
11#include <aws/sagemaker/model/ResourceLimits.h>
12#include <aws/sagemaker/model/ParameterRanges.h>
13#include <aws/sagemaker/model/TrainingJobEarlyStoppingType.h>
14#include <aws/sagemaker/model/TuningJobCompletionCriteria.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SAGEMAKER_API HyperParameterTuningJobConfig();
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
54 inline const HyperParameterTuningJobStrategyType& GetStrategy() const{ return m_strategy; }
55 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
56 inline void SetStrategy(const HyperParameterTuningJobStrategyType& value) { m_strategyHasBeenSet = true; m_strategy = value; }
57 inline void SetStrategy(HyperParameterTuningJobStrategyType&& value) { m_strategyHasBeenSet = true; m_strategy = std::move(value); }
61
63
68 inline const HyperParameterTuningJobStrategyConfig& GetStrategyConfig() const{ return m_strategyConfig; }
69 inline bool StrategyConfigHasBeenSet() const { return m_strategyConfigHasBeenSet; }
70 inline void SetStrategyConfig(const HyperParameterTuningJobStrategyConfig& value) { m_strategyConfigHasBeenSet = true; m_strategyConfig = value; }
71 inline void SetStrategyConfig(HyperParameterTuningJobStrategyConfig&& value) { m_strategyConfigHasBeenSet = true; m_strategyConfig = std::move(value); }
75
77
83 inline const HyperParameterTuningJobObjective& GetHyperParameterTuningJobObjective() const{ return m_hyperParameterTuningJobObjective; }
84 inline bool HyperParameterTuningJobObjectiveHasBeenSet() const { return m_hyperParameterTuningJobObjectiveHasBeenSet; }
85 inline void SetHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = value; }
86 inline void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjective&& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = std::move(value); }
90
92
98 inline const ResourceLimits& GetResourceLimits() const{ return m_resourceLimits; }
99 inline bool ResourceLimitsHasBeenSet() const { return m_resourceLimitsHasBeenSet; }
100 inline void SetResourceLimits(const ResourceLimits& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = value; }
101 inline void SetResourceLimits(ResourceLimits&& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = std::move(value); }
103 inline HyperParameterTuningJobConfig& WithResourceLimits(ResourceLimits&& value) { SetResourceLimits(std::move(value)); return *this;}
105
107
114 inline const ParameterRanges& GetParameterRanges() const{ return m_parameterRanges; }
115 inline bool ParameterRangesHasBeenSet() const { return m_parameterRangesHasBeenSet; }
116 inline void SetParameterRanges(const ParameterRanges& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = value; }
117 inline void SetParameterRanges(ParameterRanges&& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = std::move(value); }
119 inline HyperParameterTuningJobConfig& WithParameterRanges(ParameterRanges&& value) { SetParameterRanges(std::move(value)); return *this;}
121
123
137 inline const TrainingJobEarlyStoppingType& GetTrainingJobEarlyStoppingType() const{ return m_trainingJobEarlyStoppingType; }
138 inline bool TrainingJobEarlyStoppingTypeHasBeenSet() const { return m_trainingJobEarlyStoppingTypeHasBeenSet; }
139 inline void SetTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType& value) { m_trainingJobEarlyStoppingTypeHasBeenSet = true; m_trainingJobEarlyStoppingType = value; }
140 inline void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType&& value) { m_trainingJobEarlyStoppingTypeHasBeenSet = true; m_trainingJobEarlyStoppingType = std::move(value); }
144
146
149 inline const TuningJobCompletionCriteria& GetTuningJobCompletionCriteria() const{ return m_tuningJobCompletionCriteria; }
150 inline bool TuningJobCompletionCriteriaHasBeenSet() const { return m_tuningJobCompletionCriteriaHasBeenSet; }
151 inline void SetTuningJobCompletionCriteria(const TuningJobCompletionCriteria& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = value; }
152 inline void SetTuningJobCompletionCriteria(TuningJobCompletionCriteria&& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = std::move(value); }
156
158
164 inline int GetRandomSeed() const{ return m_randomSeed; }
165 inline bool RandomSeedHasBeenSet() const { return m_randomSeedHasBeenSet; }
166 inline void SetRandomSeed(int value) { m_randomSeedHasBeenSet = true; m_randomSeed = value; }
167 inline HyperParameterTuningJobConfig& WithRandomSeed(int value) { SetRandomSeed(value); return *this;}
169 private:
170
172 bool m_strategyHasBeenSet = false;
173
175 bool m_strategyConfigHasBeenSet = false;
176
177 HyperParameterTuningJobObjective m_hyperParameterTuningJobObjective;
178 bool m_hyperParameterTuningJobObjectiveHasBeenSet = false;
179
180 ResourceLimits m_resourceLimits;
181 bool m_resourceLimitsHasBeenSet = false;
182
183 ParameterRanges m_parameterRanges;
184 bool m_parameterRangesHasBeenSet = false;
185
186 TrainingJobEarlyStoppingType m_trainingJobEarlyStoppingType;
187 bool m_trainingJobEarlyStoppingTypeHasBeenSet = false;
188
189 TuningJobCompletionCriteria m_tuningJobCompletionCriteria;
190 bool m_tuningJobCompletionCriteriaHasBeenSet = false;
191
192 int m_randomSeed;
193 bool m_randomSeedHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace SageMaker
198} // namespace Aws
void SetHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective &value)
HyperParameterTuningJobConfig & WithParameterRanges(ParameterRanges &&value)
HyperParameterTuningJobConfig & WithParameterRanges(const ParameterRanges &value)
const TrainingJobEarlyStoppingType & GetTrainingJobEarlyStoppingType() const
const HyperParameterTuningJobObjective & GetHyperParameterTuningJobObjective() const
void SetTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType &value)
HyperParameterTuningJobConfig & WithTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType &&value)
void SetTuningJobCompletionCriteria(const TuningJobCompletionCriteria &value)
HyperParameterTuningJobConfig & WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjective &&value)
void SetStrategyConfig(HyperParameterTuningJobStrategyConfig &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTuningJobConfig & WithHyperParameterTuningJobObjective(const HyperParameterTuningJobObjective &value)
HyperParameterTuningJobConfig & WithTuningJobCompletionCriteria(TuningJobCompletionCriteria &&value)
void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType &&value)
AWS_SAGEMAKER_API HyperParameterTuningJobConfig(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobConfig & WithTuningJobCompletionCriteria(const TuningJobCompletionCriteria &value)
HyperParameterTuningJobConfig & WithStrategyConfig(const HyperParameterTuningJobStrategyConfig &value)
const TuningJobCompletionCriteria & GetTuningJobCompletionCriteria() const
void SetStrategy(const HyperParameterTuningJobStrategyType &value)
HyperParameterTuningJobConfig & WithStrategy(HyperParameterTuningJobStrategyType &&value)
HyperParameterTuningJobConfig & WithResourceLimits(const ResourceLimits &value)
void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjective &&value)
void SetStrategyConfig(const HyperParameterTuningJobStrategyConfig &value)
AWS_SAGEMAKER_API HyperParameterTuningJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobConfig & WithStrategyConfig(HyperParameterTuningJobStrategyConfig &&value)
HyperParameterTuningJobConfig & WithTrainingJobEarlyStoppingType(const TrainingJobEarlyStoppingType &value)
void SetStrategy(HyperParameterTuningJobStrategyType &&value)
HyperParameterTuningJobConfig & WithStrategy(const HyperParameterTuningJobStrategyType &value)
const HyperParameterTuningJobStrategyType & GetStrategy() const
const HyperParameterTuningJobStrategyConfig & GetStrategyConfig() const
void SetTuningJobCompletionCriteria(TuningJobCompletionCriteria &&value)
HyperParameterTuningJobConfig & WithResourceLimits(ResourceLimits &&value)
Aws::Utils::Json::JsonValue JsonValue