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

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

[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.

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

Returns a new instance of ModelOptions



2523
2524
2525
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2523

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

Instance Attribute Details

#labelsArray<String>

Corresponds to the JSON property labels

Returns:

  • (Array<String>)


2511
2512
2513
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2511

def labels
  @labels
end

#loss_typeString

Corresponds to the JSON property lossType

Returns:

  • (String)


2516
2517
2518
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2516

def loss_type
  @loss_type
end

#model_typeString

Corresponds to the JSON property modelType

Returns:

  • (String)


2521
2522
2523
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2521

def model_type
  @model_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2528
2529
2530
2531
2532
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2528

def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @loss_type = args[:loss_type] if args.key?(:loss_type)
  @model_type = args[:model_type] if args.key?(:model_type)
end