Skip to content

Commit 1b9595b

Browse files
feat: Automated regeneration of BigQuery client (googleapis#12247)
Auto-created at 2024-10-01 13:13:30 +0000 using the toys pull request generator.
1 parent 3551d3c commit 1b9595b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

clients/big_query/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_big_query, "~> 0.84"}]
14+
[{:google_api_big_query, "~> 0.85"}]
1515
end
1616
```
1717

clients/big_query/lib/google_api/big_query/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.BigQuery.V2 do
2020
API client metadata for GoogleApi.BigQuery.V2.
2121
"""
2222

23-
@discovery_revision "20240905"
23+
@discovery_revision "20240919"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/big_query/lib/google_api/big_query/v2/model/training_options.ex

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
4545
* `maxTreeDepth` (*type:* `String.t`, *default:* `nil`) - Maximum depth of a tree for boosted tree models.
4646
* `timeSeriesIdColumn` (*type:* `String.t`, *default:* `nil`) - The time series id column that was used during ARIMA model training.
4747
* `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.
4849
* `batchSize` (*type:* `String.t`, *default:* `nil`) - Batch size for dnn models.
4950
* `dataSplitMethod` (*type:* `String.t`, *default:* `nil`) - The data split type for training and evaluation, e.g. RANDOM.
5051
* `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
7071
* `labelClassWeights` (*type:* `map()`, *default:* `nil`) - Weights associated with each label class, for rebalancing the training data. Only applicable for classification models.
7172
* `l1RegActivation` (*type:* `float()`, *default:* `nil`) - L1 regularization coefficient to activations.
7273
* `itemColumn` (*type:* `String.t`, *default:* `nil`) - Item column specified for matrix factorization models.
74+
* `dimensionIdColumns` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Names of the columns to slice on. Applies to contribution analysis models.
7375
* `kmeansInitializationMethod` (*type:* `String.t`, *default:* `nil`) - The method used to initialize the centroids for kmeans algorithm.
7476
* `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.
7577
* `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
8385
* `autoClassWeights` (*type:* `boolean()`, *default:* `nil`) - Whether to calculate class weights automatically based on the popularity of each label.
8486
* `optimizer` (*type:* `String.t`, *default:* `nil`) - Optimizer used for training the neural nets.
8587
* `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.
8689
* `modelUri` (*type:* `String.t`, *default:* `nil`) - Google Cloud Storage URI from which the model was imported. Only applicable for imported models.
8790
* `sampledShapleyNumPaths` (*type:* `String.t`, *default:* `nil`) - Number of paths for the sampled Shapley explain method.
8891
* `initialLearnRate` (*type:* `float()`, *default:* `nil`) - Specifies the initial learning rate for the line search learn rate strategy.
8992
* `modelRegistry` (*type:* `String.t`, *default:* `nil`) - The model registry.
9093
* `timeSeriesIdColumns` (*type:* `list(String.t)`, *default:* `nil`) - The time series id columns that were used during ARIMA model training.
9194
* `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.
9296
* `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.
9397
* `tfVersion` (*type:* `String.t`, *default:* `nil`) - Based on the selected TF version, the corresponding docker image is used to train external models.
9498
* `optimizationStrategy` (*type:* `String.t`, *default:* `nil`) - Optimization strategy for training linear regression models.
@@ -136,6 +140,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
136140
:maxTreeDepth => String.t() | nil,
137141
:timeSeriesIdColumn => String.t() | nil,
138142
:warmStart => boolean() | nil,
143+
:isTestColumn => String.t() | nil,
139144
:batchSize => String.t() | nil,
140145
:dataSplitMethod => String.t() | nil,
141146
:earlyStop => boolean() | nil,
@@ -161,6 +166,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
161166
:labelClassWeights => map() | nil,
162167
:l1RegActivation => float() | nil,
163168
:itemColumn => String.t() | nil,
169+
:dimensionIdColumns => list(String.t()) | nil,
164170
:kmeansInitializationMethod => String.t() | nil,
165171
:minTimeSeriesLength => String.t() | nil,
166172
:kmeansInitializationColumn => String.t() | nil,
@@ -174,12 +180,14 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
174180
:autoClassWeights => boolean() | nil,
175181
:optimizer => String.t() | nil,
176182
:colsampleBynode => float() | nil,
183+
:contributionMetric => String.t() | nil,
177184
:modelUri => String.t() | nil,
178185
:sampledShapleyNumPaths => String.t() | nil,
179186
:initialLearnRate => float() | nil,
180187
:modelRegistry => String.t() | nil,
181188
:timeSeriesIdColumns => list(String.t()) | nil,
182189
:learnRate => float() | nil,
190+
:minAprioriSupport => float() | nil,
183191
:dataSplitEvalFraction => float() | nil,
184192
:tfVersion => String.t() | nil,
185193
:optimizationStrategy => String.t() | nil,
@@ -224,6 +232,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
224232
field(:maxTreeDepth)
225233
field(:timeSeriesIdColumn)
226234
field(:warmStart)
235+
field(:isTestColumn)
227236
field(:batchSize)
228237
field(:dataSplitMethod)
229238
field(:earlyStop)
@@ -249,6 +258,7 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
249258
field(:labelClassWeights, type: :map)
250259
field(:l1RegActivation)
251260
field(:itemColumn)
261+
field(:dimensionIdColumns, type: :list)
252262
field(:kmeansInitializationMethod)
253263
field(:minTimeSeriesLength)
254264
field(:kmeansInitializationColumn)
@@ -262,12 +272,14 @@ defmodule GoogleApi.BigQuery.V2.Model.TrainingOptions do
262272
field(:autoClassWeights)
263273
field(:optimizer)
264274
field(:colsampleBynode)
275+
field(:contributionMetric)
265276
field(:modelUri)
266277
field(:sampledShapleyNumPaths)
267278
field(:initialLearnRate)
268279
field(:modelRegistry)
269280
field(:timeSeriesIdColumns, type: :list)
270281
field(:learnRate)
282+
field(:minAprioriSupport)
271283
field(:dataSplitEvalFraction)
272284
field(:tfVersion)
273285
field(:optimizationStrategy)

clients/big_query/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BigQuery.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.84.2"
21+
@version "0.85.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)