Class: Google::Apis::MlV1::GoogleCloudMlV1TrainingOutput

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 results of a training job. Output only.

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

Returns a new instance of GoogleCloudMlV1TrainingOutput



1204
1205
1206
# File 'generated/google/apis/ml_v1/classes.rb', line 1204

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

Instance Attribute Details

#completed_trial_countFixnum

The number of hyperparameter tuning trials that completed successfully. Only set for hyperparameter tuning jobs. Corresponds to the JSON property completedTrialCount

Returns:

  • (Fixnum)


1185
1186
1187
# File 'generated/google/apis/ml_v1/classes.rb', line 1185

def completed_trial_count
  @completed_trial_count
end

#consumed_ml_unitsFloat

The amount of ML units consumed by the job. Corresponds to the JSON property consumedMLUnits

Returns:

  • (Float)


1190
1191
1192
# File 'generated/google/apis/ml_v1/classes.rb', line 1190

def consumed_ml_units
  @consumed_ml_units
end

#is_hyperparameter_tuning_jobBoolean Also known as: is_hyperparameter_tuning_job?

Whether this job is a hyperparameter tuning job. Corresponds to the JSON property isHyperparameterTuningJob

Returns:

  • (Boolean)


1195
1196
1197
# File 'generated/google/apis/ml_v1/classes.rb', line 1195

def is_hyperparameter_tuning_job
  @is_hyperparameter_tuning_job
end

#trialsArray<Google::Apis::MlV1::GoogleCloudMlV1HyperparameterOutput>

Results for individual Hyperparameter trials. Only set for hyperparameter tuning jobs. Corresponds to the JSON property trials



1202
1203
1204
# File 'generated/google/apis/ml_v1/classes.rb', line 1202

def trials
  @trials
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1209
1210
1211
1212
1213
1214
# File 'generated/google/apis/ml_v1/classes.rb', line 1209

def update!(**args)
  @completed_trial_count = args[:completed_trial_count] if args.key?(:completed_trial_count)
  @consumed_ml_units = args[:consumed_ml_units] if args.key?(:consumed_ml_units)
  @is_hyperparameter_tuning_job = args[:is_hyperparameter_tuning_job] if args.key?(:is_hyperparameter_tuning_job)
  @trials = args[:trials] if args.key?(:trials)
end