AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
54 inline HyperParameterTuningJobStrategyType GetStrategy() const { return m_strategy; }
55 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
56 inline void SetStrategy(HyperParameterTuningJobStrategyType value) { m_strategyHasBeenSet = true; m_strategy = value; }
59
61
66 inline const HyperParameterTuningJobStrategyConfig& GetStrategyConfig() const { return m_strategyConfig; }
67 inline bool StrategyConfigHasBeenSet() const { return m_strategyConfigHasBeenSet; }
68 template<typename StrategyConfigT = HyperParameterTuningJobStrategyConfig>
69 void SetStrategyConfig(StrategyConfigT&& value) { m_strategyConfigHasBeenSet = true; m_strategyConfig = std::forward<StrategyConfigT>(value); }
70 template<typename StrategyConfigT = HyperParameterTuningJobStrategyConfig>
71 HyperParameterTuningJobConfig& WithStrategyConfig(StrategyConfigT&& value) { SetStrategyConfig(std::forward<StrategyConfigT>(value)); return *this;}
73
75
81 inline const HyperParameterTuningJobObjective& GetHyperParameterTuningJobObjective() const { return m_hyperParameterTuningJobObjective; }
82 inline bool HyperParameterTuningJobObjectiveHasBeenSet() const { return m_hyperParameterTuningJobObjectiveHasBeenSet; }
83 template<typename HyperParameterTuningJobObjectiveT = HyperParameterTuningJobObjective>
84 void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjectiveT&& value) { m_hyperParameterTuningJobObjectiveHasBeenSet = true; m_hyperParameterTuningJobObjective = std::forward<HyperParameterTuningJobObjectiveT>(value); }
85 template<typename HyperParameterTuningJobObjectiveT = HyperParameterTuningJobObjective>
86 HyperParameterTuningJobConfig& WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjectiveT&& value) { SetHyperParameterTuningJobObjective(std::forward<HyperParameterTuningJobObjectiveT>(value)); return *this;}
88
90
96 inline const ResourceLimits& GetResourceLimits() const { return m_resourceLimits; }
97 inline bool ResourceLimitsHasBeenSet() const { return m_resourceLimitsHasBeenSet; }
98 template<typename ResourceLimitsT = ResourceLimits>
99 void SetResourceLimits(ResourceLimitsT&& value) { m_resourceLimitsHasBeenSet = true; m_resourceLimits = std::forward<ResourceLimitsT>(value); }
100 template<typename ResourceLimitsT = ResourceLimits>
101 HyperParameterTuningJobConfig& WithResourceLimits(ResourceLimitsT&& value) { SetResourceLimits(std::forward<ResourceLimitsT>(value)); return *this;}
103
105
112 inline const ParameterRanges& GetParameterRanges() const { return m_parameterRanges; }
113 inline bool ParameterRangesHasBeenSet() const { return m_parameterRangesHasBeenSet; }
114 template<typename ParameterRangesT = ParameterRanges>
115 void SetParameterRanges(ParameterRangesT&& value) { m_parameterRangesHasBeenSet = true; m_parameterRanges = std::forward<ParameterRangesT>(value); }
116 template<typename ParameterRangesT = ParameterRanges>
117 HyperParameterTuningJobConfig& WithParameterRanges(ParameterRangesT&& value) { SetParameterRanges(std::forward<ParameterRangesT>(value)); return *this;}
119
121
135 inline TrainingJobEarlyStoppingType GetTrainingJobEarlyStoppingType() const { return m_trainingJobEarlyStoppingType; }
136 inline bool TrainingJobEarlyStoppingTypeHasBeenSet() const { return m_trainingJobEarlyStoppingTypeHasBeenSet; }
137 inline void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType value) { m_trainingJobEarlyStoppingTypeHasBeenSet = true; m_trainingJobEarlyStoppingType = value; }
140
142
145 inline const TuningJobCompletionCriteria& GetTuningJobCompletionCriteria() const { return m_tuningJobCompletionCriteria; }
146 inline bool TuningJobCompletionCriteriaHasBeenSet() const { return m_tuningJobCompletionCriteriaHasBeenSet; }
147 template<typename TuningJobCompletionCriteriaT = TuningJobCompletionCriteria>
148 void SetTuningJobCompletionCriteria(TuningJobCompletionCriteriaT&& value) { m_tuningJobCompletionCriteriaHasBeenSet = true; m_tuningJobCompletionCriteria = std::forward<TuningJobCompletionCriteriaT>(value); }
149 template<typename TuningJobCompletionCriteriaT = TuningJobCompletionCriteria>
150 HyperParameterTuningJobConfig& WithTuningJobCompletionCriteria(TuningJobCompletionCriteriaT&& value) { SetTuningJobCompletionCriteria(std::forward<TuningJobCompletionCriteriaT>(value)); return *this;}
152
154
160 inline int GetRandomSeed() const { return m_randomSeed; }
161 inline bool RandomSeedHasBeenSet() const { return m_randomSeedHasBeenSet; }
162 inline void SetRandomSeed(int value) { m_randomSeedHasBeenSet = true; m_randomSeed = value; }
163 inline HyperParameterTuningJobConfig& WithRandomSeed(int value) { SetRandomSeed(value); return *this;}
165 private:
166
168 bool m_strategyHasBeenSet = false;
169
170 HyperParameterTuningJobStrategyConfig m_strategyConfig;
171 bool m_strategyConfigHasBeenSet = false;
172
173 HyperParameterTuningJobObjective m_hyperParameterTuningJobObjective;
174 bool m_hyperParameterTuningJobObjectiveHasBeenSet = false;
175
176 ResourceLimits m_resourceLimits;
177 bool m_resourceLimitsHasBeenSet = false;
178
179 ParameterRanges m_parameterRanges;
180 bool m_parameterRangesHasBeenSet = false;
181
183 bool m_trainingJobEarlyStoppingTypeHasBeenSet = false;
184
185 TuningJobCompletionCriteria m_tuningJobCompletionCriteria;
186 bool m_tuningJobCompletionCriteriaHasBeenSet = false;
187
188 int m_randomSeed{0};
189 bool m_randomSeedHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace SageMaker
194} // namespace Aws
HyperParameterTuningJobStrategyType GetStrategy() const
const HyperParameterTuningJobObjective & GetHyperParameterTuningJobObjective() const
HyperParameterTuningJobConfig & WithHyperParameterTuningJobObjective(HyperParameterTuningJobObjectiveT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHyperParameterTuningJobObjective(HyperParameterTuningJobObjectiveT &&value)
void SetTuningJobCompletionCriteria(TuningJobCompletionCriteriaT &&value)
AWS_SAGEMAKER_API HyperParameterTuningJobConfig()=default
HyperParameterTuningJobConfig & WithResourceLimits(ResourceLimitsT &&value)
HyperParameterTuningJobConfig & WithTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType value)
void SetTrainingJobEarlyStoppingType(TrainingJobEarlyStoppingType value)
void SetStrategy(HyperParameterTuningJobStrategyType value)
AWS_SAGEMAKER_API HyperParameterTuningJobConfig(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobConfig & WithTuningJobCompletionCriteria(TuningJobCompletionCriteriaT &&value)
const TuningJobCompletionCriteria & GetTuningJobCompletionCriteria() const
AWS_SAGEMAKER_API HyperParameterTuningJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobConfig & WithStrategy(HyperParameterTuningJobStrategyType value)
const HyperParameterTuningJobStrategyConfig & GetStrategyConfig() const
HyperParameterTuningJobConfig & WithStrategyConfig(StrategyConfigT &&value)
HyperParameterTuningJobConfig & WithParameterRanges(ParameterRangesT &&value)
Aws::Utils::Json::JsonValue JsonValue