Class: Google::Apis::MlV1::GoogleCloudMlV1Measurement

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

A message representing a measurement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1Measurement

Returns a new instance of GoogleCloudMlV1Measurement.



1684
1685
1686
# File 'generated/google/apis/ml_v1/classes.rb', line 1684

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

Instance Attribute Details

#elapsed_timeString

Output only. Time that the trial has been running at the point of this measurement. Corresponds to the JSON property elapsedTime

Returns:

  • (String)


1671
1672
1673
# File 'generated/google/apis/ml_v1/classes.rb', line 1671

def elapsed_time
  @elapsed_time
end

#metricsArray<Google::Apis::MlV1::GoogleCloudMlV1MeasurementMetric>

Provides a list of metrics that act as inputs into the objective function. Corresponds to the JSON property metrics



1676
1677
1678
# File 'generated/google/apis/ml_v1/classes.rb', line 1676

def metrics
  @metrics
end

#step_countFixnum

The number of steps a machine learning model has been trained for. Must be non- negative. Corresponds to the JSON property stepCount

Returns:

  • (Fixnum)


1682
1683
1684
# File 'generated/google/apis/ml_v1/classes.rb', line 1682

def step_count
  @step_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1689
1690
1691
1692
1693
# File 'generated/google/apis/ml_v1/classes.rb', line 1689

def update!(**args)
  @elapsed_time = args[:elapsed_time] if args.key?(:elapsed_time)
  @metrics = args[:metrics] if args.key?(:metrics)
  @step_count = args[:step_count] if args.key?(:step_count)
end