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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1Measurement

Returns a new instance of GoogleCloudMlV1Measurement.



1472
1473
1474
# File 'generated/google/apis/ml_v1/classes.rb', line 1472

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

Instance Attribute Details

#elapsed_timeString

Time that the Trial has been running at the point of this Measurement. Corresponds to the JSON property elapsedTime

Returns:

  • (String)


1458
1459
1460
# File 'generated/google/apis/ml_v1/classes.rb', line 1458

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



1464
1465
1466
# File 'generated/google/apis/ml_v1/classes.rb', line 1464

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)


1470
1471
1472
# File 'generated/google/apis/ml_v1/classes.rb', line 1470

def step_count
  @step_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1477
1478
1479
1480
1481
# File 'generated/google/apis/ml_v1/classes.rb', line 1477

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