Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1StudyConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/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>
Metric specs for the study.
-
#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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfig
Returns a new instance of GoogleCloudMlV1StudyConfig.
2505 2506 2507 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2505 def initialize(**args) update!(**args) end |
Instance Attribute Details
#algorithm ⇒ String
The search algorithm specified for the study.
Corresponds to the JSON property algorithm
2487 2488 2489 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2487 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
2493 2494 2495 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2493 def automated_stopping_config @automated_stopping_config end |
#metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec>
Metric specs for the study.
Corresponds to the JSON property metrics
2498 2499 2500 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2498 def metrics @metrics end |
#parameters ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1StudyConfigParameterSpec>
Required. The set of parameters to tune.
Corresponds to the JSON property parameters
2503 2504 2505 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2503 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2510 2511 2512 2513 2514 2515 |
# File 'lib/google/apis/ml_v1/classes.rb', line 2510 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 |