google-api-client 0.28.5 → 0.28.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +46 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +892 -0
- data/generated/google/apis/bigquery_v2/representations.rb +352 -0
- data/generated/google/apis/bigquery_v2/service.rb +162 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +78 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +76 -0
- data/generated/google/apis/cloudasset_v1.rb +2 -2
- data/generated/google/apis/cloudasset_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
- data/generated/google/apis/cloudasset_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +10 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +10 -10
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +100 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +5 -4
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +31 -0
- data/generated/google/apis/container_v1/representations.rb +3 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +70 -0
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +19 -10
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +45 -0
- data/generated/google/apis/dlp_v2/representations.rb +20 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +71 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
- data/generated/google/apis/factchecktools_v1alpha1.rb +3 -3
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +0 -292
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +30 -10
- data/generated/google/apis/redis_v1/representations.rb +13 -0
- data/generated/google/apis/redis_v1/service.rb +36 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +18 -11
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +122 -5
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +26 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +83 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +83 -5
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +83 -5
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +123 -6
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +163 -7
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1/service.rb +2 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +62 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +32 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +0 -14
- data/generated/google/apis/testing_v1/representations.rb +0 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7ce01899f0a08bb131b8cf7802ac46847a7761a6
|
4
|
+
data.tar.gz: 5a3beefba24db71166abaac72bccc039ba4b73a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52174744233d5673818867c8c5437988cbe9fe688ea14b9b9c54a992c21e920524e359c5ce58b95cba4fc04e62ca8dda11f2b36e289d6d2f893ce332d48a8181
|
7
|
+
data.tar.gz: 80f30b5dbe158bbd64df76e86a348dbe215224b6bac548f9f78a80819471e9a50e49bfe567bbbaab4d2ca907ad44ef2cb4a072d5e8652d5d379b5289cd457f1b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1
|
+
# 0.28.6
|
2
|
+
* Backwards compatible changes:
|
3
|
+
* Updated `adexchangebuyer2_v2beta1`
|
4
|
+
* Updated `androidenterprise_v1`
|
5
|
+
* Updated `bigquery_v2`
|
6
|
+
* Updated `bigquerydatatransfer_v1`
|
7
|
+
* Updated `cloudasset_v1`
|
8
|
+
* Updated `cloudasset_v1beta1`
|
9
|
+
* Updated `cloudbuild_v1`
|
10
|
+
* Updated `cloudfunctions_v1`
|
11
|
+
* Updated `cloudfunctions_v1beta2`
|
12
|
+
* Updated `cloudscheduler_v1beta1`
|
13
|
+
* Updated `cloudshell_v1alpha1`
|
14
|
+
* Updated `cloudtasks_v2`
|
15
|
+
* Updated `cloudtasks_v2beta2`
|
16
|
+
* Updated `cloudtasks_v2beta3`
|
17
|
+
* Updated `composer_v1beta1`
|
18
|
+
* Updated `container_v1`
|
19
|
+
* Updated `container_v1beta1`
|
20
|
+
* Updated `dataflow_v1b3`
|
21
|
+
* Updated `dialogflow_v2`
|
22
|
+
* Updated `dlp_v2`
|
23
|
+
* Updated `dns_v1beta2`
|
24
|
+
* Updated `factchecktools_v1alpha1`
|
25
|
+
* Updated `iap_v1`
|
26
|
+
* Updated `iap_v1beta1`
|
27
|
+
* Updated `ml_v1`
|
28
|
+
* Updated `oauth2_v1`
|
29
|
+
* Updated `oauth2_v2`
|
30
|
+
* Updated `plus_domains_v1`
|
31
|
+
* Updated `plus_v1`
|
32
|
+
* Updated `redis_v1`
|
33
|
+
* Updated `redis_v1beta1`
|
34
|
+
* Updated `servicebroker_v1`
|
35
|
+
* Updated `servicebroker_v1alpha1`
|
36
|
+
* Updated `servicebroker_v1beta1`
|
37
|
+
* Updated `serviceconsumermanagement_v1`
|
38
|
+
* Updated `servicenetworking_v1`
|
39
|
+
* Updated `servicenetworking_v1beta`
|
40
|
+
* Updated `serviceusage_v1`
|
41
|
+
* Updated `serviceusage_v1beta1`
|
42
|
+
* Updated `speech_v1`
|
43
|
+
* Updated `speech_v1p1beta1`
|
44
|
+
* Updated `sqladmin_v1beta4`
|
45
|
+
* Updated `testing_v1`
|
46
|
+
|
1
47
|
# 0.28.5
|
2
48
|
* Backwards compatible changes:
|
3
49
|
* Added `accesscontextmanager_v1`
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
|
28
28
|
module Adexchangebuyer2V2beta1
|
29
29
|
VERSION = 'V2beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20190328'
|
31
31
|
|
32
32
|
# Manage your Ad Exchange buyer account configuration
|
33
33
|
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
26
26
|
module AndroidenterpriseV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190320'
|
29
29
|
|
30
30
|
# Manage corporate Android devices
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
@@ -2977,11 +2977,23 @@ module Google
|
|
2977
2977
|
end
|
2978
2978
|
end
|
2979
2979
|
|
2980
|
-
#
|
2980
|
+
# A WebApps resource represents a web app created for an enterprise. Web apps
|
2981
|
+
# are published to managed Google Play and can be distributed like other Android
|
2982
|
+
# apps. On a user's device, a web app opens its specified URL.
|
2981
2983
|
class WebApp
|
2982
2984
|
include Google::Apis::Core::Hashable
|
2983
2985
|
|
2984
2986
|
# The display mode of the web app.
|
2987
|
+
# Possible values include:
|
2988
|
+
# - "minimalUi", the device's status bar, navigation bar, the app's URL, and a
|
2989
|
+
# refresh button are visible when the app is open. For HTTP URLs, you can only
|
2990
|
+
# select this option.
|
2991
|
+
# - "standalone", the device's status bar and navigation bar are visible when
|
2992
|
+
# the app is open.
|
2993
|
+
# - "fullScreen", the app opens in full screen mode, hiding the device's status
|
2994
|
+
# and navigation bars. All browser UI elements, page URL, system status bar and
|
2995
|
+
# back button are not visible, and the web app takes up the entirety of the
|
2996
|
+
# available display area.
|
2985
2997
|
# Corresponds to the JSON property `displayMode`
|
2986
2998
|
# @return [String]
|
2987
2999
|
attr_accessor :display_mode
|
@@ -3004,8 +3016,8 @@ module Google
|
|
3004
3016
|
# @return [String]
|
3005
3017
|
attr_accessor :start_url
|
3006
3018
|
|
3007
|
-
# The title of the web
|
3008
|
-
#
|
3019
|
+
# The title of the web app as displayed to the user (e.g., amongst a list of
|
3020
|
+
# other applications, or as a label for an icon).
|
3009
3021
|
# Corresponds to the JSON property `title`
|
3010
3022
|
# @return [String]
|
3011
3023
|
attr_accessor :title
|
@@ -3018,7 +3030,9 @@ module Google
|
|
3018
3030
|
# @return [Fixnum]
|
3019
3031
|
attr_accessor :version_code
|
3020
3032
|
|
3021
|
-
# The ID of the application.
|
3033
|
+
# The ID of the application. A string of the form "app:<package name>" where the
|
3034
|
+
# package name always starts with the prefix "com.google.enterprise.webapp."
|
3035
|
+
# followed by a random id.
|
3022
3036
|
# Corresponds to the JSON property `webAppId`
|
3023
3037
|
# @return [String]
|
3024
3038
|
attr_accessor :web_app_id
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/bigquery/
|
26
26
|
module BigqueryV2
|
27
27
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190314'
|
29
29
|
|
30
30
|
# View and manage your data in Google BigQuery
|
31
31
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
@@ -22,6 +22,74 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module BigqueryV2
|
24
24
|
|
25
|
+
# Aggregate metrics for classification models. For multi-class models,
|
26
|
+
# the metrics are either macro-averaged: metrics are calculated for each
|
27
|
+
# label and then an unweighted average is taken of those values or
|
28
|
+
# micro-averaged: the metric is calculated globally by counting the total
|
29
|
+
# number of correctly predicted rows.
|
30
|
+
class AggregateClassificationMetrics
|
31
|
+
include Google::Apis::Core::Hashable
|
32
|
+
|
33
|
+
# Accuracy is the fraction of predictions given the correct label. For
|
34
|
+
# multiclass this is a micro-averaged metric.
|
35
|
+
# Corresponds to the JSON property `accuracy`
|
36
|
+
# @return [Float]
|
37
|
+
attr_accessor :accuracy
|
38
|
+
|
39
|
+
# The F1 score is an average of recall and precision. For multiclass
|
40
|
+
# this is a macro-averaged metric.
|
41
|
+
# Corresponds to the JSON property `f1Score`
|
42
|
+
# @return [Float]
|
43
|
+
attr_accessor :f1_score
|
44
|
+
|
45
|
+
# Logarithmic Loss. For multiclass this is a macro-averaged metric.
|
46
|
+
# Corresponds to the JSON property `logLoss`
|
47
|
+
# @return [Float]
|
48
|
+
attr_accessor :log_loss
|
49
|
+
|
50
|
+
# Precision is the fraction of actual positive predictions that had
|
51
|
+
# positive actual labels. For multiclass this is a macro-averaged
|
52
|
+
# metric treating each class as a binary classifier.
|
53
|
+
# Corresponds to the JSON property `precision`
|
54
|
+
# @return [Float]
|
55
|
+
attr_accessor :precision
|
56
|
+
|
57
|
+
# Recall is the fraction of actual positive labels that were given a
|
58
|
+
# positive prediction. For multiclass this is a macro-averaged metric.
|
59
|
+
# Corresponds to the JSON property `recall`
|
60
|
+
# @return [Float]
|
61
|
+
attr_accessor :recall
|
62
|
+
|
63
|
+
# Area Under a ROC Curve. For multiclass this is a macro-averaged
|
64
|
+
# metric.
|
65
|
+
# Corresponds to the JSON property `rocAuc`
|
66
|
+
# @return [Float]
|
67
|
+
attr_accessor :roc_auc
|
68
|
+
|
69
|
+
# Threshold at which the metrics are computed. For binary
|
70
|
+
# classification models this is the positive class threshold.
|
71
|
+
# For multi-class classfication models this is the confidence
|
72
|
+
# threshold.
|
73
|
+
# Corresponds to the JSON property `threshold`
|
74
|
+
# @return [Float]
|
75
|
+
attr_accessor :threshold
|
76
|
+
|
77
|
+
def initialize(**args)
|
78
|
+
update!(**args)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Update properties of this object
|
82
|
+
def update!(**args)
|
83
|
+
@accuracy = args[:accuracy] if args.key?(:accuracy)
|
84
|
+
@f1_score = args[:f1_score] if args.key?(:f1_score)
|
85
|
+
@log_loss = args[:log_loss] if args.key?(:log_loss)
|
86
|
+
@precision = args[:precision] if args.key?(:precision)
|
87
|
+
@recall = args[:recall] if args.key?(:recall)
|
88
|
+
@roc_auc = args[:roc_auc] if args.key?(:roc_auc)
|
89
|
+
@threshold = args[:threshold] if args.key?(:threshold)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
25
93
|
#
|
26
94
|
class BigQueryModelTraining
|
27
95
|
include Google::Apis::Core::Hashable
|
@@ -223,6 +291,90 @@ module Google
|
|
223
291
|
end
|
224
292
|
end
|
225
293
|
|
294
|
+
# Evaluation metrics for binary classification models.
|
295
|
+
class BinaryClassificationMetrics
|
296
|
+
include Google::Apis::Core::Hashable
|
297
|
+
|
298
|
+
# Aggregate metrics for classification models. For multi-class models,
|
299
|
+
# the metrics are either macro-averaged: metrics are calculated for each
|
300
|
+
# label and then an unweighted average is taken of those values or
|
301
|
+
# micro-averaged: the metric is calculated globally by counting the total
|
302
|
+
# number of correctly predicted rows.
|
303
|
+
# Corresponds to the JSON property `aggregateClassificationMetrics`
|
304
|
+
# @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
|
305
|
+
attr_accessor :aggregate_classification_metrics
|
306
|
+
|
307
|
+
# Binary confusion matrix at multiple thresholds.
|
308
|
+
# Corresponds to the JSON property `binaryConfusionMatrixList`
|
309
|
+
# @return [Array<Google::Apis::BigqueryV2::BinaryConfusionMatrix>]
|
310
|
+
attr_accessor :binary_confusion_matrix_list
|
311
|
+
|
312
|
+
def initialize(**args)
|
313
|
+
update!(**args)
|
314
|
+
end
|
315
|
+
|
316
|
+
# Update properties of this object
|
317
|
+
def update!(**args)
|
318
|
+
@aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
|
319
|
+
@binary_confusion_matrix_list = args[:binary_confusion_matrix_list] if args.key?(:binary_confusion_matrix_list)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# Confusion matrix for binary classification models.
|
324
|
+
class BinaryConfusionMatrix
|
325
|
+
include Google::Apis::Core::Hashable
|
326
|
+
|
327
|
+
# Number of false samples predicted as false.
|
328
|
+
# Corresponds to the JSON property `falseNegatives`
|
329
|
+
# @return [Fixnum]
|
330
|
+
attr_accessor :false_negatives
|
331
|
+
|
332
|
+
# Number of false samples predicted as true.
|
333
|
+
# Corresponds to the JSON property `falsePositives`
|
334
|
+
# @return [Fixnum]
|
335
|
+
attr_accessor :false_positives
|
336
|
+
|
337
|
+
# Threshold value used when computing each of the following metric.
|
338
|
+
# Corresponds to the JSON property `positiveClassThreshold`
|
339
|
+
# @return [Float]
|
340
|
+
attr_accessor :positive_class_threshold
|
341
|
+
|
342
|
+
# Aggregate precision.
|
343
|
+
# Corresponds to the JSON property `precision`
|
344
|
+
# @return [Float]
|
345
|
+
attr_accessor :precision
|
346
|
+
|
347
|
+
# Aggregate recall.
|
348
|
+
# Corresponds to the JSON property `recall`
|
349
|
+
# @return [Float]
|
350
|
+
attr_accessor :recall
|
351
|
+
|
352
|
+
# Number of true samples predicted as false.
|
353
|
+
# Corresponds to the JSON property `trueNegatives`
|
354
|
+
# @return [Fixnum]
|
355
|
+
attr_accessor :true_negatives
|
356
|
+
|
357
|
+
# Number of true samples predicted as true.
|
358
|
+
# Corresponds to the JSON property `truePositives`
|
359
|
+
# @return [Fixnum]
|
360
|
+
attr_accessor :true_positives
|
361
|
+
|
362
|
+
def initialize(**args)
|
363
|
+
update!(**args)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Update properties of this object
|
367
|
+
def update!(**args)
|
368
|
+
@false_negatives = args[:false_negatives] if args.key?(:false_negatives)
|
369
|
+
@false_positives = args[:false_positives] if args.key?(:false_positives)
|
370
|
+
@positive_class_threshold = args[:positive_class_threshold] if args.key?(:positive_class_threshold)
|
371
|
+
@precision = args[:precision] if args.key?(:precision)
|
372
|
+
@recall = args[:recall] if args.key?(:recall)
|
373
|
+
@true_negatives = args[:true_negatives] if args.key?(:true_negatives)
|
374
|
+
@true_positives = args[:true_positives] if args.key?(:true_positives)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
226
378
|
#
|
227
379
|
class BqmlIterationResult
|
228
380
|
include Google::Apis::Core::Hashable
|
@@ -389,6 +541,38 @@ module Google
|
|
389
541
|
end
|
390
542
|
end
|
391
543
|
|
544
|
+
# Information about a single cluster for clustering model.
|
545
|
+
class ClusterInfo
|
546
|
+
include Google::Apis::Core::Hashable
|
547
|
+
|
548
|
+
# Centroid id.
|
549
|
+
# Corresponds to the JSON property `centroidId`
|
550
|
+
# @return [Fixnum]
|
551
|
+
attr_accessor :centroid_id
|
552
|
+
|
553
|
+
# Cluster radius, the average distance from centroid
|
554
|
+
# to each point assigned to the cluster.
|
555
|
+
# Corresponds to the JSON property `clusterRadius`
|
556
|
+
# @return [Float]
|
557
|
+
attr_accessor :cluster_radius
|
558
|
+
|
559
|
+
# Cluster size, the total number of points assigned to the cluster.
|
560
|
+
# Corresponds to the JSON property `clusterSize`
|
561
|
+
# @return [Fixnum]
|
562
|
+
attr_accessor :cluster_size
|
563
|
+
|
564
|
+
def initialize(**args)
|
565
|
+
update!(**args)
|
566
|
+
end
|
567
|
+
|
568
|
+
# Update properties of this object
|
569
|
+
def update!(**args)
|
570
|
+
@centroid_id = args[:centroid_id] if args.key?(:centroid_id)
|
571
|
+
@cluster_radius = args[:cluster_radius] if args.key?(:cluster_radius)
|
572
|
+
@cluster_size = args[:cluster_size] if args.key?(:cluster_size)
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
392
576
|
#
|
393
577
|
class Clustering
|
394
578
|
include Google::Apis::Core::Hashable
|
@@ -411,6 +595,57 @@ module Google
|
|
411
595
|
end
|
412
596
|
end
|
413
597
|
|
598
|
+
# Evaluation metrics for clustering models.
|
599
|
+
class ClusteringMetrics
|
600
|
+
include Google::Apis::Core::Hashable
|
601
|
+
|
602
|
+
# Davies-Bouldin index.
|
603
|
+
# Corresponds to the JSON property `daviesBouldinIndex`
|
604
|
+
# @return [Float]
|
605
|
+
attr_accessor :davies_bouldin_index
|
606
|
+
|
607
|
+
# Mean of squared distances between each sample to its cluster centroid.
|
608
|
+
# Corresponds to the JSON property `meanSquaredDistance`
|
609
|
+
# @return [Float]
|
610
|
+
attr_accessor :mean_squared_distance
|
611
|
+
|
612
|
+
def initialize(**args)
|
613
|
+
update!(**args)
|
614
|
+
end
|
615
|
+
|
616
|
+
# Update properties of this object
|
617
|
+
def update!(**args)
|
618
|
+
@davies_bouldin_index = args[:davies_bouldin_index] if args.key?(:davies_bouldin_index)
|
619
|
+
@mean_squared_distance = args[:mean_squared_distance] if args.key?(:mean_squared_distance)
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
# Confusion matrix for multi-class classification models.
|
624
|
+
class ConfusionMatrix
|
625
|
+
include Google::Apis::Core::Hashable
|
626
|
+
|
627
|
+
# Confidence threshold used when computing the entries of the
|
628
|
+
# confusion matrix.
|
629
|
+
# Corresponds to the JSON property `confidenceThreshold`
|
630
|
+
# @return [Float]
|
631
|
+
attr_accessor :confidence_threshold
|
632
|
+
|
633
|
+
# One row per actual label.
|
634
|
+
# Corresponds to the JSON property `rows`
|
635
|
+
# @return [Array<Google::Apis::BigqueryV2::Row>]
|
636
|
+
attr_accessor :rows
|
637
|
+
|
638
|
+
def initialize(**args)
|
639
|
+
update!(**args)
|
640
|
+
end
|
641
|
+
|
642
|
+
# Update properties of this object
|
643
|
+
def update!(**args)
|
644
|
+
@confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
|
645
|
+
@rows = args[:rows] if args.key?(:rows)
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
414
649
|
#
|
415
650
|
class CsvOptions
|
416
651
|
include Google::Apis::Core::Hashable
|
@@ -867,6 +1102,33 @@ module Google
|
|
867
1102
|
end
|
868
1103
|
end
|
869
1104
|
|
1105
|
+
# A single entry in the confusion matrix.
|
1106
|
+
class Entry
|
1107
|
+
include Google::Apis::Core::Hashable
|
1108
|
+
|
1109
|
+
# Number of items being predicted as this label.
|
1110
|
+
# Corresponds to the JSON property `itemCount`
|
1111
|
+
# @return [Fixnum]
|
1112
|
+
attr_accessor :item_count
|
1113
|
+
|
1114
|
+
# The predicted label. For confidence_threshold > 0, we will
|
1115
|
+
# also add an entry indicating the number of items under the
|
1116
|
+
# confidence threshold.
|
1117
|
+
# Corresponds to the JSON property `predictedLabel`
|
1118
|
+
# @return [String]
|
1119
|
+
attr_accessor :predicted_label
|
1120
|
+
|
1121
|
+
def initialize(**args)
|
1122
|
+
update!(**args)
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# Update properties of this object
|
1126
|
+
def update!(**args)
|
1127
|
+
@item_count = args[:item_count] if args.key?(:item_count)
|
1128
|
+
@predicted_label = args[:predicted_label] if args.key?(:predicted_label)
|
1129
|
+
end
|
1130
|
+
end
|
1131
|
+
|
870
1132
|
#
|
871
1133
|
class ErrorProto
|
872
1134
|
include Google::Apis::Core::Hashable
|
@@ -905,6 +1167,45 @@ module Google
|
|
905
1167
|
end
|
906
1168
|
end
|
907
1169
|
|
1170
|
+
# Evaluation metrics of a model. These are either computed on all
|
1171
|
+
# training data or just the eval data based on whether eval data was used
|
1172
|
+
# during training.
|
1173
|
+
class EvaluationMetrics
|
1174
|
+
include Google::Apis::Core::Hashable
|
1175
|
+
|
1176
|
+
# Evaluation metrics for binary classification models.
|
1177
|
+
# Corresponds to the JSON property `binaryClassificationMetrics`
|
1178
|
+
# @return [Google::Apis::BigqueryV2::BinaryClassificationMetrics]
|
1179
|
+
attr_accessor :binary_classification_metrics
|
1180
|
+
|
1181
|
+
# Evaluation metrics for clustering models.
|
1182
|
+
# Corresponds to the JSON property `clusteringMetrics`
|
1183
|
+
# @return [Google::Apis::BigqueryV2::ClusteringMetrics]
|
1184
|
+
attr_accessor :clustering_metrics
|
1185
|
+
|
1186
|
+
# Evaluation metrics for multi-class classification models.
|
1187
|
+
# Corresponds to the JSON property `multiClassClassificationMetrics`
|
1188
|
+
# @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
|
1189
|
+
attr_accessor :multi_class_classification_metrics
|
1190
|
+
|
1191
|
+
# Evaluation metrics for regression models.
|
1192
|
+
# Corresponds to the JSON property `regressionMetrics`
|
1193
|
+
# @return [Google::Apis::BigqueryV2::RegressionMetrics]
|
1194
|
+
attr_accessor :regression_metrics
|
1195
|
+
|
1196
|
+
def initialize(**args)
|
1197
|
+
update!(**args)
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# Update properties of this object
|
1201
|
+
def update!(**args)
|
1202
|
+
@binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
|
1203
|
+
@clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
|
1204
|
+
@multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
|
1205
|
+
@regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
|
1206
|
+
end
|
1207
|
+
end
|
1208
|
+
|
908
1209
|
#
|
909
1210
|
class ExplainQueryStage
|
910
1211
|
include Google::Apis::Core::Hashable
|
@@ -1394,6 +1695,55 @@ module Google
|
|
1394
1695
|
end
|
1395
1696
|
end
|
1396
1697
|
|
1698
|
+
# Information about a single iteration of the training run.
|
1699
|
+
class IterationResult
|
1700
|
+
include Google::Apis::Core::Hashable
|
1701
|
+
|
1702
|
+
# [Beta] Information about top clusters for clustering models.
|
1703
|
+
# Corresponds to the JSON property `clusterInfos`
|
1704
|
+
# @return [Array<Google::Apis::BigqueryV2::ClusterInfo>]
|
1705
|
+
attr_accessor :cluster_infos
|
1706
|
+
|
1707
|
+
# Time taken to run the iteration in milliseconds.
|
1708
|
+
# Corresponds to the JSON property `durationMs`
|
1709
|
+
# @return [Fixnum]
|
1710
|
+
attr_accessor :duration_ms
|
1711
|
+
|
1712
|
+
# Loss computed on the eval data at the end of iteration.
|
1713
|
+
# Corresponds to the JSON property `evalLoss`
|
1714
|
+
# @return [Float]
|
1715
|
+
attr_accessor :eval_loss
|
1716
|
+
|
1717
|
+
# Index of the iteration, 0 based.
|
1718
|
+
# Corresponds to the JSON property `index`
|
1719
|
+
# @return [Fixnum]
|
1720
|
+
attr_accessor :index
|
1721
|
+
|
1722
|
+
# Learn rate used for this iteration.
|
1723
|
+
# Corresponds to the JSON property `learnRate`
|
1724
|
+
# @return [Float]
|
1725
|
+
attr_accessor :learn_rate
|
1726
|
+
|
1727
|
+
# Loss computed on the training data at the end of iteration.
|
1728
|
+
# Corresponds to the JSON property `trainingLoss`
|
1729
|
+
# @return [Float]
|
1730
|
+
attr_accessor :training_loss
|
1731
|
+
|
1732
|
+
def initialize(**args)
|
1733
|
+
update!(**args)
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
# Update properties of this object
|
1737
|
+
def update!(**args)
|
1738
|
+
@cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos)
|
1739
|
+
@duration_ms = args[:duration_ms] if args.key?(:duration_ms)
|
1740
|
+
@eval_loss = args[:eval_loss] if args.key?(:eval_loss)
|
1741
|
+
@index = args[:index] if args.key?(:index)
|
1742
|
+
@learn_rate = args[:learn_rate] if args.key?(:learn_rate)
|
1743
|
+
@training_loss = args[:training_loss] if args.key?(:training_loss)
|
1744
|
+
end
|
1745
|
+
end
|
1746
|
+
|
1397
1747
|
#
|
1398
1748
|
class Job
|
1399
1749
|
include Google::Apis::Core::Hashable
|
@@ -2720,6 +3070,33 @@ module Google
|
|
2720
3070
|
end
|
2721
3071
|
end
|
2722
3072
|
|
3073
|
+
#
|
3074
|
+
class ListModelsResponse
|
3075
|
+
include Google::Apis::Core::Hashable
|
3076
|
+
|
3077
|
+
# Models in the requested dataset. Only the following fields are populated:
|
3078
|
+
# model_reference, model_type, creation_time, last_modified_time and
|
3079
|
+
# labels.
|
3080
|
+
# Corresponds to the JSON property `models`
|
3081
|
+
# @return [Array<Google::Apis::BigqueryV2::Model>]
|
3082
|
+
attr_accessor :models
|
3083
|
+
|
3084
|
+
# A token to request the next page of results.
|
3085
|
+
# Corresponds to the JSON property `nextPageToken`
|
3086
|
+
# @return [String]
|
3087
|
+
attr_accessor :next_page_token
|
3088
|
+
|
3089
|
+
def initialize(**args)
|
3090
|
+
update!(**args)
|
3091
|
+
end
|
3092
|
+
|
3093
|
+
# Update properties of this object
|
3094
|
+
def update!(**args)
|
3095
|
+
@models = args[:models] if args.key?(:models)
|
3096
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3097
|
+
end
|
3098
|
+
end
|
3099
|
+
|
2723
3100
|
#
|
2724
3101
|
class MaterializedViewDefinition
|
2725
3102
|
include Google::Apis::Core::Hashable
|
@@ -2746,6 +3123,115 @@ module Google
|
|
2746
3123
|
end
|
2747
3124
|
end
|
2748
3125
|
|
3126
|
+
#
|
3127
|
+
class Model
|
3128
|
+
include Google::Apis::Core::Hashable
|
3129
|
+
|
3130
|
+
# Output only. The time when this model was created, in millisecs since the
|
3131
|
+
# epoch.
|
3132
|
+
# Corresponds to the JSON property `creationTime`
|
3133
|
+
# @return [Fixnum]
|
3134
|
+
attr_accessor :creation_time
|
3135
|
+
|
3136
|
+
# [Optional] A user-friendly description of this model.
|
3137
|
+
# @mutable bigquery.models.patch
|
3138
|
+
# Corresponds to the JSON property `description`
|
3139
|
+
# @return [String]
|
3140
|
+
attr_accessor :description
|
3141
|
+
|
3142
|
+
# Output only. A hash of this resource.
|
3143
|
+
# Corresponds to the JSON property `etag`
|
3144
|
+
# @return [String]
|
3145
|
+
attr_accessor :etag
|
3146
|
+
|
3147
|
+
# [Optional] The time when this model expires, in milliseconds since the
|
3148
|
+
# epoch. If not present, the model will persist indefinitely. Expired models
|
3149
|
+
# will be deleted and their storage reclaimed. The defaultTableExpirationMs
|
3150
|
+
# property of the encapsulating dataset can be used to set a default
|
3151
|
+
# expirationTime on newly created models.
|
3152
|
+
# @mutable bigquery.models.patch
|
3153
|
+
# Corresponds to the JSON property `expirationTime`
|
3154
|
+
# @return [Fixnum]
|
3155
|
+
attr_accessor :expiration_time
|
3156
|
+
|
3157
|
+
# Output only. Input feature columns that were used to train this model.
|
3158
|
+
# Corresponds to the JSON property `featureColumns`
|
3159
|
+
# @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
|
3160
|
+
attr_accessor :feature_columns
|
3161
|
+
|
3162
|
+
# [Optional] A descriptive name for this model.
|
3163
|
+
# @mutable bigquery.models.patch
|
3164
|
+
# Corresponds to the JSON property `friendlyName`
|
3165
|
+
# @return [String]
|
3166
|
+
attr_accessor :friendly_name
|
3167
|
+
|
3168
|
+
# Output only. Label columns that were used to train this model.
|
3169
|
+
# The output of the model will have a “predicted_” prefix to these columns.
|
3170
|
+
# Corresponds to the JSON property `labelColumns`
|
3171
|
+
# @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
|
3172
|
+
attr_accessor :label_columns
|
3173
|
+
|
3174
|
+
# [Optional] The labels associated with this model. You can use these to
|
3175
|
+
# organize and group your models. Label keys and values can be no longer
|
3176
|
+
# than 63 characters, can only contain lowercase letters, numeric
|
3177
|
+
# characters, underscores and dashes. International characters are allowed.
|
3178
|
+
# Label values are optional. Label keys must start with a letter and each
|
3179
|
+
# label in the list must have a different key.
|
3180
|
+
# @mutable bigquery.models.patch
|
3181
|
+
# Corresponds to the JSON property `labels`
|
3182
|
+
# @return [Hash<String,String>]
|
3183
|
+
attr_accessor :labels
|
3184
|
+
|
3185
|
+
# Output only. The time when this model was last modified, in millisecs
|
3186
|
+
# since the epoch.
|
3187
|
+
# Corresponds to the JSON property `lastModifiedTime`
|
3188
|
+
# @return [Fixnum]
|
3189
|
+
attr_accessor :last_modified_time
|
3190
|
+
|
3191
|
+
# Output only. The geographic location where the model resides. This value
|
3192
|
+
# is inherited from the dataset.
|
3193
|
+
# Corresponds to the JSON property `location`
|
3194
|
+
# @return [String]
|
3195
|
+
attr_accessor :location
|
3196
|
+
|
3197
|
+
# Id path of a model.
|
3198
|
+
# Corresponds to the JSON property `modelReference`
|
3199
|
+
# @return [Google::Apis::BigqueryV2::ModelReference]
|
3200
|
+
attr_accessor :model_reference
|
3201
|
+
|
3202
|
+
# Output only. Type of the model resource.
|
3203
|
+
# Corresponds to the JSON property `modelType`
|
3204
|
+
# @return [String]
|
3205
|
+
attr_accessor :model_type
|
3206
|
+
|
3207
|
+
# Output only. Information for all training runs in increasing order of
|
3208
|
+
# start_time.
|
3209
|
+
# Corresponds to the JSON property `trainingRuns`
|
3210
|
+
# @return [Array<Google::Apis::BigqueryV2::TrainingRun>]
|
3211
|
+
attr_accessor :training_runs
|
3212
|
+
|
3213
|
+
def initialize(**args)
|
3214
|
+
update!(**args)
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
# Update properties of this object
|
3218
|
+
def update!(**args)
|
3219
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
3220
|
+
@description = args[:description] if args.key?(:description)
|
3221
|
+
@etag = args[:etag] if args.key?(:etag)
|
3222
|
+
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
3223
|
+
@feature_columns = args[:feature_columns] if args.key?(:feature_columns)
|
3224
|
+
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
|
3225
|
+
@label_columns = args[:label_columns] if args.key?(:label_columns)
|
3226
|
+
@labels = args[:labels] if args.key?(:labels)
|
3227
|
+
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
3228
|
+
@location = args[:location] if args.key?(:location)
|
3229
|
+
@model_reference = args[:model_reference] if args.key?(:model_reference)
|
3230
|
+
@model_type = args[:model_type] if args.key?(:model_type)
|
3231
|
+
@training_runs = args[:training_runs] if args.key?(:training_runs)
|
3232
|
+
end
|
3233
|
+
end
|
3234
|
+
|
2749
3235
|
#
|
2750
3236
|
class ModelDefinition
|
2751
3237
|
include Google::Apis::Core::Hashable
|
@@ -2809,6 +3295,68 @@ module Google
|
|
2809
3295
|
end
|
2810
3296
|
end
|
2811
3297
|
|
3298
|
+
# Id path of a model.
|
3299
|
+
class ModelReference
|
3300
|
+
include Google::Apis::Core::Hashable
|
3301
|
+
|
3302
|
+
# [Required] The ID of the dataset containing this model.
|
3303
|
+
# Corresponds to the JSON property `datasetId`
|
3304
|
+
# @return [String]
|
3305
|
+
attr_accessor :dataset_id
|
3306
|
+
|
3307
|
+
# [Required] The ID of the model. The ID must contain only
|
3308
|
+
# letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
|
3309
|
+
# length is 1,024 characters.
|
3310
|
+
# Corresponds to the JSON property `modelId`
|
3311
|
+
# @return [String]
|
3312
|
+
attr_accessor :model_id
|
3313
|
+
|
3314
|
+
# [Required] The ID of the project containing this model.
|
3315
|
+
# Corresponds to the JSON property `projectId`
|
3316
|
+
# @return [String]
|
3317
|
+
attr_accessor :project_id
|
3318
|
+
|
3319
|
+
def initialize(**args)
|
3320
|
+
update!(**args)
|
3321
|
+
end
|
3322
|
+
|
3323
|
+
# Update properties of this object
|
3324
|
+
def update!(**args)
|
3325
|
+
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
|
3326
|
+
@model_id = args[:model_id] if args.key?(:model_id)
|
3327
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
3328
|
+
end
|
3329
|
+
end
|
3330
|
+
|
3331
|
+
# Evaluation metrics for multi-class classification models.
|
3332
|
+
class MultiClassClassificationMetrics
|
3333
|
+
include Google::Apis::Core::Hashable
|
3334
|
+
|
3335
|
+
# Aggregate metrics for classification models. For multi-class models,
|
3336
|
+
# the metrics are either macro-averaged: metrics are calculated for each
|
3337
|
+
# label and then an unweighted average is taken of those values or
|
3338
|
+
# micro-averaged: the metric is calculated globally by counting the total
|
3339
|
+
# number of correctly predicted rows.
|
3340
|
+
# Corresponds to the JSON property `aggregateClassificationMetrics`
|
3341
|
+
# @return [Google::Apis::BigqueryV2::AggregateClassificationMetrics]
|
3342
|
+
attr_accessor :aggregate_classification_metrics
|
3343
|
+
|
3344
|
+
# Confusion matrix at different thresholds.
|
3345
|
+
# Corresponds to the JSON property `confusionMatrixList`
|
3346
|
+
# @return [Array<Google::Apis::BigqueryV2::ConfusionMatrix>]
|
3347
|
+
attr_accessor :confusion_matrix_list
|
3348
|
+
|
3349
|
+
def initialize(**args)
|
3350
|
+
update!(**args)
|
3351
|
+
end
|
3352
|
+
|
3353
|
+
# Update properties of this object
|
3354
|
+
def update!(**args)
|
3355
|
+
@aggregate_classification_metrics = args[:aggregate_classification_metrics] if args.key?(:aggregate_classification_metrics)
|
3356
|
+
@confusion_matrix_list = args[:confusion_matrix_list] if args.key?(:confusion_matrix_list)
|
3357
|
+
end
|
3358
|
+
end
|
3359
|
+
|
2812
3360
|
#
|
2813
3361
|
class ProjectList
|
2814
3362
|
include Google::Apis::Core::Hashable
|
@@ -3351,6 +3899,49 @@ module Google
|
|
3351
3899
|
end
|
3352
3900
|
end
|
3353
3901
|
|
3902
|
+
# Evaluation metrics for regression models.
|
3903
|
+
class RegressionMetrics
|
3904
|
+
include Google::Apis::Core::Hashable
|
3905
|
+
|
3906
|
+
# Mean absolute error.
|
3907
|
+
# Corresponds to the JSON property `meanAbsoluteError`
|
3908
|
+
# @return [Float]
|
3909
|
+
attr_accessor :mean_absolute_error
|
3910
|
+
|
3911
|
+
# Mean squared error.
|
3912
|
+
# Corresponds to the JSON property `meanSquaredError`
|
3913
|
+
# @return [Float]
|
3914
|
+
attr_accessor :mean_squared_error
|
3915
|
+
|
3916
|
+
# Mean squared log error.
|
3917
|
+
# Corresponds to the JSON property `meanSquaredLogError`
|
3918
|
+
# @return [Float]
|
3919
|
+
attr_accessor :mean_squared_log_error
|
3920
|
+
|
3921
|
+
# Median absolute error.
|
3922
|
+
# Corresponds to the JSON property `medianAbsoluteError`
|
3923
|
+
# @return [Float]
|
3924
|
+
attr_accessor :median_absolute_error
|
3925
|
+
|
3926
|
+
# R^2 score.
|
3927
|
+
# Corresponds to the JSON property `rSquared`
|
3928
|
+
# @return [Float]
|
3929
|
+
attr_accessor :r_squared
|
3930
|
+
|
3931
|
+
def initialize(**args)
|
3932
|
+
update!(**args)
|
3933
|
+
end
|
3934
|
+
|
3935
|
+
# Update properties of this object
|
3936
|
+
def update!(**args)
|
3937
|
+
@mean_absolute_error = args[:mean_absolute_error] if args.key?(:mean_absolute_error)
|
3938
|
+
@mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error)
|
3939
|
+
@mean_squared_log_error = args[:mean_squared_log_error] if args.key?(:mean_squared_log_error)
|
3940
|
+
@median_absolute_error = args[:median_absolute_error] if args.key?(:median_absolute_error)
|
3941
|
+
@r_squared = args[:r_squared] if args.key?(:r_squared)
|
3942
|
+
end
|
3943
|
+
end
|
3944
|
+
|
3354
3945
|
#
|
3355
3946
|
class RoutineReference
|
3356
3947
|
include Google::Apis::Core::Hashable
|
@@ -3383,6 +3974,134 @@ module Google
|
|
3383
3974
|
end
|
3384
3975
|
end
|
3385
3976
|
|
3977
|
+
# A single row in the confusion matrix.
|
3978
|
+
class Row
|
3979
|
+
include Google::Apis::Core::Hashable
|
3980
|
+
|
3981
|
+
# The original label of this row.
|
3982
|
+
# Corresponds to the JSON property `actualLabel`
|
3983
|
+
# @return [String]
|
3984
|
+
attr_accessor :actual_label
|
3985
|
+
|
3986
|
+
# Info describing predicted label distribution.
|
3987
|
+
# Corresponds to the JSON property `entries`
|
3988
|
+
# @return [Array<Google::Apis::BigqueryV2::Entry>]
|
3989
|
+
attr_accessor :entries
|
3990
|
+
|
3991
|
+
def initialize(**args)
|
3992
|
+
update!(**args)
|
3993
|
+
end
|
3994
|
+
|
3995
|
+
# Update properties of this object
|
3996
|
+
def update!(**args)
|
3997
|
+
@actual_label = args[:actual_label] if args.key?(:actual_label)
|
3998
|
+
@entries = args[:entries] if args.key?(:entries)
|
3999
|
+
end
|
4000
|
+
end
|
4001
|
+
|
4002
|
+
# The type of a variable, e.g., a function argument.
|
4003
|
+
# Examples:
|
4004
|
+
# INT64: `type_kind="INT64"`
|
4005
|
+
# ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
|
4006
|
+
# STRUCT<x STRING, y ARRAY<DATE>>:
|
4007
|
+
# `type_kind="STRUCT",
|
4008
|
+
# struct_type=`fields=[
|
4009
|
+
# `name="x", type=`type_kind="STRING"``,
|
4010
|
+
# `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
|
4011
|
+
# ]``
|
4012
|
+
class StandardSqlDataType
|
4013
|
+
include Google::Apis::Core::Hashable
|
4014
|
+
|
4015
|
+
# The type of a variable, e.g., a function argument.
|
4016
|
+
# Examples:
|
4017
|
+
# INT64: `type_kind="INT64"`
|
4018
|
+
# ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
|
4019
|
+
# STRUCT<x STRING, y ARRAY<DATE>>:
|
4020
|
+
# `type_kind="STRUCT",
|
4021
|
+
# struct_type=`fields=[
|
4022
|
+
# `name="x", type=`type_kind="STRING"``,
|
4023
|
+
# `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
|
4024
|
+
# ]``
|
4025
|
+
# Corresponds to the JSON property `arrayElementType`
|
4026
|
+
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
4027
|
+
attr_accessor :array_element_type
|
4028
|
+
|
4029
|
+
# The fields of this struct, in order, if type_kind = "STRUCT".
|
4030
|
+
# Corresponds to the JSON property `structType`
|
4031
|
+
# @return [Google::Apis::BigqueryV2::StandardSqlStructType]
|
4032
|
+
attr_accessor :struct_type
|
4033
|
+
|
4034
|
+
# Required. The top level type of this field.
|
4035
|
+
# Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
|
4036
|
+
# Corresponds to the JSON property `typeKind`
|
4037
|
+
# @return [String]
|
4038
|
+
attr_accessor :type_kind
|
4039
|
+
|
4040
|
+
def initialize(**args)
|
4041
|
+
update!(**args)
|
4042
|
+
end
|
4043
|
+
|
4044
|
+
# Update properties of this object
|
4045
|
+
def update!(**args)
|
4046
|
+
@array_element_type = args[:array_element_type] if args.key?(:array_element_type)
|
4047
|
+
@struct_type = args[:struct_type] if args.key?(:struct_type)
|
4048
|
+
@type_kind = args[:type_kind] if args.key?(:type_kind)
|
4049
|
+
end
|
4050
|
+
end
|
4051
|
+
|
4052
|
+
# A field or a column.
|
4053
|
+
class StandardSqlField
|
4054
|
+
include Google::Apis::Core::Hashable
|
4055
|
+
|
4056
|
+
# Optional. The name of this field. Can be absent for struct fields.
|
4057
|
+
# Corresponds to the JSON property `name`
|
4058
|
+
# @return [String]
|
4059
|
+
attr_accessor :name
|
4060
|
+
|
4061
|
+
# The type of a variable, e.g., a function argument.
|
4062
|
+
# Examples:
|
4063
|
+
# INT64: `type_kind="INT64"`
|
4064
|
+
# ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
|
4065
|
+
# STRUCT<x STRING, y ARRAY<DATE>>:
|
4066
|
+
# `type_kind="STRUCT",
|
4067
|
+
# struct_type=`fields=[
|
4068
|
+
# `name="x", type=`type_kind="STRING"``,
|
4069
|
+
# `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
|
4070
|
+
# ]``
|
4071
|
+
# Corresponds to the JSON property `type`
|
4072
|
+
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
4073
|
+
attr_accessor :type
|
4074
|
+
|
4075
|
+
def initialize(**args)
|
4076
|
+
update!(**args)
|
4077
|
+
end
|
4078
|
+
|
4079
|
+
# Update properties of this object
|
4080
|
+
def update!(**args)
|
4081
|
+
@name = args[:name] if args.key?(:name)
|
4082
|
+
@type = args[:type] if args.key?(:type)
|
4083
|
+
end
|
4084
|
+
end
|
4085
|
+
|
4086
|
+
#
|
4087
|
+
class StandardSqlStructType
|
4088
|
+
include Google::Apis::Core::Hashable
|
4089
|
+
|
4090
|
+
#
|
4091
|
+
# Corresponds to the JSON property `fields`
|
4092
|
+
# @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
|
4093
|
+
attr_accessor :fields
|
4094
|
+
|
4095
|
+
def initialize(**args)
|
4096
|
+
update!(**args)
|
4097
|
+
end
|
4098
|
+
|
4099
|
+
# Update properties of this object
|
4100
|
+
def update!(**args)
|
4101
|
+
@fields = args[:fields] if args.key?(:fields)
|
4102
|
+
end
|
4103
|
+
end
|
4104
|
+
|
3386
4105
|
#
|
3387
4106
|
class Streamingbuffer
|
3388
4107
|
include Google::Apis::Core::Hashable
|
@@ -4164,6 +4883,179 @@ module Google
|
|
4164
4883
|
end
|
4165
4884
|
end
|
4166
4885
|
|
4886
|
+
#
|
4887
|
+
class TrainingOptions
|
4888
|
+
include Google::Apis::Core::Hashable
|
4889
|
+
|
4890
|
+
# The column to split data with. This column won't be used as a
|
4891
|
+
# feature.
|
4892
|
+
# 1. When data_split_method is CUSTOM, the corresponding column should
|
4893
|
+
# be boolean. The rows with true value tag are eval data, and the false
|
4894
|
+
# are training data.
|
4895
|
+
# 2. When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION
|
4896
|
+
# rows (from smallest to largest) in the corresponding column are used
|
4897
|
+
# as training data, and the rest are eval data. It respects the order
|
4898
|
+
# in Orderable data types:
|
4899
|
+
# https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-
|
4900
|
+
# type-properties
|
4901
|
+
# Corresponds to the JSON property `dataSplitColumn`
|
4902
|
+
# @return [String]
|
4903
|
+
attr_accessor :data_split_column
|
4904
|
+
|
4905
|
+
# The fraction of evaluation data over the whole input data. The rest
|
4906
|
+
# of data will be used as training data. The format should be double.
|
4907
|
+
# Accurate to two decimal places.
|
4908
|
+
# Default value is 0.2.
|
4909
|
+
# Corresponds to the JSON property `dataSplitEvalFraction`
|
4910
|
+
# @return [Float]
|
4911
|
+
attr_accessor :data_split_eval_fraction
|
4912
|
+
|
4913
|
+
# The data split type for training and evaluation, e.g. RANDOM.
|
4914
|
+
# Corresponds to the JSON property `dataSplitMethod`
|
4915
|
+
# @return [String]
|
4916
|
+
attr_accessor :data_split_method
|
4917
|
+
|
4918
|
+
# [Beta] Distance type for clustering models.
|
4919
|
+
# Corresponds to the JSON property `distanceType`
|
4920
|
+
# @return [String]
|
4921
|
+
attr_accessor :distance_type
|
4922
|
+
|
4923
|
+
# Whether to stop early when the loss doesn't improve significantly
|
4924
|
+
# any more (compared to min_relative_progress).
|
4925
|
+
# Corresponds to the JSON property `earlyStop`
|
4926
|
+
# @return [Boolean]
|
4927
|
+
attr_accessor :early_stop
|
4928
|
+
alias_method :early_stop?, :early_stop
|
4929
|
+
|
4930
|
+
# Specifies the initial learning rate for line search to start at.
|
4931
|
+
# Corresponds to the JSON property `initialLearnRate`
|
4932
|
+
# @return [Float]
|
4933
|
+
attr_accessor :initial_learn_rate
|
4934
|
+
|
4935
|
+
# Name of input label columns in training data.
|
4936
|
+
# Corresponds to the JSON property `inputLabelColumns`
|
4937
|
+
# @return [Array<String>]
|
4938
|
+
attr_accessor :input_label_columns
|
4939
|
+
|
4940
|
+
# L1 regularization coefficient.
|
4941
|
+
# Corresponds to the JSON property `l1Regularization`
|
4942
|
+
# @return [Float]
|
4943
|
+
attr_accessor :l1_regularization
|
4944
|
+
|
4945
|
+
# L2 regularization coefficient.
|
4946
|
+
# Corresponds to the JSON property `l2Regularization`
|
4947
|
+
# @return [Float]
|
4948
|
+
attr_accessor :l2_regularization
|
4949
|
+
|
4950
|
+
# Weights associated with each label class, for rebalancing the
|
4951
|
+
# training data.
|
4952
|
+
# Corresponds to the JSON property `labelClassWeights`
|
4953
|
+
# @return [Hash<String,Float>]
|
4954
|
+
attr_accessor :label_class_weights
|
4955
|
+
|
4956
|
+
# Learning rate in training.
|
4957
|
+
# Corresponds to the JSON property `learnRate`
|
4958
|
+
# @return [Float]
|
4959
|
+
attr_accessor :learn_rate
|
4960
|
+
|
4961
|
+
# The strategy to determine learning rate.
|
4962
|
+
# Corresponds to the JSON property `learnRateStrategy`
|
4963
|
+
# @return [String]
|
4964
|
+
attr_accessor :learn_rate_strategy
|
4965
|
+
|
4966
|
+
# Type of loss function used during training run.
|
4967
|
+
# Corresponds to the JSON property `lossType`
|
4968
|
+
# @return [String]
|
4969
|
+
attr_accessor :loss_type
|
4970
|
+
|
4971
|
+
# The maximum number of iterations in training.
|
4972
|
+
# Corresponds to the JSON property `maxIterations`
|
4973
|
+
# @return [Fixnum]
|
4974
|
+
attr_accessor :max_iterations
|
4975
|
+
|
4976
|
+
# When early_stop is true, stops training when accuracy improvement is
|
4977
|
+
# less than 'min_relative_progress'.
|
4978
|
+
# Corresponds to the JSON property `minRelativeProgress`
|
4979
|
+
# @return [Float]
|
4980
|
+
attr_accessor :min_relative_progress
|
4981
|
+
|
4982
|
+
# [Beta] Number of clusters for clustering models.
|
4983
|
+
# Corresponds to the JSON property `numClusters`
|
4984
|
+
# @return [Fixnum]
|
4985
|
+
attr_accessor :num_clusters
|
4986
|
+
|
4987
|
+
# Whether to train a model from the last checkpoint.
|
4988
|
+
# Corresponds to the JSON property `warmStart`
|
4989
|
+
# @return [Boolean]
|
4990
|
+
attr_accessor :warm_start
|
4991
|
+
alias_method :warm_start?, :warm_start
|
4992
|
+
|
4993
|
+
def initialize(**args)
|
4994
|
+
update!(**args)
|
4995
|
+
end
|
4996
|
+
|
4997
|
+
# Update properties of this object
|
4998
|
+
def update!(**args)
|
4999
|
+
@data_split_column = args[:data_split_column] if args.key?(:data_split_column)
|
5000
|
+
@data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
|
5001
|
+
@data_split_method = args[:data_split_method] if args.key?(:data_split_method)
|
5002
|
+
@distance_type = args[:distance_type] if args.key?(:distance_type)
|
5003
|
+
@early_stop = args[:early_stop] if args.key?(:early_stop)
|
5004
|
+
@initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate)
|
5005
|
+
@input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
|
5006
|
+
@l1_regularization = args[:l1_regularization] if args.key?(:l1_regularization)
|
5007
|
+
@l2_regularization = args[:l2_regularization] if args.key?(:l2_regularization)
|
5008
|
+
@label_class_weights = args[:label_class_weights] if args.key?(:label_class_weights)
|
5009
|
+
@learn_rate = args[:learn_rate] if args.key?(:learn_rate)
|
5010
|
+
@learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
|
5011
|
+
@loss_type = args[:loss_type] if args.key?(:loss_type)
|
5012
|
+
@max_iterations = args[:max_iterations] if args.key?(:max_iterations)
|
5013
|
+
@min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress)
|
5014
|
+
@num_clusters = args[:num_clusters] if args.key?(:num_clusters)
|
5015
|
+
@warm_start = args[:warm_start] if args.key?(:warm_start)
|
5016
|
+
end
|
5017
|
+
end
|
5018
|
+
|
5019
|
+
# Information about a single training query run for the model.
|
5020
|
+
class TrainingRun
|
5021
|
+
include Google::Apis::Core::Hashable
|
5022
|
+
|
5023
|
+
# Evaluation metrics of a model. These are either computed on all
|
5024
|
+
# training data or just the eval data based on whether eval data was used
|
5025
|
+
# during training.
|
5026
|
+
# Corresponds to the JSON property `evaluationMetrics`
|
5027
|
+
# @return [Google::Apis::BigqueryV2::EvaluationMetrics]
|
5028
|
+
attr_accessor :evaluation_metrics
|
5029
|
+
|
5030
|
+
# Output of each iteration run, results.size() <= max_iterations.
|
5031
|
+
# Corresponds to the JSON property `results`
|
5032
|
+
# @return [Array<Google::Apis::BigqueryV2::IterationResult>]
|
5033
|
+
attr_accessor :results
|
5034
|
+
|
5035
|
+
# The start time of this training run.
|
5036
|
+
# Corresponds to the JSON property `startTime`
|
5037
|
+
# @return [String]
|
5038
|
+
attr_accessor :start_time
|
5039
|
+
|
5040
|
+
# Options that were used for this training run, includes
|
5041
|
+
# user specified and default options that were used.
|
5042
|
+
# Corresponds to the JSON property `trainingOptions`
|
5043
|
+
# @return [Google::Apis::BigqueryV2::TrainingOptions]
|
5044
|
+
attr_accessor :training_options
|
5045
|
+
|
5046
|
+
def initialize(**args)
|
5047
|
+
update!(**args)
|
5048
|
+
end
|
5049
|
+
|
5050
|
+
# Update properties of this object
|
5051
|
+
def update!(**args)
|
5052
|
+
@evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
|
5053
|
+
@results = args[:results] if args.key?(:results)
|
5054
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
5055
|
+
@training_options = args[:training_options] if args.key?(:training_options)
|
5056
|
+
end
|
5057
|
+
end
|
5058
|
+
|
4167
5059
|
#
|
4168
5060
|
class UserDefinedFunctionResource
|
4169
5061
|
include Google::Apis::Core::Hashable
|