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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IterationResult

Returns a new instance of IterationResult.



3614
3615
3616
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3614

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

Instance Attribute Details

#duration_msFixnum

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

Returns:

  • (Fixnum)


3592
3593
3594
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3592

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)


3597
3598
3599
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3597

def eval_loss
  @eval_loss
end

#indexFixnum

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

Returns:

  • (Fixnum)


3602
3603
3604
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3602

def index
  @index
end

#learn_rateFloat

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

Returns:

  • (Float)


3607
3608
3609
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3607

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)


3612
3613
3614
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3612

def training_loss
  @training_loss
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3619
3620
3621
3622
3623
3624
3625
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3619

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