class Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric
A message representing a metric in the measurement.
Attributes
metric[RW]
Required. Metric name. Corresponds to the JSON property `metric` @return [String]
value[RW]
Required. The value for this metric. Corresponds to the JSON property `value` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/ml_v1/classes.rb, line 160 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 165 def update!(**args) @metric = args[:metric] if args.key?(:metric) @value = args[:value] if args.key?(:value) end