Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#algorithmString

The search algorithm specified for the study. Corresponds to the JSON property algorithm

Returns:

  • (String)


2160
2161
2162
# File 'generated/google/apis/ml_v1/classes.rb', line 2160

def algorithm
  @algorithm
end

#automated_stopping_configGoogle::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

#metricsArray<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

#parametersArray<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