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
-
#cluster_infos ⇒ Array<Google::Apis::BigqueryV2::ClusterInfo>
[Beta] 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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ IterationResult
Returns a new instance of IterationResult
1860 1861 1862 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1860 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_infos ⇒ Array<Google::Apis::BigqueryV2::ClusterInfo>
[Beta] Information about top clusters for clustering models.
Corresponds to the JSON property clusterInfos
1833 1834 1835 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1833 def cluster_infos @cluster_infos end |
#duration_ms ⇒ Fixnum
Time taken to run the iteration in milliseconds.
Corresponds to the JSON property durationMs
1838 1839 1840 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1838 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
1843 1844 1845 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1843 def eval_loss @eval_loss end |
#index ⇒ Fixnum
Index of the iteration, 0 based.
Corresponds to the JSON property index
1848 1849 1850 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1848 def index @index end |
#learn_rate ⇒ Float
Learn rate used for this iteration.
Corresponds to the JSON property learnRate
1853 1854 1855 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1853 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
1858 1859 1860 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1858 def training_loss @training_loss end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1865 1866 1867 1868 1869 1870 1871 1872 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1865 def update!(**args) @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 |