Class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric

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

An observed value of a metric.

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) ⇒ GoogleCloudMlV1HyperparameterOutputHyperparameterMetric

Returns a new instance of GoogleCloudMlV1HyperparameterOutputHyperparameterMetric



595
596
597
# File 'generated/google/apis/ml_v1/classes.rb', line 595

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

Instance Attribute Details

#objective_valueFloat

The objective value at this training step. Corresponds to the JSON property objectiveValue

Returns:

  • (Float)


593
594
595
# File 'generated/google/apis/ml_v1/classes.rb', line 593

def objective_value
  @objective_value
end

#training_stepFixnum

The global training step for this metric. Corresponds to the JSON property trainingStep

Returns:

  • (Fixnum)


588
589
590
# File 'generated/google/apis/ml_v1/classes.rb', line 588

def training_step
  @training_step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



600
601
602
603
# File 'generated/google/apis/ml_v1/classes.rb', line 600

def update!(**args)
  @training_step = args[:training_step] if args.key?(:training_step)
  @objective_value = args[:objective_value] if args.key?(:objective_value)
end