Class: Google::Apis::BigqueryV2::IterationResult
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::IterationResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/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.
-
#principal_component_infos ⇒ Array<Google::Apis::BigqueryV2::PrincipalComponentInfo>
The information of the principal components.
-
#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.
4221 4222 4223 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4221 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
4184 4185 4186 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4184 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
4189 4190 4191 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4189 def cluster_infos @cluster_infos end |
#duration_ms ⇒ Fixnum
Time taken to run the iteration in milliseconds.
Corresponds to the JSON property durationMs
4194 4195 4196 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4194 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
4199 4200 4201 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4199 def eval_loss @eval_loss end |
#index ⇒ Fixnum
Index of the iteration, 0 based.
Corresponds to the JSON property index
4204 4205 4206 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4204 def index @index end |
#learn_rate ⇒ Float
Learn rate used for this iteration.
Corresponds to the JSON property learnRate
4209 4210 4211 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4209 def learn_rate @learn_rate end |
#principal_component_infos ⇒ Array<Google::Apis::BigqueryV2::PrincipalComponentInfo>
The information of the principal components.
Corresponds to the JSON property principalComponentInfos
4214 4215 4216 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4214 def principal_component_infos @principal_component_infos end |
#training_loss ⇒ Float
Loss computed on the training data at the end of iteration.
Corresponds to the JSON property trainingLoss
4219 4220 4221 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4219 def training_loss @training_loss end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 4226 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) @principal_component_infos = args[:principal_component_infos] if args.key?(:principal_component_infos) @training_loss = args[:training_loss] if args.key?(:training_loss) end |