Class: Google::Apis::BigqueryV2::HparamSearchSpaces

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

Hyperparameter search spaces. These should be a subset of training_options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HparamSearchSpaces

Returns a new instance of HparamSearchSpaces.



3212
3213
3214
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3212

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

Instance Attribute Details

#activation_fnGoogle::Apis::BigqueryV2::StringHparamSearchSpace

Search space for string and enum. Corresponds to the JSON property activationFn



3105
3106
3107
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3105

def activation_fn
  @activation_fn
end

#batch_sizeGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property batchSize



3110
3111
3112
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3110

def batch_size
  @batch_size
end

#booster_typeGoogle::Apis::BigqueryV2::StringHparamSearchSpace

Search space for string and enum. Corresponds to the JSON property boosterType



3115
3116
3117
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3115

def booster_type
  @booster_type
end

#colsample_bylevelGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property colsampleBylevel



3120
3121
3122
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3120

def colsample_bylevel
  @colsample_bylevel
end

#colsample_bynodeGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property colsampleBynode



3125
3126
3127
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3125

def colsample_bynode
  @colsample_bynode
end

#colsample_bytreeGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property colsampleBytree



3130
3131
3132
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3130

def colsample_bytree
  @colsample_bytree
end

#dart_normalize_typeGoogle::Apis::BigqueryV2::StringHparamSearchSpace

Search space for string and enum. Corresponds to the JSON property dartNormalizeType



3135
3136
3137
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3135

def dart_normalize_type
  @dart_normalize_type
end

#dropoutGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property dropout



3140
3141
3142
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3140

def dropout
  @dropout
end

#hidden_unitsGoogle::Apis::BigqueryV2::IntArrayHparamSearchSpace

Search space for int array. Corresponds to the JSON property hiddenUnits



3145
3146
3147
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3145

def hidden_units
  @hidden_units
end

#l1_regGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property l1Reg



3150
3151
3152
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3150

def l1_reg
  @l1_reg
end

#l2_regGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property l2Reg



3155
3156
3157
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3155

def l2_reg
  @l2_reg
end

#learn_rateGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property learnRate



3160
3161
3162
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3160

def learn_rate
  @learn_rate
end

#max_tree_depthGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property maxTreeDepth



3165
3166
3167
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3165

def max_tree_depth
  @max_tree_depth
end

#min_split_lossGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property minSplitLoss



3170
3171
3172
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3170

def min_split_loss
  @min_split_loss
end

#min_tree_child_weightGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property minTreeChildWeight



3175
3176
3177
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3175

def min_tree_child_weight
  @min_tree_child_weight
end

#num_clustersGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property numClusters



3180
3181
3182
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3180

def num_clusters
  @num_clusters
end

#num_factorsGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property numFactors



3185
3186
3187
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3185

def num_factors
  @num_factors
end

#num_parallel_treeGoogle::Apis::BigqueryV2::IntHparamSearchSpace

Search space for an int hyperparameter. Corresponds to the JSON property numParallelTree



3190
3191
3192
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3190

def num_parallel_tree
  @num_parallel_tree
end

#optimizerGoogle::Apis::BigqueryV2::StringHparamSearchSpace

Search space for string and enum. Corresponds to the JSON property optimizer



3195
3196
3197
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3195

def optimizer
  @optimizer
end

#subsampleGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property subsample



3200
3201
3202
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3200

def subsample
  @subsample
end

#tree_methodGoogle::Apis::BigqueryV2::StringHparamSearchSpace

Search space for string and enum. Corresponds to the JSON property treeMethod



3205
3206
3207
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3205

def tree_method
  @tree_method
end

#wals_alphaGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

Search space for a double hyperparameter. Corresponds to the JSON property walsAlpha



3210
3211
3212
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3210

def wals_alpha
  @wals_alpha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3217

def update!(**args)
  @activation_fn = args[:activation_fn] if args.key?(:activation_fn)
  @batch_size = args[:batch_size] if args.key?(:batch_size)
  @booster_type = args[:booster_type] if args.key?(:booster_type)
  @colsample_bylevel = args[:colsample_bylevel] if args.key?(:colsample_bylevel)
  @colsample_bynode = args[:colsample_bynode] if args.key?(:colsample_bynode)
  @colsample_bytree = args[:colsample_bytree] if args.key?(:colsample_bytree)
  @dart_normalize_type = args[:dart_normalize_type] if args.key?(:dart_normalize_type)
  @dropout = args[:dropout] if args.key?(:dropout)
  @hidden_units = args[:hidden_units] if args.key?(:hidden_units)
  @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)
  @max_tree_depth = args[:max_tree_depth] if args.key?(:max_tree_depth)
  @min_split_loss = args[:min_split_loss] if args.key?(:min_split_loss)
  @min_tree_child_weight = args[:min_tree_child_weight] if args.key?(:min_tree_child_weight)
  @num_clusters = args[:num_clusters] if args.key?(:num_clusters)
  @num_factors = args[:num_factors] if args.key?(:num_factors)
  @num_parallel_tree = args[:num_parallel_tree] if args.key?(:num_parallel_tree)
  @optimizer = args[:optimizer] if args.key?(:optimizer)
  @subsample = args[:subsample] if args.key?(:subsample)
  @tree_method = args[:tree_method] if args.key?(:tree_method)
  @wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
end