Class: Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput
- 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
-
#all_metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>
All recorded object metrics for this trial.
-
#final_metric ⇒ Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
An observed value of a metric.
-
#hyperparameters ⇒ Hash<String,String>
The hyperparameters given to this trial.
-
#trial_id ⇒ String
The trial id for these results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1HyperparameterOutput
constructor
A new instance of GoogleCloudMlV1HyperparameterOutput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1HyperparameterOutput
Returns a new instance of GoogleCloudMlV1HyperparameterOutput
1231 1232 1233 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1231 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>
All recorded object metrics for this trial.
Corresponds to the JSON property allMetrics
1224 1225 1226 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1224 def all_metrics @all_metrics end |
#final_metric ⇒ Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
An observed value of a metric.
Corresponds to the JSON property finalMetric
1229 1230 1231 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1229 def final_metric @final_metric end |
#hyperparameters ⇒ Hash<String,String>
The hyperparameters given to this trial.
Corresponds to the JSON property hyperparameters
1214 1215 1216 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1214 def hyperparameters @hyperparameters end |
#trial_id ⇒ String
The trial id for these results.
Corresponds to the JSON property trialId
1219 1220 1221 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1219 def trial_id @trial_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1236 1237 1238 1239 1240 1241 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1236 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 |