Class: Google::Apis::BigqueryV2::BqmlTrainingRun::TrainingOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TrainingOptions

Returns a new instance of TrainingOptions.



1252
1253
1254
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1252

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

Instance Attribute Details

#early_stopBoolean Also known as: early_stop?

Corresponds to the JSON property earlyStop

Returns:

  • (Boolean)


1208
1209
1210
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1208

def early_stop
  @early_stop
end

#l1_regFloat

Corresponds to the JSON property l1Reg

Returns:

  • (Float)


1214
1215
1216
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1214

def l1_reg
  @l1_reg
end

#l2_regFloat

Corresponds to the JSON property l2Reg

Returns:

  • (Float)


1219
1220
1221
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1219

def l2_reg
  @l2_reg
end

#learn_rateFloat

Corresponds to the JSON property learnRate

Returns:

  • (Float)


1224
1225
1226
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1224

def learn_rate
  @learn_rate
end

#learn_rate_strategyString

Corresponds to the JSON property learnRateStrategy

Returns:

  • (String)


1229
1230
1231
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1229

def learn_rate_strategy
  @learn_rate_strategy
end

#line_search_init_learn_rateFloat

Corresponds to the JSON property lineSearchInitLearnRate

Returns:

  • (Float)


1234
1235
1236
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1234

def line_search_init_learn_rate
  @line_search_init_learn_rate
end

#max_iterationFixnum

Corresponds to the JSON property maxIteration

Returns:

  • (Fixnum)


1239
1240
1241
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1239

def max_iteration
  @max_iteration
end

#min_rel_progressFloat

Corresponds to the JSON property minRelProgress

Returns:

  • (Float)


1244
1245
1246
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1244

def min_rel_progress
  @min_rel_progress
end

#warm_startBoolean Also known as: warm_start?

Corresponds to the JSON property warmStart

Returns:

  • (Boolean)


1249
1250
1251
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1249

def warm_start
  @warm_start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
# File 'lib/google/apis/bigquery_v2/classes.rb', line 1257

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