Class: Google::Apis::BigqueryV2::ModelDefinition

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

Defined Under Namespace

Classes: ModelOptions

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

Returns a new instance of ModelDefinition.


4218
4219
4220
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4218

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

Instance Attribute Details

#model_optionsGoogle::Apis::BigqueryV2::ModelDefinition::ModelOptions

[Output-only, Beta] Model options used for the first training run. These options are immutable for subsequent training runs. Default values are used for any options not specified in the input query. Corresponds to the JSON property modelOptions


4208
4209
4210
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4208

def model_options
  @model_options
end

#training_runsArray<Google::Apis::BigqueryV2::BqmlTrainingRun>

[Output-only, Beta] Information about ml training runs, each training run comprises of multiple iterations and there may be multiple training runs for the model if warm start is used or if a user decides to continue a previously cancelled query. Corresponds to the JSON property trainingRuns


4216
4217
4218
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4216

def training_runs
  @training_runs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4223
4224
4225
4226
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4223

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