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.
-
#built_in_algorithm_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput
Represents output related to a built-in algorithm Job.
-
#end_time ⇒ String
Output only.
-
#final_metric ⇒ Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
An observed value of a metric.
-
#hyperparameters ⇒ Hash<String,String>
The hyperparameters given to this trial.
-
#is_trial_stopped_early ⇒ Boolean
(also: #is_trial_stopped_early?)
True if the trial is stopped early.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1HyperparameterOutput
Returns a new instance of GoogleCloudMlV1HyperparameterOutput.
1213 1214 1215 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_metrics ⇒ Array<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>
All recorded object metrics for this trial. This field is not currently
populated.
Corresponds to the JSON property allMetrics
1170 1171 1172 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1170 def all_metrics @all_metrics end |
#built_in_algorithm_output ⇒ Google::Apis::MlV1::GoogleCloudMlV1BuiltInAlgorithmOutput
Represents output related to a built-in algorithm Job.
Corresponds to the JSON property builtInAlgorithmOutput
1175 1176 1177 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1175 def built_in_algorithm_output @built_in_algorithm_output end |
#end_time ⇒ String
Output only. End time for the trial.
Corresponds to the JSON property endTime
1180 1181 1182 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1180 def end_time @end_time end |
#final_metric ⇒ Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
An observed value of a metric.
Corresponds to the JSON property finalMetric
1185 1186 1187 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1185 def final_metric @final_metric end |
#hyperparameters ⇒ Hash<String,String>
The hyperparameters given to this trial.
Corresponds to the JSON property hyperparameters
1190 1191 1192 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1190 def hyperparameters @hyperparameters end |
#is_trial_stopped_early ⇒ Boolean Also known as: is_trial_stopped_early?
True if the trial is stopped early.
Corresponds to the JSON property isTrialStoppedEarly
1195 1196 1197 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1195 def is_trial_stopped_early @is_trial_stopped_early end |
#start_time ⇒ String
Output only. Start time for the trial.
Corresponds to the JSON property startTime
1201 1202 1203 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1201 def start_time @start_time end |
#state ⇒ String
Output only. The detailed state of the trial.
Corresponds to the JSON property state
1206 1207 1208 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1206 def state @state end |
#trial_id ⇒ String
The trial id for these results.
Corresponds to the JSON property trialId
1211 1212 1213 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1211 def trial_id @trial_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1218 def update!(**args) @all_metrics = args[:all_metrics] if args.key?(:all_metrics) @built_in_algorithm_output = args[:built_in_algorithm_output] if args.key?(:built_in_algorithm_output) @end_time = args[:end_time] if args.key?(:end_time) @final_metric = args[:final_metric] if args.key?(:final_metric) @hyperparameters = args[:hyperparameters] if args.key?(:hyperparameters) @is_trial_stopped_early = args[:is_trial_stopped_early] if args.key?(:is_trial_stopped_early) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) @trial_id = args[:trial_id] if args.key?(:trial_id) end |