You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/big_query/lib/google_api/big_query/v2/model/training_options.ex
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
45
45
* `maxTreeDepth` (*type:* `String.t`, *default:* `nil`) - Maximum depth of a tree for boosted tree models.
46
46
* `timeSeriesIdColumn` (*type:* `String.t`, *default:* `nil`) - The time series id column that was used during ARIMA model training.
47
47
* `warmStart` (*type:* `boolean()`, *default:* `nil`) - Whether to train a model from the last checkpoint.
48
+
* `isTestColumn` (*type:* `String.t`, *default:* `nil`) - Name of the column used to determine the rows corresponding to control and test. Applies to contribution analysis models.
* `dataSplitMethod` (*type:* `String.t`, *default:* `nil`) - The data split type for training and evaluation, e.g. RANDOM.
50
51
* `earlyStop` (*type:* `boolean()`, *default:* `nil`) - Whether to stop early when the loss doesn't improve significantly any more (compared to min_relative_progress). Used only for iterative training algorithms.
@@ -70,6 +71,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
70
71
* `labelClassWeights` (*type:* `map()`, *default:* `nil`) - Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
* `dimensionIdColumns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Names of the columns to slice on. Applies to contribution analysis models.
73
75
* `kmeansInitializationMethod` (*type:* `String.t`, *default:* `nil`) - The method used to initialize the centroids for kmeans algorithm.
74
76
* `minTimeSeriesLength` (*type:* `String.t`, *default:* `nil`) - The minimum number of time points in a time series that are used in modeling the trend component of the time series. If you use this option you must also set the `timeSeriesLengthFraction` option. This training option ensures that enough time points are available when you use `timeSeriesLengthFraction` in trend modeling. This is particularly important when forecasting multiple time series in a single query using `timeSeriesIdColumn`. If the total number of time points is less than the `minTimeSeriesLength` value, then the query uses all available time points.
75
77
* `kmeansInitializationColumn` (*type:* `String.t`, *default:* `nil`) - The column used to provide the initial centroids for kmeans algorithm when kmeans_initialization_method is CUSTOM.
@@ -83,12 +85,14 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
83
85
* `autoClassWeights` (*type:* `boolean()`, *default:* `nil`) - Whether to calculate class weights automatically based on the popularity of each label.
84
86
* `optimizer` (*type:* `String.t`, *default:* `nil`) - Optimizer used for training the neural nets.
85
87
* `colsampleBynode` (*type:* `float()`, *default:* `nil`) - Subsample ratio of columns for each node(split) for boosted tree models.
88
+
* `contributionMetric` (*type:* `String.t`, *default:* `nil`) - The contribution metric. Applies to contribution analysis models. Allowed formats supported are for summable and summable ratio contribution metrics. These include expressions such as "SUM(x)" or "SUM(x)/SUM(y)", where x and y are column names from the base table.
86
89
* `modelUri` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
87
90
* `sampledShapleyNumPaths` (*type:* `String.t`, *default:* `nil`) - Number of paths for the sampled Shapley explain method.
88
91
* `initialLearnRate` (*type:* `float()`, *default:* `nil`) - Specifies the initial learning rate for the line search learn rate strategy.
89
92
* `modelRegistry` (*type:* `String.t`, *default:* `nil`) - The model registry.
90
93
* `timeSeriesIdColumns` (*type:* `list(String.t)`, *default:* `nil`) - The time series id columns that were used during ARIMA model training.
91
94
* `learnRate` (*type:* `float()`, *default:* `nil`) - Learning rate in training. Used only for iterative training algorithms.
95
+
* `minAprioriSupport` (*type:* `float()`, *default:* `nil`) - The apriori support minimum. Applies to contribution analysis models.
92
96
* `dataSplitEvalFraction` (*type:* `float()`, *default:* `nil`) - The fraction of evaluation data over the whole input data. The rest of data will be used as training data. The format should be double. Accurate to two decimal places. Default value is 0.2.
93
97
* `tfVersion` (*type:* `String.t`, *default:* `nil`) - Based on the selected TF version, the corresponding docker image is used to train external models.
94
98
* `optimizationStrategy` (*type:* `String.t`, *default:* `nil`) - Optimization strategy for training linear regression models.
@@ -136,6 +140,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
136
140
:maxTreeDepth=>String.t()|nil,
137
141
:timeSeriesIdColumn=>String.t()|nil,
138
142
:warmStart=>boolean()|nil,
143
+
:isTestColumn=>String.t()|nil,
139
144
:batchSize=>String.t()|nil,
140
145
:dataSplitMethod=>String.t()|nil,
141
146
:earlyStop=>boolean()|nil,
@@ -161,6 +166,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
161
166
:labelClassWeights=>map()|nil,
162
167
:l1RegActivation=>float()|nil,
163
168
:itemColumn=>String.t()|nil,
169
+
:dimensionIdColumns=>list(String.t())|nil,
164
170
:kmeansInitializationMethod=>String.t()|nil,
165
171
:minTimeSeriesLength=>String.t()|nil,
166
172
:kmeansInitializationColumn=>String.t()|nil,
@@ -174,12 +180,14 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
174
180
:autoClassWeights=>boolean()|nil,
175
181
:optimizer=>String.t()|nil,
176
182
:colsampleBynode=>float()|nil,
183
+
:contributionMetric=>String.t()|nil,
177
184
:modelUri=>String.t()|nil,
178
185
:sampledShapleyNumPaths=>String.t()|nil,
179
186
:initialLearnRate=>float()|nil,
180
187
:modelRegistry=>String.t()|nil,
181
188
:timeSeriesIdColumns=>list(String.t())|nil,
182
189
:learnRate=>float()|nil,
190
+
:minAprioriSupport=>float()|nil,
183
191
:dataSplitEvalFraction=>float()|nil,
184
192
:tfVersion=>String.t()|nil,
185
193
:optimizationStrategy=>String.t()|nil,
@@ -224,6 +232,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
224
232
field(:maxTreeDepth)
225
233
field(:timeSeriesIdColumn)
226
234
field(:warmStart)
235
+
field(:isTestColumn)
227
236
field(:batchSize)
228
237
field(:dataSplitMethod)
229
238
field(:earlyStop)
@@ -249,6 +258,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
249
258
field(:labelClassWeights,type: :map)
250
259
field(:l1RegActivation)
251
260
field(:itemColumn)
261
+
field(:dimensionIdColumns,type: :list)
252
262
field(:kmeansInitializationMethod)
253
263
field(:minTimeSeriesLength)
254
264
field(:kmeansInitializationColumn)
@@ -262,12 +272,14 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
0 commit comments