Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec
- 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 a metric to optimize.
Instance Attribute Summary collapse
-
#goal ⇒ String
Required.
-
#metric ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigMetricSpec
constructor
A new instance of GoogleCloudMlV1StudyConfigMetricSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigMetricSpec
Returns a new instance of GoogleCloudMlV1StudyConfigMetricSpec.
352 353 354 |
# File 'generated/google/apis/ml_v1/classes.rb', line 352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#goal ⇒ String
Required. The optimization goal of the metric.
Corresponds to the JSON property goal
345 346 347 |
# File 'generated/google/apis/ml_v1/classes.rb', line 345 def goal @goal end |
#metric ⇒ String
Required. The name of the metric.
Corresponds to the JSON property metric
350 351 352 |
# File 'generated/google/apis/ml_v1/classes.rb', line 350 def metric @metric end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
357 358 359 360 |
# File 'generated/google/apis/ml_v1/classes.rb', line 357 def update!(**args) @goal = args[:goal] if args.key?(:goal) @metric = args[:metric] if args.key?(:metric) end |