Class: Google::Apis::BigqueryV2::HparamSearchSpaces
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::HparamSearchSpaces
- 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
-
#activation_fn ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
-
#batch_size ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#booster_type ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
-
#colsample_bylevel ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#colsample_bynode ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#colsample_bytree ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#dart_normalize_type ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
-
#dropout ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#hidden_units ⇒ Google::Apis::BigqueryV2::IntArrayHparamSearchSpace
Search space for int array.
-
#l1_reg ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#l2_reg ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#learn_rate ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#max_tree_depth ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#min_split_loss ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#min_tree_child_weight ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#num_clusters ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#num_factors ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#num_parallel_tree ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
-
#optimizer ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
-
#subsample ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
-
#tree_method ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
-
#wals_alpha ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HparamSearchSpaces
constructor
A new instance of HparamSearchSpaces.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HparamSearchSpaces
Returns a new instance of HparamSearchSpaces.
3882 3883 3884 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3882 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_fn ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
Corresponds to the JSON property activationFn
3775 3776 3777 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3775 def activation_fn @activation_fn end |
#batch_size ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property batchSize
3780 3781 3782 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3780 def batch_size @batch_size end |
#booster_type ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
Corresponds to the JSON property boosterType
3785 3786 3787 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3785 def booster_type @booster_type end |
#colsample_bylevel ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property colsampleBylevel
3790 3791 3792 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3790 def colsample_bylevel @colsample_bylevel end |
#colsample_bynode ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property colsampleBynode
3795 3796 3797 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3795 def colsample_bynode @colsample_bynode end |
#colsample_bytree ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property colsampleBytree
3800 3801 3802 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3800 def colsample_bytree @colsample_bytree end |
#dart_normalize_type ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
Corresponds to the JSON property dartNormalizeType
3805 3806 3807 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3805 def dart_normalize_type @dart_normalize_type end |
#dropout ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property dropout
3810 3811 3812 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3810 def dropout @dropout end |
#hidden_units ⇒ Google::Apis::BigqueryV2::IntArrayHparamSearchSpace
Search space for int array.
Corresponds to the JSON property hiddenUnits
3815 3816 3817 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3815 def hidden_units @hidden_units end |
#l1_reg ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property l1Reg
3820 3821 3822 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3820 def l1_reg @l1_reg end |
#l2_reg ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property l2Reg
3825 3826 3827 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3825 def l2_reg @l2_reg end |
#learn_rate ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property learnRate
3830 3831 3832 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3830 def learn_rate @learn_rate end |
#max_tree_depth ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property maxTreeDepth
3835 3836 3837 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3835 def max_tree_depth @max_tree_depth end |
#min_split_loss ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property minSplitLoss
3840 3841 3842 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3840 def min_split_loss @min_split_loss end |
#min_tree_child_weight ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property minTreeChildWeight
3845 3846 3847 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3845 def min_tree_child_weight @min_tree_child_weight end |
#num_clusters ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property numClusters
3850 3851 3852 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3850 def num_clusters @num_clusters end |
#num_factors ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property numFactors
3855 3856 3857 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3855 def num_factors @num_factors end |
#num_parallel_tree ⇒ Google::Apis::BigqueryV2::IntHparamSearchSpace
Search space for an int hyperparameter.
Corresponds to the JSON property numParallelTree
3860 3861 3862 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3860 def num_parallel_tree @num_parallel_tree end |
#optimizer ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
Corresponds to the JSON property optimizer
3865 3866 3867 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3865 def optimizer @optimizer end |
#subsample ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property subsample
3870 3871 3872 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3870 def subsample @subsample end |
#tree_method ⇒ Google::Apis::BigqueryV2::StringHparamSearchSpace
Search space for string and enum.
Corresponds to the JSON property treeMethod
3875 3876 3877 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3875 def tree_method @tree_method end |
#wals_alpha ⇒ Google::Apis::BigqueryV2::DoubleHparamSearchSpace
Search space for a double hyperparameter.
Corresponds to the JSON property walsAlpha
3880 3881 3882 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3880 def wals_alpha @wals_alpha end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3887 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 |