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.



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

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)


1677
1678
1679
# File 'lib/google/apis/ml_v1/classes.rb', line 1677

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



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

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)


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

def step_count
  @step_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1695
1696
1697
1698
1699
# File 'lib/google/apis/ml_v1/classes.rb', line 1695

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