Class: Google::Apis::BigqueryV2::TrainingRun::TrainingOptions

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] Training options used by this training run. These options are mutable for subsequent training runs. Default values are explicitly stored for options not specified in the input query of the first training run. For subsequent training runs, any option not explicitly specified in the input query will be copied from the previous 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) ⇒ TrainingOptions

Returns a new instance of TrainingOptions



4049
4050
4051
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4049

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

Instance Attribute Details

#early_stopBoolean Also known as: early_stop?

Corresponds to the JSON property earlyStop

Returns:

  • (Boolean)


4005
4006
4007
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4005

def early_stop
  @early_stop
end

#l1_regFloat

Corresponds to the JSON property l1Reg

Returns:

  • (Float)


4011
4012
4013
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4011

def l1_reg
  @l1_reg
end

#l2_regFloat

Corresponds to the JSON property l2Reg

Returns:

  • (Float)


4016
4017
4018
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4016

def l2_reg
  @l2_reg
end

#learn_rateFloat

Corresponds to the JSON property learnRate

Returns:

  • (Float)


4021
4022
4023
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4021

def learn_rate
  @learn_rate
end

#learn_rate_strategyString

Corresponds to the JSON property learnRateStrategy

Returns:

  • (String)


4026
4027
4028
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4026

def learn_rate_strategy
  @learn_rate_strategy
end

#line_search_init_learn_rateFloat

Corresponds to the JSON property lineSearchInitLearnRate

Returns:

  • (Float)


4031
4032
4033
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4031

def line_search_init_learn_rate
  @line_search_init_learn_rate
end

#max_iterationFixnum

Corresponds to the JSON property maxIteration

Returns:

  • (Fixnum)


4036
4037
4038
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4036

def max_iteration
  @max_iteration
end

#min_rel_progressFloat

Corresponds to the JSON property minRelProgress

Returns:

  • (Float)


4041
4042
4043
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4041

def min_rel_progress
  @min_rel_progress
end

#warm_startBoolean Also known as: warm_start?

Corresponds to the JSON property warmStart

Returns:

  • (Boolean)


4046
4047
4048
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4046

def warm_start
  @warm_start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4054

def update!(**args)
  @early_stop = args[:early_stop] if args.key?(:early_stop)
  @l1_reg = args[:l1_reg] if args.key?(:l1_reg)
  @l2_reg = args[:l2_reg] if args.key?(:l2_reg)
  @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
  @learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
  @line_search_init_learn_rate = args[:line_search_init_learn_rate] if args.key?(:line_search_init_learn_rate)
  @max_iteration = args[:max_iteration] if args.key?(:max_iteration)
  @min_rel_progress = args[:min_rel_progress] if args.key?(:min_rel_progress)
  @warm_start = args[:warm_start] if args.key?(:warm_start)
end