Class: Google::Apis::BigqueryV2::BqmlIterationResult
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::BqmlIterationResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigquery_v2/classes.rb,
generated/google/apis/bigquery_v2/representations.rb,
generated/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#duration_ms ⇒ Fixnum
[Output-only, Beta] Time taken to run the training iteration in milliseconds.
-
#eval_loss ⇒ Float
[Output-only, Beta] Eval loss computed on the eval data at the end of the iteration.
-
#index ⇒ Fixnum
[Output-only, Beta] Index of the ML training iteration, starting from zero for each training run.
-
#learn_rate ⇒ Float
[Output-only, Beta] Learning rate used for this iteration, it varies for different training iterations if learn_rate_strategy option is not constant.
-
#training_loss ⇒ Float
[Output-only, Beta] Training loss computed on the training data at the end of the iteration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BqmlIterationResult
constructor
A new instance of BqmlIterationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BqmlIterationResult
Returns a new instance of BqmlIterationResult
489 490 491 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 489 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_ms ⇒ Fixnum
[Output-only, Beta] Time taken to run the training iteration in milliseconds.
Corresponds to the JSON property durationMs
461 462 463 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 461 def duration_ms @duration_ms end |
#eval_loss ⇒ Float
[Output-only, Beta] Eval loss computed on the eval data at the end of the
iteration. The eval loss is used for early stopping to avoid overfitting. No
eval loss if eval_split_method option is specified as no_split or auto_split
with input data size less than 500 rows.
Corresponds to the JSON property evalLoss
469 470 471 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 469 def eval_loss @eval_loss end |
#index ⇒ Fixnum
[Output-only, Beta] Index of the ML training iteration, starting from zero for
each training run.
Corresponds to the JSON property index
475 476 477 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 475 def index @index end |
#learn_rate ⇒ Float
[Output-only, Beta] Learning rate used for this iteration, it varies for
different training iterations if learn_rate_strategy option is not constant.
Corresponds to the JSON property learnRate
481 482 483 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 481 def learn_rate @learn_rate end |
#training_loss ⇒ Float
[Output-only, Beta] Training loss computed on the training data at the end of
the iteration. The training loss function is defined by model type.
Corresponds to the JSON property trainingLoss
487 488 489 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 487 def training_loss @training_loss end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
494 495 496 497 498 499 500 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 494 def update!(**args) @duration_ms = args[:duration_ms] if args.key?(:duration_ms) @eval_loss = args[:eval_loss] if args.key?(:eval_loss) @index = args[:index] if args.key?(:index) @learn_rate = args[:learn_rate] if args.key?(:learn_rate) @training_loss = args[:training_loss] if args.key?(:training_loss) end |