google-apis-bigquery_v2 0.23.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/google/apis/bigquery_v2/classes.rb +733 -43
- data/lib/google/apis/bigquery_v2/gem_version.rb +3 -3
- data/lib/google/apis/bigquery_v2/representations.rb +322 -15
- metadata +4 -4
@@ -97,10 +97,12 @@ module Google
|
|
97
97
|
# @return [String]
|
98
98
|
attr_accessor :argument_kind
|
99
99
|
|
100
|
-
# The type of a variable
|
101
|
-
# "INT64"
|
102
|
-
#
|
103
|
-
#
|
100
|
+
# The data type of a variable such as a function argument. Examples include: *
|
101
|
+
# INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
|
102
|
+
# arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
|
103
|
+
# "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
|
104
|
+
# name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
|
105
|
+
# DATE"` ` ` ] ` `
|
104
106
|
# Corresponds to the JSON property `dataType`
|
105
107
|
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
106
108
|
attr_accessor :data_type
|
@@ -1205,6 +1207,32 @@ module Google
|
|
1205
1207
|
end
|
1206
1208
|
end
|
1207
1209
|
|
1210
|
+
#
|
1211
|
+
class CloneDefinition
|
1212
|
+
include Google::Apis::Core::Hashable
|
1213
|
+
|
1214
|
+
# [Required] Reference describing the ID of the table that was cloned.
|
1215
|
+
# Corresponds to the JSON property `baseTableReference`
|
1216
|
+
# @return [Google::Apis::BigqueryV2::TableReference]
|
1217
|
+
attr_accessor :base_table_reference
|
1218
|
+
|
1219
|
+
# [Required] The time at which the base table was cloned. This value is reported
|
1220
|
+
# in the JSON response using RFC3339 format.
|
1221
|
+
# Corresponds to the JSON property `cloneTime`
|
1222
|
+
# @return [DateTime]
|
1223
|
+
attr_accessor :clone_time
|
1224
|
+
|
1225
|
+
def initialize(**args)
|
1226
|
+
update!(**args)
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# Update properties of this object
|
1230
|
+
def update!(**args)
|
1231
|
+
@base_table_reference = args[:base_table_reference] if args.key?(:base_table_reference)
|
1232
|
+
@clone_time = args[:clone_time] if args.key?(:clone_time)
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1208
1236
|
# Message containing the information about one cluster.
|
1209
1237
|
class Cluster
|
1210
1238
|
include Google::Apis::Core::Hashable
|
@@ -1467,6 +1495,11 @@ module Google
|
|
1467
1495
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
1468
1496
|
attr_accessor :evaluation_table
|
1469
1497
|
|
1498
|
+
# Table reference of the test data after split.
|
1499
|
+
# Corresponds to the JSON property `testTable`
|
1500
|
+
# @return [Google::Apis::BigqueryV2::TableReference]
|
1501
|
+
attr_accessor :test_table
|
1502
|
+
|
1470
1503
|
# Table reference of the training data after split.
|
1471
1504
|
# Corresponds to the JSON property `trainingTable`
|
1472
1505
|
# @return [Google::Apis::BigqueryV2::TableReference]
|
@@ -1479,6 +1512,7 @@ module Google
|
|
1479
1512
|
# Update properties of this object
|
1480
1513
|
def update!(**args)
|
1481
1514
|
@evaluation_table = args[:evaluation_table] if args.key?(:evaluation_table)
|
1515
|
+
@test_table = args[:test_table] if args.key?(:test_table)
|
1482
1516
|
@training_table = args[:training_table] if args.key?(:training_table)
|
1483
1517
|
end
|
1484
1518
|
end
|
@@ -1615,6 +1649,11 @@ module Google
|
|
1615
1649
|
# @return [String]
|
1616
1650
|
attr_accessor :self_link
|
1617
1651
|
|
1652
|
+
# [Optional]The tags associated with this dataset. Tag keys are globally unique.
|
1653
|
+
# Corresponds to the JSON property `tags`
|
1654
|
+
# @return [Array<Google::Apis::BigqueryV2::Dataset::Tag>]
|
1655
|
+
attr_accessor :tags
|
1656
|
+
|
1618
1657
|
def initialize(**args)
|
1619
1658
|
update!(**args)
|
1620
1659
|
end
|
@@ -1639,6 +1678,7 @@ module Google
|
|
1639
1678
|
@location = args[:location] if args.key?(:location)
|
1640
1679
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
1641
1680
|
@self_link = args[:self_link] if args.key?(:self_link)
|
1681
|
+
@tags = args[:tags] if args.key?(:tags)
|
1642
1682
|
end
|
1643
1683
|
|
1644
1684
|
#
|
@@ -1733,6 +1773,32 @@ module Google
|
|
1733
1773
|
@view = args[:view] if args.key?(:view)
|
1734
1774
|
end
|
1735
1775
|
end
|
1776
|
+
|
1777
|
+
#
|
1778
|
+
class Tag
|
1779
|
+
include Google::Apis::Core::Hashable
|
1780
|
+
|
1781
|
+
# [Required] The namespaced friendly name of the tag key, e.g. "12345/
|
1782
|
+
# environment" where 12345 is org id.
|
1783
|
+
# Corresponds to the JSON property `tagKey`
|
1784
|
+
# @return [String]
|
1785
|
+
attr_accessor :tag_key
|
1786
|
+
|
1787
|
+
# [Required] Friendly short name of the tag value, e.g. "production".
|
1788
|
+
# Corresponds to the JSON property `tagValue`
|
1789
|
+
# @return [String]
|
1790
|
+
attr_accessor :tag_value
|
1791
|
+
|
1792
|
+
def initialize(**args)
|
1793
|
+
update!(**args)
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
# Update properties of this object
|
1797
|
+
def update!(**args)
|
1798
|
+
@tag_key = args[:tag_key] if args.key?(:tag_key)
|
1799
|
+
@tag_value = args[:tag_value] if args.key?(:tag_value)
|
1800
|
+
end
|
1801
|
+
end
|
1736
1802
|
end
|
1737
1803
|
|
1738
1804
|
#
|
@@ -1745,8 +1811,8 @@ module Google
|
|
1745
1811
|
attr_accessor :dataset
|
1746
1812
|
|
1747
1813
|
#
|
1748
|
-
# Corresponds to the JSON property `
|
1749
|
-
# @return [Array<
|
1814
|
+
# Corresponds to the JSON property `targetTypes`
|
1815
|
+
# @return [Array<String>]
|
1750
1816
|
attr_accessor :target_types
|
1751
1817
|
|
1752
1818
|
def initialize(**args)
|
@@ -1758,27 +1824,6 @@ module Google
|
|
1758
1824
|
@dataset = args[:dataset] if args.key?(:dataset)
|
1759
1825
|
@target_types = args[:target_types] if args.key?(:target_types)
|
1760
1826
|
end
|
1761
|
-
|
1762
|
-
#
|
1763
|
-
class TargetType
|
1764
|
-
include Google::Apis::Core::Hashable
|
1765
|
-
|
1766
|
-
# [Required] Which resources in the dataset this entry applies to. Currently,
|
1767
|
-
# only views are supported, but additional target types may be added in the
|
1768
|
-
# future. Possible values: VIEWS: This entry applies to all views in the dataset.
|
1769
|
-
# Corresponds to the JSON property `targetType`
|
1770
|
-
# @return [String]
|
1771
|
-
attr_accessor :target_type
|
1772
|
-
|
1773
|
-
def initialize(**args)
|
1774
|
-
update!(**args)
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
# Update properties of this object
|
1778
|
-
def update!(**args)
|
1779
|
-
@target_type = args[:target_type] if args.key?(:target_type)
|
1780
|
-
end
|
1781
|
-
end
|
1782
1827
|
end
|
1783
1828
|
|
1784
1829
|
#
|
@@ -1945,6 +1990,25 @@ module Google
|
|
1945
1990
|
end
|
1946
1991
|
end
|
1947
1992
|
|
1993
|
+
# Model evaluation metrics for dimensionality reduction models.
|
1994
|
+
class DimensionalityReductionMetrics
|
1995
|
+
include Google::Apis::Core::Hashable
|
1996
|
+
|
1997
|
+
# Total percentage of variance explained by the selected principal components.
|
1998
|
+
# Corresponds to the JSON property `totalExplainedVarianceRatio`
|
1999
|
+
# @return [Float]
|
2000
|
+
attr_accessor :total_explained_variance_ratio
|
2001
|
+
|
2002
|
+
def initialize(**args)
|
2003
|
+
update!(**args)
|
2004
|
+
end
|
2005
|
+
|
2006
|
+
# Update properties of this object
|
2007
|
+
def update!(**args)
|
2008
|
+
@total_explained_variance_ratio = args[:total_explained_variance_ratio] if args.key?(:total_explained_variance_ratio)
|
2009
|
+
end
|
2010
|
+
end
|
2011
|
+
|
1948
2012
|
#
|
1949
2013
|
class DmlStatistics
|
1950
2014
|
include Google::Apis::Core::Hashable
|
@@ -1976,6 +2040,75 @@ module Google
|
|
1976
2040
|
end
|
1977
2041
|
end
|
1978
2042
|
|
2043
|
+
# Discrete candidates of a double hyperparameter.
|
2044
|
+
class DoubleCandidates
|
2045
|
+
include Google::Apis::Core::Hashable
|
2046
|
+
|
2047
|
+
# Candidates for the double parameter in increasing order.
|
2048
|
+
# Corresponds to the JSON property `candidates`
|
2049
|
+
# @return [Array<Float>]
|
2050
|
+
attr_accessor :candidates
|
2051
|
+
|
2052
|
+
def initialize(**args)
|
2053
|
+
update!(**args)
|
2054
|
+
end
|
2055
|
+
|
2056
|
+
# Update properties of this object
|
2057
|
+
def update!(**args)
|
2058
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
2059
|
+
end
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
# Search space for a double hyperparameter.
|
2063
|
+
class DoubleHparamSearchSpace
|
2064
|
+
include Google::Apis::Core::Hashable
|
2065
|
+
|
2066
|
+
# Discrete candidates of a double hyperparameter.
|
2067
|
+
# Corresponds to the JSON property `candidates`
|
2068
|
+
# @return [Google::Apis::BigqueryV2::DoubleCandidates]
|
2069
|
+
attr_accessor :candidates
|
2070
|
+
|
2071
|
+
# Range of a double hyperparameter.
|
2072
|
+
# Corresponds to the JSON property `range`
|
2073
|
+
# @return [Google::Apis::BigqueryV2::DoubleRange]
|
2074
|
+
attr_accessor :range
|
2075
|
+
|
2076
|
+
def initialize(**args)
|
2077
|
+
update!(**args)
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
# Update properties of this object
|
2081
|
+
def update!(**args)
|
2082
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
2083
|
+
@range = args[:range] if args.key?(:range)
|
2084
|
+
end
|
2085
|
+
end
|
2086
|
+
|
2087
|
+
# Range of a double hyperparameter.
|
2088
|
+
class DoubleRange
|
2089
|
+
include Google::Apis::Core::Hashable
|
2090
|
+
|
2091
|
+
# Max value of the double parameter.
|
2092
|
+
# Corresponds to the JSON property `max`
|
2093
|
+
# @return [Float]
|
2094
|
+
attr_accessor :max
|
2095
|
+
|
2096
|
+
# Min value of the double parameter.
|
2097
|
+
# Corresponds to the JSON property `min`
|
2098
|
+
# @return [Float]
|
2099
|
+
attr_accessor :min
|
2100
|
+
|
2101
|
+
def initialize(**args)
|
2102
|
+
update!(**args)
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# Update properties of this object
|
2106
|
+
def update!(**args)
|
2107
|
+
@max = args[:max] if args.key?(:max)
|
2108
|
+
@min = args[:min] if args.key?(:min)
|
2109
|
+
end
|
2110
|
+
end
|
2111
|
+
|
1979
2112
|
#
|
1980
2113
|
class EncryptionConfiguration
|
1981
2114
|
include Google::Apis::Core::Hashable
|
@@ -2082,6 +2215,11 @@ module Google
|
|
2082
2215
|
# @return [Google::Apis::BigqueryV2::ClusteringMetrics]
|
2083
2216
|
attr_accessor :clustering_metrics
|
2084
2217
|
|
2218
|
+
# Model evaluation metrics for dimensionality reduction models.
|
2219
|
+
# Corresponds to the JSON property `dimensionalityReductionMetrics`
|
2220
|
+
# @return [Google::Apis::BigqueryV2::DimensionalityReductionMetrics]
|
2221
|
+
attr_accessor :dimensionality_reduction_metrics
|
2222
|
+
|
2085
2223
|
# Evaluation metrics for multi-class classification/classifier models.
|
2086
2224
|
# Corresponds to the JSON property `multiClassClassificationMetrics`
|
2087
2225
|
# @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
|
@@ -2108,6 +2246,7 @@ module Google
|
|
2108
2246
|
@arima_forecasting_metrics = args[:arima_forecasting_metrics] if args.key?(:arima_forecasting_metrics)
|
2109
2247
|
@binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
|
2110
2248
|
@clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
|
2249
|
+
@dimensionality_reduction_metrics = args[:dimensionality_reduction_metrics] if args.key?(:dimensionality_reduction_metrics)
|
2111
2250
|
@multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
|
2112
2251
|
@ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
|
2113
2252
|
@regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
|
@@ -2333,6 +2472,32 @@ module Google
|
|
2333
2472
|
end
|
2334
2473
|
end
|
2335
2474
|
|
2475
|
+
# Explanation for a single feature.
|
2476
|
+
class Explanation
|
2477
|
+
include Google::Apis::Core::Hashable
|
2478
|
+
|
2479
|
+
# Attribution of feature.
|
2480
|
+
# Corresponds to the JSON property `attribution`
|
2481
|
+
# @return [Float]
|
2482
|
+
attr_accessor :attribution
|
2483
|
+
|
2484
|
+
# Full name of the feature. For non-numerical features, will be formatted like ..
|
2485
|
+
# Overall size of feature name will always be truncated to first 120 characters.
|
2486
|
+
# Corresponds to the JSON property `featureName`
|
2487
|
+
# @return [String]
|
2488
|
+
attr_accessor :feature_name
|
2489
|
+
|
2490
|
+
def initialize(**args)
|
2491
|
+
update!(**args)
|
2492
|
+
end
|
2493
|
+
|
2494
|
+
# Update properties of this object
|
2495
|
+
def update!(**args)
|
2496
|
+
@attribution = args[:attribution] if args.key?(:attribution)
|
2497
|
+
@feature_name = args[:feature_name] if args.key?(:feature_name)
|
2498
|
+
end
|
2499
|
+
end
|
2500
|
+
|
2336
2501
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
2337
2502
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
2338
2503
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -2740,6 +2905,34 @@ module Google
|
|
2740
2905
|
end
|
2741
2906
|
end
|
2742
2907
|
|
2908
|
+
# Global explanations containing the top most important features after training.
|
2909
|
+
class GlobalExplanation
|
2910
|
+
include Google::Apis::Core::Hashable
|
2911
|
+
|
2912
|
+
# Class label for this set of global explanations. Will be empty/null for binary
|
2913
|
+
# logistic and linear regression models. Sorted alphabetically in descending
|
2914
|
+
# order.
|
2915
|
+
# Corresponds to the JSON property `classLabel`
|
2916
|
+
# @return [String]
|
2917
|
+
attr_accessor :class_label
|
2918
|
+
|
2919
|
+
# A list of the top global explanations. Sorted by absolute value of attribution
|
2920
|
+
# in descending order.
|
2921
|
+
# Corresponds to the JSON property `explanations`
|
2922
|
+
# @return [Array<Google::Apis::BigqueryV2::Explanation>]
|
2923
|
+
attr_accessor :explanations
|
2924
|
+
|
2925
|
+
def initialize(**args)
|
2926
|
+
update!(**args)
|
2927
|
+
end
|
2928
|
+
|
2929
|
+
# Update properties of this object
|
2930
|
+
def update!(**args)
|
2931
|
+
@class_label = args[:class_label] if args.key?(:class_label)
|
2932
|
+
@explanations = args[:explanations] if args.key?(:explanations)
|
2933
|
+
end
|
2934
|
+
end
|
2935
|
+
|
2743
2936
|
#
|
2744
2937
|
class GoogleSheetsOptions
|
2745
2938
|
include Google::Apis::Core::Hashable
|
@@ -2827,6 +3020,335 @@ module Google
|
|
2827
3020
|
end
|
2828
3021
|
end
|
2829
3022
|
|
3023
|
+
# Hyperparameter search spaces. These should be a subset of training_options.
|
3024
|
+
class HparamSearchSpaces
|
3025
|
+
include Google::Apis::Core::Hashable
|
3026
|
+
|
3027
|
+
# Search space for string and enum.
|
3028
|
+
# Corresponds to the JSON property `activationFn`
|
3029
|
+
# @return [Google::Apis::BigqueryV2::StringHparamSearchSpace]
|
3030
|
+
attr_accessor :activation_fn
|
3031
|
+
|
3032
|
+
# Search space for an int hyperparameter.
|
3033
|
+
# Corresponds to the JSON property `batchSize`
|
3034
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3035
|
+
attr_accessor :batch_size
|
3036
|
+
|
3037
|
+
# Search space for string and enum.
|
3038
|
+
# Corresponds to the JSON property `boosterType`
|
3039
|
+
# @return [Google::Apis::BigqueryV2::StringHparamSearchSpace]
|
3040
|
+
attr_accessor :booster_type
|
3041
|
+
|
3042
|
+
# Search space for a double hyperparameter.
|
3043
|
+
# Corresponds to the JSON property `colsampleBylevel`
|
3044
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3045
|
+
attr_accessor :colsample_bylevel
|
3046
|
+
|
3047
|
+
# Search space for a double hyperparameter.
|
3048
|
+
# Corresponds to the JSON property `colsampleBynode`
|
3049
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3050
|
+
attr_accessor :colsample_bynode
|
3051
|
+
|
3052
|
+
# Search space for a double hyperparameter.
|
3053
|
+
# Corresponds to the JSON property `colsampleBytree`
|
3054
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3055
|
+
attr_accessor :colsample_bytree
|
3056
|
+
|
3057
|
+
# Search space for string and enum.
|
3058
|
+
# Corresponds to the JSON property `dartNormalizeType`
|
3059
|
+
# @return [Google::Apis::BigqueryV2::StringHparamSearchSpace]
|
3060
|
+
attr_accessor :dart_normalize_type
|
3061
|
+
|
3062
|
+
# Search space for a double hyperparameter.
|
3063
|
+
# Corresponds to the JSON property `dropout`
|
3064
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3065
|
+
attr_accessor :dropout
|
3066
|
+
|
3067
|
+
# Search space for int array.
|
3068
|
+
# Corresponds to the JSON property `hiddenUnits`
|
3069
|
+
# @return [Google::Apis::BigqueryV2::IntArrayHparamSearchSpace]
|
3070
|
+
attr_accessor :hidden_units
|
3071
|
+
|
3072
|
+
# Search space for a double hyperparameter.
|
3073
|
+
# Corresponds to the JSON property `l1Reg`
|
3074
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3075
|
+
attr_accessor :l1_reg
|
3076
|
+
|
3077
|
+
# Search space for a double hyperparameter.
|
3078
|
+
# Corresponds to the JSON property `l2Reg`
|
3079
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3080
|
+
attr_accessor :l2_reg
|
3081
|
+
|
3082
|
+
# Search space for a double hyperparameter.
|
3083
|
+
# Corresponds to the JSON property `learnRate`
|
3084
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3085
|
+
attr_accessor :learn_rate
|
3086
|
+
|
3087
|
+
# Search space for an int hyperparameter.
|
3088
|
+
# Corresponds to the JSON property `maxTreeDepth`
|
3089
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3090
|
+
attr_accessor :max_tree_depth
|
3091
|
+
|
3092
|
+
# Search space for a double hyperparameter.
|
3093
|
+
# Corresponds to the JSON property `minSplitLoss`
|
3094
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3095
|
+
attr_accessor :min_split_loss
|
3096
|
+
|
3097
|
+
# Search space for an int hyperparameter.
|
3098
|
+
# Corresponds to the JSON property `minTreeChildWeight`
|
3099
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3100
|
+
attr_accessor :min_tree_child_weight
|
3101
|
+
|
3102
|
+
# Search space for an int hyperparameter.
|
3103
|
+
# Corresponds to the JSON property `numClusters`
|
3104
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3105
|
+
attr_accessor :num_clusters
|
3106
|
+
|
3107
|
+
# Search space for an int hyperparameter.
|
3108
|
+
# Corresponds to the JSON property `numFactors`
|
3109
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3110
|
+
attr_accessor :num_factors
|
3111
|
+
|
3112
|
+
# Search space for an int hyperparameter.
|
3113
|
+
# Corresponds to the JSON property `numParallelTree`
|
3114
|
+
# @return [Google::Apis::BigqueryV2::IntHparamSearchSpace]
|
3115
|
+
attr_accessor :num_parallel_tree
|
3116
|
+
|
3117
|
+
# Search space for string and enum.
|
3118
|
+
# Corresponds to the JSON property `optimizer`
|
3119
|
+
# @return [Google::Apis::BigqueryV2::StringHparamSearchSpace]
|
3120
|
+
attr_accessor :optimizer
|
3121
|
+
|
3122
|
+
# Search space for a double hyperparameter.
|
3123
|
+
# Corresponds to the JSON property `subsample`
|
3124
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3125
|
+
attr_accessor :subsample
|
3126
|
+
|
3127
|
+
# Search space for string and enum.
|
3128
|
+
# Corresponds to the JSON property `treeMethod`
|
3129
|
+
# @return [Google::Apis::BigqueryV2::StringHparamSearchSpace]
|
3130
|
+
attr_accessor :tree_method
|
3131
|
+
|
3132
|
+
# Search space for a double hyperparameter.
|
3133
|
+
# Corresponds to the JSON property `walsAlpha`
|
3134
|
+
# @return [Google::Apis::BigqueryV2::DoubleHparamSearchSpace]
|
3135
|
+
attr_accessor :wals_alpha
|
3136
|
+
|
3137
|
+
def initialize(**args)
|
3138
|
+
update!(**args)
|
3139
|
+
end
|
3140
|
+
|
3141
|
+
# Update properties of this object
|
3142
|
+
def update!(**args)
|
3143
|
+
@activation_fn = args[:activation_fn] if args.key?(:activation_fn)
|
3144
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
3145
|
+
@booster_type = args[:booster_type] if args.key?(:booster_type)
|
3146
|
+
@colsample_bylevel = args[:colsample_bylevel] if args.key?(:colsample_bylevel)
|
3147
|
+
@colsample_bynode = args[:colsample_bynode] if args.key?(:colsample_bynode)
|
3148
|
+
@colsample_bytree = args[:colsample_bytree] if args.key?(:colsample_bytree)
|
3149
|
+
@dart_normalize_type = args[:dart_normalize_type] if args.key?(:dart_normalize_type)
|
3150
|
+
@dropout = args[:dropout] if args.key?(:dropout)
|
3151
|
+
@hidden_units = args[:hidden_units] if args.key?(:hidden_units)
|
3152
|
+
@l1_reg = args[:l1_reg] if args.key?(:l1_reg)
|
3153
|
+
@l2_reg = args[:l2_reg] if args.key?(:l2_reg)
|
3154
|
+
@learn_rate = args[:learn_rate] if args.key?(:learn_rate)
|
3155
|
+
@max_tree_depth = args[:max_tree_depth] if args.key?(:max_tree_depth)
|
3156
|
+
@min_split_loss = args[:min_split_loss] if args.key?(:min_split_loss)
|
3157
|
+
@min_tree_child_weight = args[:min_tree_child_weight] if args.key?(:min_tree_child_weight)
|
3158
|
+
@num_clusters = args[:num_clusters] if args.key?(:num_clusters)
|
3159
|
+
@num_factors = args[:num_factors] if args.key?(:num_factors)
|
3160
|
+
@num_parallel_tree = args[:num_parallel_tree] if args.key?(:num_parallel_tree)
|
3161
|
+
@optimizer = args[:optimizer] if args.key?(:optimizer)
|
3162
|
+
@subsample = args[:subsample] if args.key?(:subsample)
|
3163
|
+
@tree_method = args[:tree_method] if args.key?(:tree_method)
|
3164
|
+
@wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
|
3165
|
+
end
|
3166
|
+
end
|
3167
|
+
|
3168
|
+
# Training info of a trial in hyperparameter tuning.
|
3169
|
+
class HparamTuningTrial
|
3170
|
+
include Google::Apis::Core::Hashable
|
3171
|
+
|
3172
|
+
# Ending time of the trial.
|
3173
|
+
# Corresponds to the JSON property `endTimeMs`
|
3174
|
+
# @return [Fixnum]
|
3175
|
+
attr_accessor :end_time_ms
|
3176
|
+
|
3177
|
+
# Error message for FAILED and INFEASIBLE trial.
|
3178
|
+
# Corresponds to the JSON property `errorMessage`
|
3179
|
+
# @return [String]
|
3180
|
+
attr_accessor :error_message
|
3181
|
+
|
3182
|
+
# Loss computed on the eval data at the end of trial.
|
3183
|
+
# Corresponds to the JSON property `evalLoss`
|
3184
|
+
# @return [Float]
|
3185
|
+
attr_accessor :eval_loss
|
3186
|
+
|
3187
|
+
# Evaluation metrics of a model. These are either computed on all training data
|
3188
|
+
# or just the eval data based on whether eval data was used during training.
|
3189
|
+
# These are not present for imported models.
|
3190
|
+
# Corresponds to the JSON property `evaluationMetrics`
|
3191
|
+
# @return [Google::Apis::BigqueryV2::EvaluationMetrics]
|
3192
|
+
attr_accessor :evaluation_metrics
|
3193
|
+
|
3194
|
+
# Evaluation metrics of a model. These are either computed on all training data
|
3195
|
+
# or just the eval data based on whether eval data was used during training.
|
3196
|
+
# These are not present for imported models.
|
3197
|
+
# Corresponds to the JSON property `hparamTuningEvaluationMetrics`
|
3198
|
+
# @return [Google::Apis::BigqueryV2::EvaluationMetrics]
|
3199
|
+
attr_accessor :hparam_tuning_evaluation_metrics
|
3200
|
+
|
3201
|
+
# Options used in model training.
|
3202
|
+
# Corresponds to the JSON property `hparams`
|
3203
|
+
# @return [Google::Apis::BigqueryV2::TrainingOptions]
|
3204
|
+
attr_accessor :hparams
|
3205
|
+
|
3206
|
+
# Starting time of the trial.
|
3207
|
+
# Corresponds to the JSON property `startTimeMs`
|
3208
|
+
# @return [Fixnum]
|
3209
|
+
attr_accessor :start_time_ms
|
3210
|
+
|
3211
|
+
# The status of the trial.
|
3212
|
+
# Corresponds to the JSON property `status`
|
3213
|
+
# @return [String]
|
3214
|
+
attr_accessor :status
|
3215
|
+
|
3216
|
+
# Loss computed on the training data at the end of trial.
|
3217
|
+
# Corresponds to the JSON property `trainingLoss`
|
3218
|
+
# @return [Float]
|
3219
|
+
attr_accessor :training_loss
|
3220
|
+
|
3221
|
+
# 1-based index of the trial.
|
3222
|
+
# Corresponds to the JSON property `trialId`
|
3223
|
+
# @return [Fixnum]
|
3224
|
+
attr_accessor :trial_id
|
3225
|
+
|
3226
|
+
def initialize(**args)
|
3227
|
+
update!(**args)
|
3228
|
+
end
|
3229
|
+
|
3230
|
+
# Update properties of this object
|
3231
|
+
def update!(**args)
|
3232
|
+
@end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
|
3233
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
3234
|
+
@eval_loss = args[:eval_loss] if args.key?(:eval_loss)
|
3235
|
+
@evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
|
3236
|
+
@hparam_tuning_evaluation_metrics = args[:hparam_tuning_evaluation_metrics] if args.key?(:hparam_tuning_evaluation_metrics)
|
3237
|
+
@hparams = args[:hparams] if args.key?(:hparams)
|
3238
|
+
@start_time_ms = args[:start_time_ms] if args.key?(:start_time_ms)
|
3239
|
+
@status = args[:status] if args.key?(:status)
|
3240
|
+
@training_loss = args[:training_loss] if args.key?(:training_loss)
|
3241
|
+
@trial_id = args[:trial_id] if args.key?(:trial_id)
|
3242
|
+
end
|
3243
|
+
end
|
3244
|
+
|
3245
|
+
# An array of int.
|
3246
|
+
class IntArray
|
3247
|
+
include Google::Apis::Core::Hashable
|
3248
|
+
|
3249
|
+
# Elements in the int array.
|
3250
|
+
# Corresponds to the JSON property `elements`
|
3251
|
+
# @return [Array<Fixnum>]
|
3252
|
+
attr_accessor :elements
|
3253
|
+
|
3254
|
+
def initialize(**args)
|
3255
|
+
update!(**args)
|
3256
|
+
end
|
3257
|
+
|
3258
|
+
# Update properties of this object
|
3259
|
+
def update!(**args)
|
3260
|
+
@elements = args[:elements] if args.key?(:elements)
|
3261
|
+
end
|
3262
|
+
end
|
3263
|
+
|
3264
|
+
# Search space for int array.
|
3265
|
+
class IntArrayHparamSearchSpace
|
3266
|
+
include Google::Apis::Core::Hashable
|
3267
|
+
|
3268
|
+
# Candidates for the int array parameter.
|
3269
|
+
# Corresponds to the JSON property `candidates`
|
3270
|
+
# @return [Array<Google::Apis::BigqueryV2::IntArray>]
|
3271
|
+
attr_accessor :candidates
|
3272
|
+
|
3273
|
+
def initialize(**args)
|
3274
|
+
update!(**args)
|
3275
|
+
end
|
3276
|
+
|
3277
|
+
# Update properties of this object
|
3278
|
+
def update!(**args)
|
3279
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
3280
|
+
end
|
3281
|
+
end
|
3282
|
+
|
3283
|
+
# Discrete candidates of an int hyperparameter.
|
3284
|
+
class IntCandidates
|
3285
|
+
include Google::Apis::Core::Hashable
|
3286
|
+
|
3287
|
+
# Candidates for the int parameter in increasing order.
|
3288
|
+
# Corresponds to the JSON property `candidates`
|
3289
|
+
# @return [Array<Fixnum>]
|
3290
|
+
attr_accessor :candidates
|
3291
|
+
|
3292
|
+
def initialize(**args)
|
3293
|
+
update!(**args)
|
3294
|
+
end
|
3295
|
+
|
3296
|
+
# Update properties of this object
|
3297
|
+
def update!(**args)
|
3298
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
3299
|
+
end
|
3300
|
+
end
|
3301
|
+
|
3302
|
+
# Search space for an int hyperparameter.
|
3303
|
+
class IntHparamSearchSpace
|
3304
|
+
include Google::Apis::Core::Hashable
|
3305
|
+
|
3306
|
+
# Discrete candidates of an int hyperparameter.
|
3307
|
+
# Corresponds to the JSON property `candidates`
|
3308
|
+
# @return [Google::Apis::BigqueryV2::IntCandidates]
|
3309
|
+
attr_accessor :candidates
|
3310
|
+
|
3311
|
+
# Range of an int hyperparameter.
|
3312
|
+
# Corresponds to the JSON property `range`
|
3313
|
+
# @return [Google::Apis::BigqueryV2::IntRange]
|
3314
|
+
attr_accessor :range
|
3315
|
+
|
3316
|
+
def initialize(**args)
|
3317
|
+
update!(**args)
|
3318
|
+
end
|
3319
|
+
|
3320
|
+
# Update properties of this object
|
3321
|
+
def update!(**args)
|
3322
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
3323
|
+
@range = args[:range] if args.key?(:range)
|
3324
|
+
end
|
3325
|
+
end
|
3326
|
+
|
3327
|
+
# Range of an int hyperparameter.
|
3328
|
+
class IntRange
|
3329
|
+
include Google::Apis::Core::Hashable
|
3330
|
+
|
3331
|
+
# Max value of the int parameter.
|
3332
|
+
# Corresponds to the JSON property `max`
|
3333
|
+
# @return [Fixnum]
|
3334
|
+
attr_accessor :max
|
3335
|
+
|
3336
|
+
# Min value of the int parameter.
|
3337
|
+
# Corresponds to the JSON property `min`
|
3338
|
+
# @return [Fixnum]
|
3339
|
+
attr_accessor :min
|
3340
|
+
|
3341
|
+
def initialize(**args)
|
3342
|
+
update!(**args)
|
3343
|
+
end
|
3344
|
+
|
3345
|
+
# Update properties of this object
|
3346
|
+
def update!(**args)
|
3347
|
+
@max = args[:max] if args.key?(:max)
|
3348
|
+
@min = args[:min] if args.key?(:min)
|
3349
|
+
end
|
3350
|
+
end
|
3351
|
+
|
2830
3352
|
#
|
2831
3353
|
class IterationResult
|
2832
3354
|
include Google::Apis::Core::Hashable
|
@@ -3266,6 +3788,14 @@ module Google
|
|
3266
3788
|
# @return [Google::Apis::BigqueryV2::ParquetOptions]
|
3267
3789
|
attr_accessor :parquet_options
|
3268
3790
|
|
3791
|
+
# [Optional] Preserves the embedded ASCII control characters (the first 32
|
3792
|
+
# characters in the ASCII-table, from '\x00' to '\x1F') when loading from CSV.
|
3793
|
+
# Only applicable to CSV, ignored for other formats.
|
3794
|
+
# Corresponds to the JSON property `preserveAsciiControlCharacters`
|
3795
|
+
# @return [Boolean]
|
3796
|
+
attr_accessor :preserve_ascii_control_characters
|
3797
|
+
alias_method :preserve_ascii_control_characters?, :preserve_ascii_control_characters
|
3798
|
+
|
3269
3799
|
# If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
|
3270
3800
|
# properties to load into BigQuery from a Cloud Datastore backup. Property names
|
3271
3801
|
# are case sensitive and must be top-level properties. If no properties are
|
@@ -3398,6 +3928,7 @@ module Google
|
|
3398
3928
|
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
3399
3929
|
@null_marker = args[:null_marker] if args.key?(:null_marker)
|
3400
3930
|
@parquet_options = args[:parquet_options] if args.key?(:parquet_options)
|
3931
|
+
@preserve_ascii_control_characters = args[:preserve_ascii_control_characters] if args.key?(:preserve_ascii_control_characters)
|
3401
3932
|
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
|
3402
3933
|
@quote = args[:quote] if args.key?(:quote)
|
3403
3934
|
@range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
|
@@ -4550,6 +5081,14 @@ module Google
|
|
4550
5081
|
# @return [Fixnum]
|
4551
5082
|
attr_accessor :creation_time
|
4552
5083
|
|
5084
|
+
# Output only. The default trial_id to use in TVFs when the trial_id is not
|
5085
|
+
# passed in. For single-objective hyperparameter tuning, this is the best trial
|
5086
|
+
# id. For multi-objective hyperparameter tuning, this is the smallest trial id
|
5087
|
+
# among all Pareto optimal trials.
|
5088
|
+
# Corresponds to the JSON property `defaultTrialId`
|
5089
|
+
# @return [Fixnum]
|
5090
|
+
attr_accessor :default_trial_id
|
5091
|
+
|
4553
5092
|
# Optional. A user-friendly description of this model.
|
4554
5093
|
# Corresponds to the JSON property `description`
|
4555
5094
|
# @return [String]
|
@@ -4587,6 +5126,16 @@ module Google
|
|
4587
5126
|
# @return [String]
|
4588
5127
|
attr_accessor :friendly_name
|
4589
5128
|
|
5129
|
+
# Hyperparameter search spaces. These should be a subset of training_options.
|
5130
|
+
# Corresponds to the JSON property `hparamSearchSpaces`
|
5131
|
+
# @return [Google::Apis::BigqueryV2::HparamSearchSpaces]
|
5132
|
+
attr_accessor :hparam_search_spaces
|
5133
|
+
|
5134
|
+
# Output only. Trials of a hyperparameter tuning model sorted by trial_id.
|
5135
|
+
# Corresponds to the JSON property `hparamTrials`
|
5136
|
+
# @return [Array<Google::Apis::BigqueryV2::HparamTuningTrial>]
|
5137
|
+
attr_accessor :hparam_trials
|
5138
|
+
|
4590
5139
|
# Output only. Label columns that were used to train this model. The output of
|
4591
5140
|
# the model will have a "predicted_" prefix to these columns.
|
4592
5141
|
# Corresponds to the JSON property `labelColumns`
|
@@ -4624,6 +5173,13 @@ module Google
|
|
4624
5173
|
# @return [String]
|
4625
5174
|
attr_accessor :model_type
|
4626
5175
|
|
5176
|
+
# Output only. For single-objective hyperparameter tuning, it only contains the
|
5177
|
+
# best trial. For multi-objective hyperparameter tuning, it contains all Pareto
|
5178
|
+
# optimal trials sorted by trial_id.
|
5179
|
+
# Corresponds to the JSON property `optimalTrialIds`
|
5180
|
+
# @return [Array<Fixnum>]
|
5181
|
+
attr_accessor :optimal_trial_ids
|
5182
|
+
|
4627
5183
|
# Output only. Information for all training runs in increasing order of
|
4628
5184
|
# start_time.
|
4629
5185
|
# Corresponds to the JSON property `trainingRuns`
|
@@ -4638,18 +5194,22 @@ module Google
|
|
4638
5194
|
def update!(**args)
|
4639
5195
|
@best_trial_id = args[:best_trial_id] if args.key?(:best_trial_id)
|
4640
5196
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
5197
|
+
@default_trial_id = args[:default_trial_id] if args.key?(:default_trial_id)
|
4641
5198
|
@description = args[:description] if args.key?(:description)
|
4642
5199
|
@encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
|
4643
5200
|
@etag = args[:etag] if args.key?(:etag)
|
4644
5201
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
4645
5202
|
@feature_columns = args[:feature_columns] if args.key?(:feature_columns)
|
4646
5203
|
@friendly_name = args[:friendly_name] if args.key?(:friendly_name)
|
5204
|
+
@hparam_search_spaces = args[:hparam_search_spaces] if args.key?(:hparam_search_spaces)
|
5205
|
+
@hparam_trials = args[:hparam_trials] if args.key?(:hparam_trials)
|
4647
5206
|
@label_columns = args[:label_columns] if args.key?(:label_columns)
|
4648
5207
|
@labels = args[:labels] if args.key?(:labels)
|
4649
5208
|
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
4650
5209
|
@location = args[:location] if args.key?(:location)
|
4651
5210
|
@model_reference = args[:model_reference] if args.key?(:model_reference)
|
4652
5211
|
@model_type = args[:model_type] if args.key?(:model_type)
|
5212
|
+
@optimal_trial_ids = args[:optimal_trial_ids] if args.key?(:optimal_trial_ids)
|
4653
5213
|
@training_runs = args[:training_runs] if args.key?(:training_runs)
|
4654
5214
|
end
|
4655
5215
|
end
|
@@ -4902,6 +5462,45 @@ module Google
|
|
4902
5462
|
end
|
4903
5463
|
end
|
4904
5464
|
|
5465
|
+
# Principal component infos, used only for eigen decomposition based models, e.g.
|
5466
|
+
# , PCA. Ordered by explained_variance in the descending order.
|
5467
|
+
class PrincipalComponentInfo
|
5468
|
+
include Google::Apis::Core::Hashable
|
5469
|
+
|
5470
|
+
# The explained_variance is pre-ordered in the descending order to compute the
|
5471
|
+
# cumulative explained variance ratio.
|
5472
|
+
# Corresponds to the JSON property `cumulativeExplainedVarianceRatio`
|
5473
|
+
# @return [Float]
|
5474
|
+
attr_accessor :cumulative_explained_variance_ratio
|
5475
|
+
|
5476
|
+
# Explained variance by this principal component, which is simply the eigenvalue.
|
5477
|
+
# Corresponds to the JSON property `explainedVariance`
|
5478
|
+
# @return [Float]
|
5479
|
+
attr_accessor :explained_variance
|
5480
|
+
|
5481
|
+
# Explained_variance over the total explained variance.
|
5482
|
+
# Corresponds to the JSON property `explainedVarianceRatio`
|
5483
|
+
# @return [Float]
|
5484
|
+
attr_accessor :explained_variance_ratio
|
5485
|
+
|
5486
|
+
# Id of the principal component.
|
5487
|
+
# Corresponds to the JSON property `principalComponentId`
|
5488
|
+
# @return [Fixnum]
|
5489
|
+
attr_accessor :principal_component_id
|
5490
|
+
|
5491
|
+
def initialize(**args)
|
5492
|
+
update!(**args)
|
5493
|
+
end
|
5494
|
+
|
5495
|
+
# Update properties of this object
|
5496
|
+
def update!(**args)
|
5497
|
+
@cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio)
|
5498
|
+
@explained_variance = args[:explained_variance] if args.key?(:explained_variance)
|
5499
|
+
@explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio)
|
5500
|
+
@principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id)
|
5501
|
+
end
|
5502
|
+
end
|
5503
|
+
|
4905
5504
|
#
|
4906
5505
|
class ProjectList
|
4907
5506
|
include Google::Apis::Core::Hashable
|
@@ -5668,10 +6267,12 @@ module Google
|
|
5668
6267
|
# @return [Google::Apis::BigqueryV2::StandardSqlTableType]
|
5669
6268
|
attr_accessor :return_table_type
|
5670
6269
|
|
5671
|
-
# The type of a variable
|
5672
|
-
# "INT64"
|
5673
|
-
#
|
5674
|
-
#
|
6270
|
+
# The data type of a variable such as a function argument. Examples include: *
|
6271
|
+
# INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
|
6272
|
+
# arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
|
6273
|
+
# "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
|
6274
|
+
# name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
|
6275
|
+
# DATE"` ` ` ] ` `
|
5675
6276
|
# Corresponds to the JSON property `returnType`
|
5676
6277
|
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
5677
6278
|
attr_accessor :return_type
|
@@ -6060,17 +6661,21 @@ module Google
|
|
6060
6661
|
end
|
6061
6662
|
end
|
6062
6663
|
|
6063
|
-
# The type of a variable
|
6064
|
-
# "INT64"
|
6065
|
-
#
|
6066
|
-
#
|
6664
|
+
# The data type of a variable such as a function argument. Examples include: *
|
6665
|
+
# INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
|
6666
|
+
# arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
|
6667
|
+
# "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
|
6668
|
+
# name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
|
6669
|
+
# DATE"` ` ` ] ` `
|
6067
6670
|
class StandardSqlDataType
|
6068
6671
|
include Google::Apis::Core::Hashable
|
6069
6672
|
|
6070
|
-
# The type of a variable
|
6071
|
-
# "INT64"
|
6072
|
-
#
|
6073
|
-
#
|
6673
|
+
# The data type of a variable such as a function argument. Examples include: *
|
6674
|
+
# INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
|
6675
|
+
# arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
|
6676
|
+
# "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
|
6677
|
+
# name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
|
6678
|
+
# DATE"` ` ` ] ` `
|
6074
6679
|
# Corresponds to the JSON property `arrayElementType`
|
6075
6680
|
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
6076
6681
|
attr_accessor :array_element_type
|
@@ -6107,10 +6712,12 @@ module Google
|
|
6107
6712
|
# @return [String]
|
6108
6713
|
attr_accessor :name
|
6109
6714
|
|
6110
|
-
# The type of a variable
|
6111
|
-
# "INT64"
|
6112
|
-
#
|
6113
|
-
#
|
6715
|
+
# The data type of a variable such as a function argument. Examples include: *
|
6716
|
+
# INT64: ``"typeKind": "INT64"`` * ARRAY: ` "typeKind": "ARRAY", "
|
6717
|
+
# arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
|
6718
|
+
# "structType": ` "fields": [ ` "name": "x", "type": `"typeKind: "STRING"` `, ` "
|
6719
|
+
# name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typekind": "
|
6720
|
+
# DATE"` ` ` ] ` `
|
6114
6721
|
# Corresponds to the JSON property `type`
|
6115
6722
|
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
|
6116
6723
|
attr_accessor :type
|
@@ -6198,10 +6805,34 @@ module Google
|
|
6198
6805
|
end
|
6199
6806
|
end
|
6200
6807
|
|
6808
|
+
# Search space for string and enum.
|
6809
|
+
class StringHparamSearchSpace
|
6810
|
+
include Google::Apis::Core::Hashable
|
6811
|
+
|
6812
|
+
# Canididates for the string or enum parameter in lower case.
|
6813
|
+
# Corresponds to the JSON property `candidates`
|
6814
|
+
# @return [Array<String>]
|
6815
|
+
attr_accessor :candidates
|
6816
|
+
|
6817
|
+
def initialize(**args)
|
6818
|
+
update!(**args)
|
6819
|
+
end
|
6820
|
+
|
6821
|
+
# Update properties of this object
|
6822
|
+
def update!(**args)
|
6823
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
6824
|
+
end
|
6825
|
+
end
|
6826
|
+
|
6201
6827
|
#
|
6202
6828
|
class Table
|
6203
6829
|
include Google::Apis::Core::Hashable
|
6204
6830
|
|
6831
|
+
# [Output-only] Clone definition.
|
6832
|
+
# Corresponds to the JSON property `cloneDefinition`
|
6833
|
+
# @return [Google::Apis::BigqueryV2::CloneDefinition]
|
6834
|
+
attr_accessor :clone_definition
|
6835
|
+
|
6205
6836
|
# [Beta] Clustering specification for the table. Must be specified with
|
6206
6837
|
# partitioning, data in the table will be first partitioned and subsequently
|
6207
6838
|
# clustered.
|
@@ -6394,6 +7025,7 @@ module Google
|
|
6394
7025
|
|
6395
7026
|
# Update properties of this object
|
6396
7027
|
def update!(**args)
|
7028
|
+
@clone_definition = args[:clone_definition] if args.key?(:clone_definition)
|
6397
7029
|
@clustering = args[:clustering] if args.key?(:clustering)
|
6398
7030
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
6399
7031
|
@default_collation = args[:default_collation] if args.key?(:default_collation)
|
@@ -7108,6 +7740,13 @@ module Google
|
|
7108
7740
|
# @return [String]
|
7109
7741
|
attr_accessor :booster_type
|
7110
7742
|
|
7743
|
+
# Whether or not p-value test should be computed for this model. Only available
|
7744
|
+
# for linear and logistic regression models.
|
7745
|
+
# Corresponds to the JSON property `calculatePValues`
|
7746
|
+
# @return [Boolean]
|
7747
|
+
attr_accessor :calculate_p_values
|
7748
|
+
alias_method :calculate_p_values?, :calculate_p_values
|
7749
|
+
|
7111
7750
|
# If true, clean spikes and dips in the input time series.
|
7112
7751
|
# Corresponds to the JSON property `cleanSpikesAndDips`
|
7113
7752
|
# @return [Boolean]
|
@@ -7187,6 +7826,12 @@ module Google
|
|
7187
7826
|
attr_accessor :early_stop
|
7188
7827
|
alias_method :early_stop?, :early_stop
|
7189
7828
|
|
7829
|
+
# If true, enable global explanation during training.
|
7830
|
+
# Corresponds to the JSON property `enableGlobalExplain`
|
7831
|
+
# @return [Boolean]
|
7832
|
+
attr_accessor :enable_global_explain
|
7833
|
+
alias_method :enable_global_explain?, :enable_global_explain
|
7834
|
+
|
7190
7835
|
# Feedback type that specifies which algorithm to run for matrix factorization.
|
7191
7836
|
# Corresponds to the JSON property `feedbackType`
|
7192
7837
|
# @return [String]
|
@@ -7209,6 +7854,11 @@ module Google
|
|
7209
7854
|
# @return [Fixnum]
|
7210
7855
|
attr_accessor :horizon
|
7211
7856
|
|
7857
|
+
# The target evaluation metrics to optimize the hyperparameters for.
|
7858
|
+
# Corresponds to the JSON property `hparamTuningObjectives`
|
7859
|
+
# @return [Array<String>]
|
7860
|
+
attr_accessor :hparam_tuning_objectives
|
7861
|
+
|
7212
7862
|
# Include drift when fitting an ARIMA model.
|
7213
7863
|
# Corresponds to the JSON property `includeDrift`
|
7214
7864
|
# @return [Boolean]
|
@@ -7225,6 +7875,11 @@ module Google
|
|
7225
7875
|
# @return [Array<String>]
|
7226
7876
|
attr_accessor :input_label_columns
|
7227
7877
|
|
7878
|
+
# Number of integral steps for the integrated gradients explain method.
|
7879
|
+
# Corresponds to the JSON property `integratedGradientsNumSteps`
|
7880
|
+
# @return [Fixnum]
|
7881
|
+
attr_accessor :integrated_gradients_num_steps
|
7882
|
+
|
7228
7883
|
# Item column specified for matrix factorization models.
|
7229
7884
|
# Corresponds to the JSON property `itemColumn`
|
7230
7885
|
# @return [String]
|
@@ -7278,6 +7933,11 @@ module Google
|
|
7278
7933
|
# @return [Fixnum]
|
7279
7934
|
attr_accessor :max_iterations
|
7280
7935
|
|
7936
|
+
# Maximum number of trials to run in parallel.
|
7937
|
+
# Corresponds to the JSON property `maxParallelTrials`
|
7938
|
+
# @return [Fixnum]
|
7939
|
+
attr_accessor :max_parallel_trials
|
7940
|
+
|
7281
7941
|
# Maximum depth of a tree for boosted tree models.
|
7282
7942
|
# Corresponds to the JSON property `maxTreeDepth`
|
7283
7943
|
# @return [Fixnum]
|
@@ -7326,6 +7986,11 @@ module Google
|
|
7326
7986
|
# @return [Fixnum]
|
7327
7987
|
attr_accessor :num_parallel_tree
|
7328
7988
|
|
7989
|
+
# Number of trials to run this hyperparameter tuning job.
|
7990
|
+
# Corresponds to the JSON property `numTrials`
|
7991
|
+
# @return [Fixnum]
|
7992
|
+
attr_accessor :num_trials
|
7993
|
+
|
7329
7994
|
# Optimization strategy for training linear regression models.
|
7330
7995
|
# Corresponds to the JSON property `optimizationStrategy`
|
7331
7996
|
# @return [String]
|
@@ -7339,6 +8004,11 @@ module Google
|
|
7339
8004
|
attr_accessor :preserve_input_structs
|
7340
8005
|
alias_method :preserve_input_structs?, :preserve_input_structs
|
7341
8006
|
|
8007
|
+
# Number of paths for the sampled shapley explain method.
|
8008
|
+
# Corresponds to the JSON property `sampledShapleyNumPaths`
|
8009
|
+
# @return [Fixnum]
|
8010
|
+
attr_accessor :sampled_shapley_num_paths
|
8011
|
+
|
7342
8012
|
# Subsample fraction of the training data to grow tree to prevent overfitting
|
7343
8013
|
# for boosted tree models.
|
7344
8014
|
# Corresponds to the JSON property `subsample`
|
@@ -7397,6 +8067,7 @@ module Google
|
|
7397
8067
|
@auto_arima_max_order = args[:auto_arima_max_order] if args.key?(:auto_arima_max_order)
|
7398
8068
|
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
7399
8069
|
@booster_type = args[:booster_type] if args.key?(:booster_type)
|
8070
|
+
@calculate_p_values = args[:calculate_p_values] if args.key?(:calculate_p_values)
|
7400
8071
|
@clean_spikes_and_dips = args[:clean_spikes_and_dips] if args.key?(:clean_spikes_and_dips)
|
7401
8072
|
@colsample_bylevel = args[:colsample_bylevel] if args.key?(:colsample_bylevel)
|
7402
8073
|
@colsample_bynode = args[:colsample_bynode] if args.key?(:colsample_bynode)
|
@@ -7410,13 +8081,16 @@ module Google
|
|
7410
8081
|
@distance_type = args[:distance_type] if args.key?(:distance_type)
|
7411
8082
|
@dropout = args[:dropout] if args.key?(:dropout)
|
7412
8083
|
@early_stop = args[:early_stop] if args.key?(:early_stop)
|
8084
|
+
@enable_global_explain = args[:enable_global_explain] if args.key?(:enable_global_explain)
|
7413
8085
|
@feedback_type = args[:feedback_type] if args.key?(:feedback_type)
|
7414
8086
|
@hidden_units = args[:hidden_units] if args.key?(:hidden_units)
|
7415
8087
|
@holiday_region = args[:holiday_region] if args.key?(:holiday_region)
|
7416
8088
|
@horizon = args[:horizon] if args.key?(:horizon)
|
8089
|
+
@hparam_tuning_objectives = args[:hparam_tuning_objectives] if args.key?(:hparam_tuning_objectives)
|
7417
8090
|
@include_drift = args[:include_drift] if args.key?(:include_drift)
|
7418
8091
|
@initial_learn_rate = args[:initial_learn_rate] if args.key?(:initial_learn_rate)
|
7419
8092
|
@input_label_columns = args[:input_label_columns] if args.key?(:input_label_columns)
|
8093
|
+
@integrated_gradients_num_steps = args[:integrated_gradients_num_steps] if args.key?(:integrated_gradients_num_steps)
|
7420
8094
|
@item_column = args[:item_column] if args.key?(:item_column)
|
7421
8095
|
@kmeans_initialization_column = args[:kmeans_initialization_column] if args.key?(:kmeans_initialization_column)
|
7422
8096
|
@kmeans_initialization_method = args[:kmeans_initialization_method] if args.key?(:kmeans_initialization_method)
|
@@ -7427,6 +8101,7 @@ module Google
|
|
7427
8101
|
@learn_rate_strategy = args[:learn_rate_strategy] if args.key?(:learn_rate_strategy)
|
7428
8102
|
@loss_type = args[:loss_type] if args.key?(:loss_type)
|
7429
8103
|
@max_iterations = args[:max_iterations] if args.key?(:max_iterations)
|
8104
|
+
@max_parallel_trials = args[:max_parallel_trials] if args.key?(:max_parallel_trials)
|
7430
8105
|
@max_tree_depth = args[:max_tree_depth] if args.key?(:max_tree_depth)
|
7431
8106
|
@min_relative_progress = args[:min_relative_progress] if args.key?(:min_relative_progress)
|
7432
8107
|
@min_split_loss = args[:min_split_loss] if args.key?(:min_split_loss)
|
@@ -7436,8 +8111,10 @@ module Google
|
|
7436
8111
|
@num_clusters = args[:num_clusters] if args.key?(:num_clusters)
|
7437
8112
|
@num_factors = args[:num_factors] if args.key?(:num_factors)
|
7438
8113
|
@num_parallel_tree = args[:num_parallel_tree] if args.key?(:num_parallel_tree)
|
8114
|
+
@num_trials = args[:num_trials] if args.key?(:num_trials)
|
7439
8115
|
@optimization_strategy = args[:optimization_strategy] if args.key?(:optimization_strategy)
|
7440
8116
|
@preserve_input_structs = args[:preserve_input_structs] if args.key?(:preserve_input_structs)
|
8117
|
+
@sampled_shapley_num_paths = args[:sampled_shapley_num_paths] if args.key?(:sampled_shapley_num_paths)
|
7441
8118
|
@subsample = args[:subsample] if args.key?(:subsample)
|
7442
8119
|
@time_series_data_column = args[:time_series_data_column] if args.key?(:time_series_data_column)
|
7443
8120
|
@time_series_id_column = args[:time_series_id_column] if args.key?(:time_series_id_column)
|
@@ -7454,6 +8131,12 @@ module Google
|
|
7454
8131
|
class TrainingRun
|
7455
8132
|
include Google::Apis::Core::Hashable
|
7456
8133
|
|
8134
|
+
# Global explanation contains the explanation of top features on the class level.
|
8135
|
+
# Applies to classification models only.
|
8136
|
+
# Corresponds to the JSON property `classLevelGlobalExplanations`
|
8137
|
+
# @return [Array<Google::Apis::BigqueryV2::GlobalExplanation>]
|
8138
|
+
attr_accessor :class_level_global_explanations
|
8139
|
+
|
7457
8140
|
# Data split result. This contains references to the training and evaluation
|
7458
8141
|
# data tables that were used to train the model.
|
7459
8142
|
# Corresponds to the JSON property `dataSplitResult`
|
@@ -7467,6 +8150,11 @@ module Google
|
|
7467
8150
|
# @return [Google::Apis::BigqueryV2::EvaluationMetrics]
|
7468
8151
|
attr_accessor :evaluation_metrics
|
7469
8152
|
|
8153
|
+
# Global explanations containing the top most important features after training.
|
8154
|
+
# Corresponds to the JSON property `modelLevelGlobalExplanation`
|
8155
|
+
# @return [Google::Apis::BigqueryV2::GlobalExplanation]
|
8156
|
+
attr_accessor :model_level_global_explanation
|
8157
|
+
|
7470
8158
|
# Output of each iteration run, results.size() <= max_iterations.
|
7471
8159
|
# Corresponds to the JSON property `results`
|
7472
8160
|
# @return [Array<Google::Apis::BigqueryV2::IterationResult>]
|
@@ -7488,8 +8176,10 @@ module Google
|
|
7488
8176
|
|
7489
8177
|
# Update properties of this object
|
7490
8178
|
def update!(**args)
|
8179
|
+
@class_level_global_explanations = args[:class_level_global_explanations] if args.key?(:class_level_global_explanations)
|
7491
8180
|
@data_split_result = args[:data_split_result] if args.key?(:data_split_result)
|
7492
8181
|
@evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
|
8182
|
+
@model_level_global_explanation = args[:model_level_global_explanation] if args.key?(:model_level_global_explanation)
|
7493
8183
|
@results = args[:results] if args.key?(:results)
|
7494
8184
|
@start_time = args[:start_time] if args.key?(:start_time)
|
7495
8185
|
@training_options = args[:training_options] if args.key?(:training_options)
|