Class: Google::Apis::BigqueryV2::TrainingRun::TrainingOptions
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::TrainingRun::TrainingOptions
- 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
-
#early_stop ⇒ Boolean
(also: #early_stop?)
Corresponds to the JSON property
earlyStop. -
#l1_reg ⇒ Float
Corresponds to the JSON property
l1Reg. -
#l2_reg ⇒ Float
Corresponds to the JSON property
l2Reg. -
#learn_rate ⇒ Float
Corresponds to the JSON property
learnRate. -
#learn_rate_strategy ⇒ String
Corresponds to the JSON property
learnRateStrategy. -
#line_search_init_learn_rate ⇒ Float
Corresponds to the JSON property
lineSearchInitLearnRate. -
#max_iteration ⇒ Fixnum
Corresponds to the JSON property
maxIteration. -
#min_rel_progress ⇒ Float
Corresponds to the JSON property
minRelProgress. -
#warm_start ⇒ Boolean
(also: #warm_start?)
Corresponds to the JSON property
warmStart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrainingOptions
constructor
A new instance of TrainingOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TrainingOptions
Returns a new instance of TrainingOptions
3924 3925 3926 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3924 def initialize(**args) update!(**args) end |
Instance Attribute Details
#early_stop ⇒ Boolean Also known as: early_stop?
Corresponds to the JSON property earlyStop
3880 3881 3882 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3880 def early_stop @early_stop end |
#l1_reg ⇒ Float
Corresponds to the JSON property l1Reg
3886 3887 3888 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3886 def l1_reg @l1_reg end |
#l2_reg ⇒ Float
Corresponds to the JSON property l2Reg
3891 3892 3893 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3891 def l2_reg @l2_reg end |
#learn_rate ⇒ Float
Corresponds to the JSON property learnRate
3896 3897 3898 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3896 def learn_rate @learn_rate end |
#learn_rate_strategy ⇒ String
Corresponds to the JSON property learnRateStrategy
3901 3902 3903 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3901 def learn_rate_strategy @learn_rate_strategy end |
#line_search_init_learn_rate ⇒ Float
Corresponds to the JSON property lineSearchInitLearnRate
3906 3907 3908 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3906 def line_search_init_learn_rate @line_search_init_learn_rate end |
#max_iteration ⇒ Fixnum
Corresponds to the JSON property maxIteration
3911 3912 3913 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3911 def max_iteration @max_iteration end |
#min_rel_progress ⇒ Float
Corresponds to the JSON property minRelProgress
3916 3917 3918 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3916 def min_rel_progress @min_rel_progress end |
#warm_start ⇒ Boolean Also known as: warm_start?
Corresponds to the JSON property warmStart
3921 3922 3923 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3921 def warm_start @warm_start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 |
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3929 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 |