Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1StudyConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Represents configuration of a study.
Instance Attribute Summary collapse
-
#algorithm ⇒ String
The search algorithm specified for the study.
-
#automated_stopping_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfig
Configuration for Automated Early Stopping of Trials.
-
#metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec>
Corresponds to the JSON property
metrics
. -
#parameters ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfig
constructor
A new instance of GoogleCloudMlV1StudyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfig
Returns a new instance of GoogleCloudMlV1StudyConfig.
2178 2179 2180 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
The search algorithm specified for the study.
Corresponds to the JSON property algorithm
2160 2161 2162 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2160 def algorithm @algorithm end |
#automated_stopping_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AutomatedStoppingConfig
Configuration for Automated Early Stopping of Trials. If no
implementation_config is set, automated early stopping will not be run.
Corresponds to the JSON property automatedStoppingConfig
2166 2167 2168 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2166 def automated_stopping_config @automated_stopping_config end |
#metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec>
Corresponds to the JSON property metrics
2171 2172 2173 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2171 def metrics @metrics end |
#parameters ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>
Required. The set of parameters to tune.
Corresponds to the JSON property parameters
2176 2177 2178 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2176 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2183 2184 2185 2186 2187 2188 |
# File 'generated/google/apis/ml_v1/classes.rb', line 2183 def update!(**args) @algorithm = args[:algorithm] if args.key?(:algorithm) @automated_stopping_config = args[:automated_stopping_config] if args.key?(:automated_stopping_config) @metrics = args[:metrics] if args.key?(:metrics) @parameters = args[:parameters] if args.key?(:parameters) end |