Class: Google::Apis::BigqueryV2::IterationResult
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::IterationResult
- 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
Overview
Information about a single iteration of the training run.
Instance Attribute Summary collapse
-
#arima_result ⇒ Google::Apis::BigqueryV2::ArimaResult
(Auto-)arima fitting result.
-
#cluster_infos ⇒ Array<Google::Apis::BigqueryV2::ClusterInfo>
Information about top clusters for clustering models.
-
#duration_ms ⇒ Fixnum
Time taken to run the iteration in milliseconds.
-
#eval_loss ⇒ Float
Loss computed on the eval data at the end of iteration.
-
#index ⇒ Fixnum
Index of the iteration, 0 based.
-
#learn_rate ⇒ Float
Learn rate used for this iteration.
-
#training_loss ⇒ Float
Loss computed on the training data at the end of iteration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IterationResult
constructor
A new instance of IterationResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IterationResult
Returns a new instance of IterationResult.
2638 2639 2640 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#arima_result ⇒ Google::Apis::BigqueryV2::ArimaResult
(Auto-)arima fitting result. Wrap everything in ArimaResult for easier
refactoring if we want to use model-specific iteration results.
Corresponds to the JSON property arimaResult
2606 2607 2608 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2606 def arima_result @arima_result end |
#cluster_infos ⇒ Array<Google::Apis::BigqueryV2::ClusterInfo>
Information about top clusters for clustering models.
Corresponds to the JSON property clusterInfos
2611 2612 2613 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2611 def cluster_infos @cluster_infos end |
#duration_ms ⇒ Fixnum
Time taken to run the iteration in milliseconds.
Corresponds to the JSON property durationMs
2616 2617 2618 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2616 def duration_ms @duration_ms end |
#eval_loss ⇒ Float
Loss computed on the eval data at the end of iteration.
Corresponds to the JSON property evalLoss
2621 2622 2623 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2621 def eval_loss @eval_loss end |
#index ⇒ Fixnum
Index of the iteration, 0 based.
Corresponds to the JSON property index
2626 2627 2628 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2626 def index @index end |
#learn_rate ⇒ Float
Learn rate used for this iteration.
Corresponds to the JSON property learnRate
2631 2632 2633 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2631 def learn_rate @learn_rate end |
#training_loss ⇒ Float
Loss computed on the training data at the end of iteration.
Corresponds to the JSON property trainingLoss
2636 2637 2638 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2636 def training_loss @training_loss end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2643 2644 2645 2646 2647 2648 2649 2650 2651 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2643 def update!(**args) @arima_result = args[:arima_result] if args.key?(:arima_result) @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos) @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 |