Class: Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec

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 a metric to optimize.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1StudyConfigMetricSpec

Returns a new instance of GoogleCloudMlV1StudyConfigMetricSpec.



336
337
338
# File 'generated/google/apis/ml_v1/classes.rb', line 336

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#goalString

Required. The optimization goal of the metric. Corresponds to the JSON property goal

Returns:

  • (String)


329
330
331
# File 'generated/google/apis/ml_v1/classes.rb', line 329

def goal
  @goal
end

#metricString

Required. The name of the metric. Corresponds to the JSON property metric

Returns:

  • (String)


334
335
336
# File 'generated/google/apis/ml_v1/classes.rb', line 334

def metric
  @metric
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



341
342
343
344
# File 'generated/google/apis/ml_v1/classes.rb', line 341

def update!(**args)
  @goal = args[:goal] if args.key?(:goal)
  @metric = args[:metric] if args.key?(:metric)
end