Class: Google::Apis::BigqueryV2::IterationResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IterationResult

Returns a new instance of IterationResult



1978
1979
1980
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1978

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

Instance Attribute Details

#cluster_infosArray<Google::Apis::BigqueryV2::ClusterInfo>

Information about top clusters for clustering models. Corresponds to the JSON property clusterInfos



1951
1952
1953
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1951

def cluster_infos
  @cluster_infos
end

#duration_msFixnum

Time taken to run the iteration in milliseconds. Corresponds to the JSON property durationMs

Returns:

  • (Fixnum)


1956
1957
1958
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1956

def duration_ms
  @duration_ms
end

#eval_lossFloat

Loss computed on the eval data at the end of iteration. Corresponds to the JSON property evalLoss

Returns:

  • (Float)


1961
1962
1963
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1961

def eval_loss
  @eval_loss
end

#indexFixnum

Index of the iteration, 0 based. Corresponds to the JSON property index

Returns:

  • (Fixnum)


1966
1967
1968
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1966

def index
  @index
end

#learn_rateFloat

Learn rate used for this iteration. Corresponds to the JSON property learnRate

Returns:

  • (Float)


1971
1972
1973
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1971

def learn_rate
  @learn_rate
end

#training_lossFloat

Loss computed on the training data at the end of iteration. Corresponds to the JSON property trainingLoss

Returns:

  • (Float)


1976
1977
1978
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1976

def training_loss
  @training_loss
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1983
1984
1985
1986
1987
1988
1989
1990
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1983

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