class Google::Apis::MlV1::GoogleCloudMlV1StudyConfigMetricSpec

Represents a metric to optimize.

Attributes

goal[RW]

Required. The optimization goal of the metric. Corresponds to the JSON property `goal` @return [String]

metric[RW]

Required. The name of the metric. Corresponds to the JSON property `metric` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 336
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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