google-cloud-automl-v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +71 -0
  6. data/lib/google-cloud-automl-v1beta1.rb +21 -0
  7. data/lib/google/cloud/automl/v1beta1.rb +36 -0
  8. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +41 -0
  9. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +26 -0
  10. data/lib/google/cloud/automl/v1beta1/automl.rb +63 -0
  11. data/lib/google/cloud/automl/v1beta1/automl/client.rb +2368 -0
  12. data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +51 -0
  13. data/lib/google/cloud/automl/v1beta1/automl/operations.rb +564 -0
  14. data/lib/google/cloud/automl/v1beta1/automl/paths.rb +174 -0
  15. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +73 -0
  16. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +36 -0
  17. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +95 -0
  18. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +84 -0
  19. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +43 -0
  20. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +46 -0
  21. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +59 -0
  22. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +28 -0
  23. data/lib/google/cloud/automl/v1beta1/image_pb.rb +57 -0
  24. data/lib/google/cloud/automl/v1beta1/io_pb.rb +87 -0
  25. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +45 -0
  26. data/lib/google/cloud/automl/v1beta1/model_pb.rb +52 -0
  27. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +97 -0
  28. data/lib/google/cloud/automl/v1beta1/prediction_service.rb +53 -0
  29. data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +586 -0
  30. data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +51 -0
  31. data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +564 -0
  32. data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +52 -0
  33. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +50 -0
  34. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +79 -0
  35. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -0
  36. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +27 -0
  37. data/lib/google/cloud/automl/v1beta1/service_pb.rb +187 -0
  38. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +163 -0
  39. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +31 -0
  40. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +65 -0
  41. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -0
  42. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +39 -0
  43. data/lib/google/cloud/automl/v1beta1/text_pb.rb +41 -0
  44. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +25 -0
  45. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +36 -0
  46. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +41 -0
  47. data/lib/google/cloud/automl/v1beta1/version.rb +28 -0
  48. data/lib/google/cloud/automl/v1beta1/video_pb.rb +32 -0
  49. data/lib/google/cloud/common_resources_pb.rb +15 -0
  50. data/proto_docs/README.md +4 -0
  51. data/proto_docs/google/api/field_behavior.rb +59 -0
  52. data/proto_docs/google/api/resource.rb +247 -0
  53. data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +70 -0
  54. data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +46 -0
  55. data/proto_docs/google/cloud/automl/v1beta1/classification.rb +234 -0
  56. data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +77 -0
  57. data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +227 -0
  58. data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +227 -0
  59. data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +118 -0
  60. data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +84 -0
  61. data/proto_docs/google/cloud/automl/v1beta1/detection.rb +152 -0
  62. data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +53 -0
  63. data/proto_docs/google/cloud/automl/v1beta1/image.rb +205 -0
  64. data/proto_docs/google/cloud/automl/v1beta1/io.rb +1168 -0
  65. data/proto_docs/google/cloud/automl/v1beta1/model.rb +95 -0
  66. data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +103 -0
  67. data/proto_docs/google/cloud/automl/v1beta1/operations.rb +206 -0
  68. data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +238 -0
  69. data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +38 -0
  70. data/proto_docs/google/cloud/automl/v1beta1/regression.rb +48 -0
  71. data/proto_docs/google/cloud/automl/v1beta1/service.rb +447 -0
  72. data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +75 -0
  73. data/proto_docs/google/cloud/automl/v1beta1/tables.rb +300 -0
  74. data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +40 -0
  75. data/proto_docs/google/cloud/automl/v1beta1/text.rb +76 -0
  76. data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +73 -0
  77. data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +44 -0
  78. data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +86 -0
  79. data/proto_docs/google/cloud/automl/v1beta1/translation.rb +79 -0
  80. data/proto_docs/google/cloud/automl/v1beta1/video.rb +51 -0
  81. data/proto_docs/google/longrunning/operations.rb +150 -0
  82. data/proto_docs/google/protobuf/any.rb +138 -0
  83. data/proto_docs/google/protobuf/duration.rb +98 -0
  84. data/proto_docs/google/protobuf/empty.rb +36 -0
  85. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  86. data/proto_docs/google/protobuf/struct.rb +96 -0
  87. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  88. data/proto_docs/google/rpc/status.rb +46 -0
  89. metadata +245 -0
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AutoML
23
+ module V1beta1
24
+ # A specification of a relational table.
25
+ # The table's schema is represented via its child column specs. It is
26
+ # pre-populated as part of ImportData by schema inference algorithm, the
27
+ # version of which is a required parameter of ImportData InputConfig.
28
+ # Note: While working with a table, at times the schema may be
29
+ # inconsistent with the data in the table (e.g. string in a FLOAT64 column).
30
+ # The consistency validation is done upon creation of a model.
31
+ # Used by:
32
+ # * Tables
33
+ # @!attribute [rw] name
34
+ # @return [String]
35
+ # Output only. The resource name of the table spec.
36
+ # Form:
37
+ #
38
+ # `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
39
+ # @!attribute [rw] time_column_spec_id
40
+ # @return [String]
41
+ # column_spec_id of the time column. Only used if the parent dataset's
42
+ # ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
43
+ # and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
44
+ # those in between to VALIDATE.
45
+ # Required type: TIMESTAMP.
46
+ # If both this column and ml_use_column are not set, then ML use of all rows
47
+ # will be assigned by AutoML. NOTE: Updates of this field will instantly
48
+ # affect any other users concurrently working with the dataset.
49
+ # @!attribute [rw] row_count
50
+ # @return [Integer]
51
+ # Output only. The number of rows (i.e. examples) in the table.
52
+ # @!attribute [rw] valid_row_count
53
+ # @return [Integer]
54
+ # Output only. The number of valid rows (i.e. without values that don't match
55
+ # DataType-s of their columns).
56
+ # @!attribute [rw] column_count
57
+ # @return [Integer]
58
+ # Output only. The number of columns of the table. That is, the number of
59
+ # child ColumnSpec-s.
60
+ # @!attribute [rw] input_configs
61
+ # @return [Array<Google::Cloud::AutoML::V1beta1::InputConfig>]
62
+ # Output only. Input configs via which data currently residing in the table
63
+ # had been imported.
64
+ # @!attribute [rw] etag
65
+ # @return [String]
66
+ # Used to perform consistent read-modify-write updates. If not set, a blind
67
+ # "overwrite" update happens.
68
+ class TableSpec
69
+ include Google::Protobuf::MessageExts
70
+ extend Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,300 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AutoML
23
+ module V1beta1
24
+ # Metadata for a dataset used for AutoML Tables.
25
+ # @!attribute [rw] primary_table_spec_id
26
+ # @return [String]
27
+ # Output only. The table_spec_id of the primary table of this dataset.
28
+ # @!attribute [rw] target_column_spec_id
29
+ # @return [String]
30
+ # column_spec_id of the primary table's column that should be used as the
31
+ # training & prediction target.
32
+ # This column must be non-nullable and have one of following data types
33
+ # (otherwise model creation will error):
34
+ #
35
+ # * CATEGORY
36
+ #
37
+ # * FLOAT64
38
+ #
39
+ # If the type is CATEGORY , only up to
40
+ # 100 unique values may exist in that column across all rows.
41
+ #
42
+ # NOTE: Updates of this field will instantly affect any other users
43
+ # concurrently working with the dataset.
44
+ # @!attribute [rw] weight_column_spec_id
45
+ # @return [String]
46
+ # column_spec_id of the primary table's column that should be used as the
47
+ # weight column, i.e. the higher the value the more important the row will be
48
+ # during model training.
49
+ # Required type: FLOAT64.
50
+ # Allowed values: 0 to 10000, inclusive on both ends; 0 means the row is
51
+ # ignored for training.
52
+ # If not set all rows are assumed to have equal weight of 1.
53
+ # NOTE: Updates of this field will instantly affect any other users
54
+ # concurrently working with the dataset.
55
+ # @!attribute [rw] ml_use_column_spec_id
56
+ # @return [String]
57
+ # column_spec_id of the primary table column which specifies a possible ML
58
+ # use of the row, i.e. the column will be used to split the rows into TRAIN,
59
+ # VALIDATE and TEST sets.
60
+ # Required type: STRING.
61
+ # This column, if set, must either have all of `TRAIN`, `VALIDATE`, `TEST`
62
+ # among its values, or only have `TEST`, `UNASSIGNED` values. In the latter
63
+ # case the rows with `UNASSIGNED` value will be assigned by AutoML. Note
64
+ # that if a given ml use distribution makes it impossible to create a "good"
65
+ # model, that call will error describing the issue.
66
+ # If both this column_spec_id and primary table's time_column_spec_id are not
67
+ # set, then all rows are treated as `UNASSIGNED`.
68
+ # NOTE: Updates of this field will instantly affect any other users
69
+ # concurrently working with the dataset.
70
+ # @!attribute [rw] target_column_correlations
71
+ # @return [Google::Protobuf::Map{String => Google::Cloud::AutoML::V1beta1::CorrelationStats}]
72
+ # Output only. Correlations between
73
+ #
74
+ # {Google::Cloud::AutoML::V1beta1::TablesDatasetMetadata#target_column_spec_id TablesDatasetMetadata.target_column_spec_id},
75
+ # and other columns of the
76
+ #
77
+ # {Google::Cloud::AutoML::V1beta1::TablesDatasetMetadata#primary_table_spec_id TablesDatasetMetadataprimary_table}.
78
+ # Only set if the target column is set. Mapping from other column spec id to
79
+ # its CorrelationStats with the target column.
80
+ # This field may be stale, see the stats_update_time field for
81
+ # for the timestamp at which these stats were last updated.
82
+ # @!attribute [rw] stats_update_time
83
+ # @return [Google::Protobuf::Timestamp]
84
+ # Output only. The most recent timestamp when target_column_correlations
85
+ # field and all descendant ColumnSpec.data_stats and
86
+ # ColumnSpec.top_correlated_columns fields were last (re-)generated. Any
87
+ # changes that happened to the dataset afterwards are not reflected in these
88
+ # fields values. The regeneration happens in the background on a best effort
89
+ # basis.
90
+ class TablesDatasetMetadata
91
+ include Google::Protobuf::MessageExts
92
+ extend Google::Protobuf::MessageExts::ClassMethods
93
+
94
+ # @!attribute [rw] key
95
+ # @return [String]
96
+ # @!attribute [rw] value
97
+ # @return [Google::Cloud::AutoML::V1beta1::CorrelationStats]
98
+ class TargetColumnCorrelationsEntry
99
+ include Google::Protobuf::MessageExts
100
+ extend Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+ end
103
+
104
+ # Model metadata specific to AutoML Tables.
105
+ # @!attribute [rw] optimization_objective_recall_value
106
+ # @return [Float]
107
+ # Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
108
+ # Must be between 0 and 1, inclusive.
109
+ # @!attribute [rw] optimization_objective_precision_value
110
+ # @return [Float]
111
+ # Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
112
+ # Must be between 0 and 1, inclusive.
113
+ # @!attribute [rw] target_column_spec
114
+ # @return [Google::Cloud::AutoML::V1beta1::ColumnSpec]
115
+ # Column spec of the dataset's primary table's column the model is
116
+ # predicting. Snapshotted when model creation started.
117
+ # Only 3 fields are used:
118
+ # name - May be set on CreateModel, if it's not then the ColumnSpec
119
+ # corresponding to the current target_column_spec_id of the dataset
120
+ # the model is trained from is used.
121
+ # If neither is set, CreateModel will error.
122
+ # display_name - Output only.
123
+ # data_type - Output only.
124
+ # @!attribute [rw] input_feature_column_specs
125
+ # @return [Array<Google::Cloud::AutoML::V1beta1::ColumnSpec>]
126
+ # Column specs of the dataset's primary table's columns, on which
127
+ # the model is trained and which are used as the input for predictions.
128
+ # The
129
+ #
130
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#target_column_spec target_column}
131
+ # as well as, according to dataset's state upon model creation,
132
+ #
133
+ # {Google::Cloud::AutoML::V1beta1::TablesDatasetMetadata#weight_column_spec_id weight_column},
134
+ # and
135
+ #
136
+ # {Google::Cloud::AutoML::V1beta1::TablesDatasetMetadata#ml_use_column_spec_id ml_use_column}
137
+ # must never be included here.
138
+ #
139
+ # Only 3 fields are used:
140
+ #
141
+ # * name - May be set on CreateModel, if set only the columns specified are
142
+ # used, otherwise all primary table's columns (except the ones listed
143
+ # above) are used for the training and prediction input.
144
+ #
145
+ # * display_name - Output only.
146
+ #
147
+ # * data_type - Output only.
148
+ # @!attribute [rw] optimization_objective
149
+ # @return [String]
150
+ # Objective function the model is optimizing towards. The training process
151
+ # creates a model that maximizes/minimizes the value of the objective
152
+ # function over the validation set.
153
+ #
154
+ # The supported optimization objectives depend on the prediction type.
155
+ # If the field is not set, a default objective function is used.
156
+ #
157
+ # CLASSIFICATION_BINARY:
158
+ # "MAXIMIZE_AU_ROC" (default) - Maximize the area under the receiver
159
+ # operating characteristic (ROC) curve.
160
+ # "MINIMIZE_LOG_LOSS" - Minimize log loss.
161
+ # "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
162
+ # "MAXIMIZE_PRECISION_AT_RECALL" - Maximize precision for a specified
163
+ # recall value.
164
+ # "MAXIMIZE_RECALL_AT_PRECISION" - Maximize recall for a specified
165
+ # precision value.
166
+ #
167
+ # CLASSIFICATION_MULTI_CLASS :
168
+ # "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
169
+ #
170
+ #
171
+ # REGRESSION:
172
+ # "MINIMIZE_RMSE" (default) - Minimize root-mean-squared error (RMSE).
173
+ # "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
174
+ # "MINIMIZE_RMSLE" - Minimize root-mean-squared log error (RMSLE).
175
+ # @!attribute [rw] tables_model_column_info
176
+ # @return [Array<Google::Cloud::AutoML::V1beta1::TablesModelColumnInfo>]
177
+ # Output only. Auxiliary information for each of the
178
+ # input_feature_column_specs with respect to this particular model.
179
+ # @!attribute [rw] train_budget_milli_node_hours
180
+ # @return [Integer]
181
+ # Required. The train budget of creating this model, expressed in milli node
182
+ # hours i.e. 1,000 value in this field means 1 node hour.
183
+ #
184
+ # The training cost of the model will not exceed this budget. The final cost
185
+ # will be attempted to be close to the budget, though may end up being (even)
186
+ # noticeably smaller - at the backend's discretion. This especially may
187
+ # happen when further model training ceases to provide any improvements.
188
+ #
189
+ # If the budget is set to a value known to be insufficient to train a
190
+ # model for the given dataset, the training won't be attempted and
191
+ # will error.
192
+ #
193
+ # The train budget must be between 1,000 and 72,000 milli node hours,
194
+ # inclusive.
195
+ # @!attribute [rw] train_cost_milli_node_hours
196
+ # @return [Integer]
197
+ # Output only. The actual training cost of the model, expressed in milli
198
+ # node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed
199
+ # to not exceed the train budget.
200
+ # @!attribute [rw] disable_early_stopping
201
+ # @return [Boolean]
202
+ # Use the entire training budget. This disables the early stopping feature.
203
+ # By default, the early stopping feature is enabled, which means that AutoML
204
+ # Tables might stop training before the entire training budget has been used.
205
+ class TablesModelMetadata
206
+ include Google::Protobuf::MessageExts
207
+ extend Google::Protobuf::MessageExts::ClassMethods
208
+ end
209
+
210
+ # Contains annotation details specific to Tables.
211
+ # @!attribute [rw] score
212
+ # @return [Float]
213
+ # Output only. A confidence estimate between 0.0 and 1.0, inclusive. A higher
214
+ # value means greater confidence in the returned value.
215
+ # For
216
+ #
217
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#target_column_spec target_column_spec}
218
+ # of FLOAT64 data type the score is not populated.
219
+ # @!attribute [rw] prediction_interval
220
+ # @return [Google::Cloud::AutoML::V1beta1::DoubleRange]
221
+ # Output only. Only populated when
222
+ #
223
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#target_column_spec target_column_spec}
224
+ # has FLOAT64 data type. An interval in which the exactly correct target
225
+ # value has 95% chance to be in.
226
+ # @!attribute [rw] value
227
+ # @return [Google::Protobuf::Value]
228
+ # The predicted value of the row's
229
+ #
230
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#target_column_spec target_column}.
231
+ # The value depends on the column's DataType:
232
+ #
233
+ # * CATEGORY - the predicted (with the above confidence `score`) CATEGORY
234
+ # value.
235
+ #
236
+ # * FLOAT64 - the predicted (with above `prediction_interval`) FLOAT64 value.
237
+ # @!attribute [rw] tables_model_column_info
238
+ # @return [Array<Google::Cloud::AutoML::V1beta1::TablesModelColumnInfo>]
239
+ # Output only. Auxiliary information for each of the model's
240
+ #
241
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#input_feature_column_specs input_feature_column_specs}
242
+ # with respect to this particular prediction.
243
+ # If no other fields than
244
+ #
245
+ # {Google::Cloud::AutoML::V1beta1::TablesModelColumnInfo#column_spec_name column_spec_name}
246
+ # and
247
+ #
248
+ # {Google::Cloud::AutoML::V1beta1::TablesModelColumnInfo#column_display_name column_display_name}
249
+ # would be populated, then this whole field is not.
250
+ # @!attribute [rw] baseline_score
251
+ # @return [Float]
252
+ # Output only. Stores the prediction score for the baseline example, which
253
+ # is defined as the example with all values set to their baseline values.
254
+ # This is used as part of the Sampled Shapley explanation of the model's
255
+ # prediction. This field is populated only when feature importance is
256
+ # requested. For regression models, this holds the baseline prediction for
257
+ # the baseline example. For classification models, this holds the baseline
258
+ # prediction for the baseline example for the argmax class.
259
+ class TablesAnnotation
260
+ include Google::Protobuf::MessageExts
261
+ extend Google::Protobuf::MessageExts::ClassMethods
262
+ end
263
+
264
+ # An information specific to given column and Tables Model, in context
265
+ # of the Model and the predictions created by it.
266
+ # @!attribute [rw] column_spec_name
267
+ # @return [String]
268
+ # Output only. The name of the ColumnSpec describing the column. Not
269
+ # populated when this proto is outputted to BigQuery.
270
+ # @!attribute [rw] column_display_name
271
+ # @return [String]
272
+ # Output only. The display name of the column (same as the display_name of
273
+ # its ColumnSpec).
274
+ # @!attribute [rw] feature_importance
275
+ # @return [Float]
276
+ # Output only. When given as part of a Model (always populated):
277
+ # Measurement of how much model predictions correctness on the TEST data
278
+ # depend on values in this column. A value between 0 and 1, higher means
279
+ # higher influence. These values are normalized - for all input feature
280
+ # columns of a given model they add to 1.
281
+ #
282
+ # When given back by Predict (populated iff
283
+ # [feature_importance
284
+ # param][google.cloud.automl.v1beta1.PredictRequest.params] is set) or Batch
285
+ # Predict (populated iff
286
+ # {Google::Cloud::AutoML::V1beta1::PredictRequest#params feature_importance}
287
+ # param is set):
288
+ # Measurement of how impactful for the prediction returned for the given row
289
+ # the value in this column was. Specifically, the feature importance
290
+ # specifies the marginal contribution that the feature made to the prediction
291
+ # score compared to the baseline score. These values are computed using the
292
+ # Sampled Shapley method.
293
+ class TablesModelColumnInfo
294
+ include Google::Protobuf::MessageExts
295
+ extend Google::Protobuf::MessageExts::ClassMethods
296
+ end
297
+ end
298
+ end
299
+ end
300
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AutoML
23
+ module V1beta1
24
+ # A time period inside of an example that has a time dimension (e.g. video).
25
+ # @!attribute [rw] start_time_offset
26
+ # @return [Google::Protobuf::Duration]
27
+ # Start of the time segment (inclusive), represented as the duration since
28
+ # the example start.
29
+ # @!attribute [rw] end_time_offset
30
+ # @return [Google::Protobuf::Duration]
31
+ # End of the time segment (exclusive), represented as the duration since the
32
+ # example start.
33
+ class TimeSegment
34
+ include Google::Protobuf::MessageExts
35
+ extend Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module AutoML
23
+ module V1beta1
24
+ # Dataset metadata for classification.
25
+ # @!attribute [rw] classification_type
26
+ # @return [Google::Cloud::AutoML::V1beta1::ClassificationType]
27
+ # Required. Type of the classification problem.
28
+ class TextClassificationDatasetMetadata
29
+ include Google::Protobuf::MessageExts
30
+ extend Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Model metadata that is specific to text classification.
34
+ # @!attribute [rw] classification_type
35
+ # @return [Google::Cloud::AutoML::V1beta1::ClassificationType]
36
+ # Output only. Classification type of the dataset used to train this model.
37
+ class TextClassificationModelMetadata
38
+ include Google::Protobuf::MessageExts
39
+ extend Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+
42
+ # Dataset metadata that is specific to text extraction
43
+ class TextExtractionDatasetMetadata
44
+ include Google::Protobuf::MessageExts
45
+ extend Google::Protobuf::MessageExts::ClassMethods
46
+ end
47
+
48
+ # Model metadata that is specific to text extraction.
49
+ class TextExtractionModelMetadata
50
+ include Google::Protobuf::MessageExts
51
+ extend Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+
54
+ # Dataset metadata for text sentiment.
55
+ # @!attribute [rw] sentiment_max
56
+ # @return [Integer]
57
+ # Required. A sentiment is expressed as an integer ordinal, where higher value
58
+ # means a more positive sentiment. The range of sentiments that will be used
59
+ # is between 0 and sentiment_max (inclusive on both ends), and all the values
60
+ # in the range must be represented in the dataset before a model can be
61
+ # created.
62
+ # sentiment_max value must be between 1 and 10 (inclusive).
63
+ class TextSentimentDatasetMetadata
64
+ include Google::Protobuf::MessageExts
65
+ extend Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # Model metadata that is specific to text sentiment.
69
+ class TextSentimentModelMetadata
70
+ include Google::Protobuf::MessageExts
71
+ extend Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end