Class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput

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

Represents the result of a single hyperparameter tuning trial from a training job. The TrainingOutput object that is returned on successful completion of a training job with hyperparameter tuning includes a list of HyperparameterOutput objects, one for each successful trial.

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

Returns a new instance of GoogleCloudMlV1HyperparameterOutput



221
222
223
# File 'generated/google/apis/ml_v1/classes.rb', line 221

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

Instance Attribute Details

#all_metricsArray<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>

All recorded object metrics for this trial. Corresponds to the JSON property allMetrics



214
215
216
# File 'generated/google/apis/ml_v1/classes.rb', line 214

def all_metrics
  @all_metrics
end

#final_metricGoogle::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric

An observed value of a metric. Corresponds to the JSON property finalMetric



219
220
221
# File 'generated/google/apis/ml_v1/classes.rb', line 219

def final_metric
  @final_metric
end

#hyperparametersHash<String,String>

The hyperparameters given to this trial. Corresponds to the JSON property hyperparameters

Returns:

  • (Hash<String,String>)


204
205
206
# File 'generated/google/apis/ml_v1/classes.rb', line 204

def hyperparameters
  @hyperparameters
end

#trial_idString

The trial id for these results. Corresponds to the JSON property trialId

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/ml_v1/classes.rb', line 209

def trial_id
  @trial_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



226
227
228
229
230
231
# File 'generated/google/apis/ml_v1/classes.rb', line 226

def update!(**args)
  @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters)
  @trial_id = args[:trial_id] if args.key?(:trial_id)
  @all_metrics = args[:all_metrics] if args.key?(:all_metrics)
  @final_metric = args[:final_metric] if args.key?(:final_metric)
end