google-cloud-automl 0.7.1 → 1.0.0

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