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.



3856
3857
3858
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3856

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



3749
3750
3751
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3749

def activation_fn
  @activation_fn
end

#batch_sizeGoogle::Apis::BigqueryV2::IntHparamSearchSpace

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



3754
3755
3756
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3754

def batch_size
  @batch_size
end

#booster_typeGoogle::Apis::BigqueryV2::StringHparamSearchSpace

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



3759
3760
3761
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3759

def booster_type
  @booster_type
end

#colsample_bylevelGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3764
3765
3766
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3764

def colsample_bylevel
  @colsample_bylevel
end

#colsample_bynodeGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3769
3770
3771
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3769

def colsample_bynode
  @colsample_bynode
end

#colsample_bytreeGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3774
3775
3776
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3774

def colsample_bytree
  @colsample_bytree
end

#dart_normalize_typeGoogle::Apis::BigqueryV2::StringHparamSearchSpace

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



3779
3780
3781
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3779

def dart_normalize_type
  @dart_normalize_type
end

#dropoutGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3784
3785
3786
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3784

def dropout
  @dropout
end

#hidden_unitsGoogle::Apis::BigqueryV2::IntArrayHparamSearchSpace

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



3789
3790
3791
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3789

def hidden_units
  @hidden_units
end

#l1_regGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3794
3795
3796
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3794

def l1_reg
  @l1_reg
end

#l2_regGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3799
3800
3801
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3799

def l2_reg
  @l2_reg
end

#learn_rateGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3804
3805
3806
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3804

def learn_rate
  @learn_rate
end

#max_tree_depthGoogle::Apis::BigqueryV2::IntHparamSearchSpace

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



3809
3810
3811
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3809

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



3814
3815
3816
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3814

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



3819
3820
3821
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3819

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



3824
3825
3826
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3824

def num_clusters
  @num_clusters
end

#num_factorsGoogle::Apis::BigqueryV2::IntHparamSearchSpace

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



3829
3830
3831
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3829

def num_factors
  @num_factors
end

#num_parallel_treeGoogle::Apis::BigqueryV2::IntHparamSearchSpace

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



3834
3835
3836
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3834

def num_parallel_tree
  @num_parallel_tree
end

#optimizerGoogle::Apis::BigqueryV2::StringHparamSearchSpace

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



3839
3840
3841
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3839

def optimizer
  @optimizer
end

#subsampleGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3844
3845
3846
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3844

def subsample
  @subsample
end

#tree_methodGoogle::Apis::BigqueryV2::StringHparamSearchSpace

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



3849
3850
3851
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3849

def tree_method
  @tree_method
end

#wals_alphaGoogle::Apis::BigqueryV2::DoubleHparamSearchSpace

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



3854
3855
3856
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3854

def wals_alpha
  @wals_alpha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3861

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