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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/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.



1702
1703
1704
# File 'lib/google/apis/ml_v1/classes.rb', line 1702

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)


1689
1690
1691
# File 'lib/google/apis/ml_v1/classes.rb', line 1689

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



1694
1695
1696
# File 'lib/google/apis/ml_v1/classes.rb', line 1694

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)


1700
1701
1702
# File 'lib/google/apis/ml_v1/classes.rb', line 1700

def step_count
  @step_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1707
1708
1709
1710
1711
# File 'lib/google/apis/ml_v1/classes.rb', line 1707

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