Class: Google::Apis::BigqueryV2::BigQueryModelTraining

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

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) ⇒ BigQueryModelTraining

Returns a new instance of BigQueryModelTraining.



311
312
313
# File 'generated/google/apis/bigquery_v2/classes.rb', line 311

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

Instance Attribute Details

#current_iterationFixnum

[Output-only, Beta] Index of current ML training iteration. Updated during create model query job to show job progress. Corresponds to the JSON property currentIteration

Returns:

  • (Fixnum)


302
303
304
# File 'generated/google/apis/bigquery_v2/classes.rb', line 302

def current_iteration
  @current_iteration
end

#expected_total_iterationsFixnum

[Output-only, Beta] Expected number of iterations for the create model query job specified as num_iterations in the input query. The actual total number of iterations may be less than this number due to early stop. Corresponds to the JSON property expectedTotalIterations

Returns:

  • (Fixnum)


309
310
311
# File 'generated/google/apis/bigquery_v2/classes.rb', line 309

def expected_total_iterations
  @expected_total_iterations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



316
317
318
319
# File 'generated/google/apis/bigquery_v2/classes.rb', line 316

def update!(**args)
  @current_iteration = args[:current_iteration] if args.key?(:current_iteration)
  @expected_total_iterations = args[:expected_total_iterations] if args.key?(:expected_total_iterations)
end