google-cloud-automl-v1beta1 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1beta1.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +488 -488
- data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +100 -100
- data/lib/google/cloud/automl/v1beta1/automl/paths.rb +25 -25
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +78 -78
- data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +100 -100
- data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +13 -13
- data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1beta1/classification.rb +43 -43
- data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +12 -12
- data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +49 -49
- data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +65 -65
- data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +23 -23
- data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/detection.rb +32 -32
- data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1beta1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +85 -85
- data/proto_docs/google/cloud/automl/v1beta1/model.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/operations.rb +56 -56
- data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +41 -41
- data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +4 -4
- data/proto_docs/google/cloud/automl/v1beta1/regression.rb +7 -7
- data/proto_docs/google/cloud/automl/v1beta1/service.rb +167 -167
- data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +9 -9
- data/proto_docs/google/cloud/automl/v1beta1/tables.rb +47 -47
- data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +4 -4
- data/proto_docs/google/cloud/automl/v1beta1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +15 -15
- data/proto_docs/google/cloud/automl/v1beta1/translation.rb +16 -16
- data/proto_docs/google/cloud/automl/v1beta1/video.rb +8 -8
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +2 -2
@@ -35,10 +35,10 @@ module Google
|
|
35
35
|
# @param location [String]
|
36
36
|
# @param model [String]
|
37
37
|
#
|
38
|
-
# @return [String]
|
38
|
+
# @return [::String]
|
39
39
|
def model_path project:, location:, model:
|
40
|
-
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
-
raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
42
|
|
43
43
|
"projects/#{project}/locations/#{location}/models/#{model}"
|
44
44
|
end
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
# - pattern: "shelves/{shelf}"
|
129
129
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
130
|
# @!attribute [rw] type
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# The resource type. It must be in the format of
|
133
133
|
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
134
|
# singular and must not include version numbers.
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
141
|
# characters allowed for the `resource_type_kind` is 100.
|
142
142
|
# @!attribute [rw] pattern
|
143
|
-
# @return [Array
|
143
|
+
# @return [::Array<::String>]
|
144
144
|
# Optional. The relative resource name pattern associated with this resource
|
145
145
|
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
146
|
#
|
@@ -161,11 +161,11 @@ module Google
|
|
161
161
|
# the same component name (e.g. "project") refers to IDs of the same
|
162
162
|
# type of resource.
|
163
163
|
# @!attribute [rw] name_field
|
164
|
-
# @return [String]
|
164
|
+
# @return [::String]
|
165
165
|
# Optional. The field on the resource that designates the resource name
|
166
166
|
# field. If omitted, this is assumed to be "name".
|
167
167
|
# @!attribute [rw] history
|
168
|
-
# @return [Google::Api::ResourceDescriptor::History]
|
168
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
169
169
|
# Optional. The historical or future-looking state of the resource pattern.
|
170
170
|
#
|
171
171
|
# Example:
|
@@ -182,19 +182,19 @@ module Google
|
|
182
182
|
# };
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
|
-
# @return [String]
|
185
|
+
# @return [::String]
|
186
186
|
# The plural name used in the resource name, such as 'projects' for
|
187
187
|
# the name of 'projects/\\{project}'. It is the same concept of the `plural`
|
188
188
|
# field in k8s CRD spec
|
189
189
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
190
190
|
# @!attribute [rw] singular
|
191
|
-
# @return [String]
|
191
|
+
# @return [::String]
|
192
192
|
# The same concept of the `singular` field in k8s CRD spec
|
193
193
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
194
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
195
195
|
class ResourceDescriptor
|
196
|
-
include Google::Protobuf::MessageExts
|
197
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
198
|
|
199
199
|
# A description of the historical or future-looking state of the
|
200
200
|
# resource pattern.
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
# Defines a proto annotation that describes a string field that refers to
|
217
217
|
# an API resource.
|
218
218
|
# @!attribute [rw] type
|
219
|
-
# @return [String]
|
219
|
+
# @return [::String]
|
220
220
|
# The resource type that the annotated field references.
|
221
221
|
#
|
222
222
|
# Example:
|
@@ -227,7 +227,7 @@ module Google
|
|
227
227
|
# }];
|
228
228
|
# }
|
229
229
|
# @!attribute [rw] child_type
|
230
|
-
# @return [String]
|
230
|
+
# @return [::String]
|
231
231
|
# The resource type of a child collection that the annotated field
|
232
232
|
# references. This is useful for annotating the `parent` field that
|
233
233
|
# doesn't have a fixed resource type.
|
@@ -240,8 +240,8 @@ module Google
|
|
240
240
|
# };
|
241
241
|
# }
|
242
242
|
class ResourceReference
|
243
|
-
include Google::Protobuf::MessageExts
|
244
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
245
|
end
|
246
246
|
end
|
247
247
|
end
|
@@ -23,46 +23,46 @@ module Google
|
|
23
23
|
module V1beta1
|
24
24
|
# Contains annotation information that is relevant to AutoML.
|
25
25
|
# @!attribute [rw] translation
|
26
|
-
# @return [Google::Cloud::AutoML::V1beta1::TranslationAnnotation]
|
26
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TranslationAnnotation]
|
27
27
|
# Annotation details for translation.
|
28
28
|
# @!attribute [rw] classification
|
29
|
-
# @return [Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
|
29
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
|
30
30
|
# Annotation details for content or image classification.
|
31
31
|
# @!attribute [rw] image_object_detection
|
32
|
-
# @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionAnnotation]
|
32
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ImageObjectDetectionAnnotation]
|
33
33
|
# Annotation details for image object detection.
|
34
34
|
# @!attribute [rw] video_classification
|
35
|
-
# @return [Google::Cloud::AutoML::V1beta1::VideoClassificationAnnotation]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1beta1::VideoClassificationAnnotation]
|
36
36
|
# Annotation details for video classification.
|
37
37
|
# Returned for Video Classification predictions.
|
38
38
|
# @!attribute [rw] video_object_tracking
|
39
|
-
# @return [Google::Cloud::AutoML::V1beta1::VideoObjectTrackingAnnotation]
|
39
|
+
# @return [::Google::Cloud::AutoML::V1beta1::VideoObjectTrackingAnnotation]
|
40
40
|
# Annotation details for video object tracking.
|
41
41
|
# @!attribute [rw] text_extraction
|
42
|
-
# @return [Google::Cloud::AutoML::V1beta1::TextExtractionAnnotation]
|
42
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TextExtractionAnnotation]
|
43
43
|
# Annotation details for text extraction.
|
44
44
|
# @!attribute [rw] text_sentiment
|
45
|
-
# @return [Google::Cloud::AutoML::V1beta1::TextSentimentAnnotation]
|
45
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TextSentimentAnnotation]
|
46
46
|
# Annotation details for text sentiment.
|
47
47
|
# @!attribute [rw] tables
|
48
|
-
# @return [Google::Cloud::AutoML::V1beta1::TablesAnnotation]
|
48
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TablesAnnotation]
|
49
49
|
# Annotation details for Tables.
|
50
50
|
# @!attribute [rw] annotation_spec_id
|
51
|
-
# @return [String]
|
51
|
+
# @return [::String]
|
52
52
|
# Output only . The resource ID of the annotation spec that
|
53
53
|
# this annotation pertains to. The annotation spec comes from either an
|
54
54
|
# ancestor dataset, or the dataset that was used to train the model in use.
|
55
55
|
# @!attribute [rw] display_name
|
56
|
-
# @return [String]
|
56
|
+
# @return [::String]
|
57
57
|
# Output only. The value of
|
58
|
-
# {Google::Cloud::AutoML::V1beta1::AnnotationSpec#display_name display_name}
|
58
|
+
# {::Google::Cloud::AutoML::V1beta1::AnnotationSpec#display_name display_name}
|
59
59
|
# when the model was trained. Because this field returns a value at model
|
60
60
|
# training time, for different models trained using the same dataset, the
|
61
61
|
# returned value could be different as model owner could update the
|
62
62
|
# `display_name` between any two model training.
|
63
63
|
class AnnotationPayload
|
64
|
-
include Google::Protobuf::MessageExts
|
65
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
@@ -23,22 +23,22 @@ module Google
|
|
23
23
|
module V1beta1
|
24
24
|
# A definition of an annotation spec.
|
25
25
|
# @!attribute [rw] name
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# Output only. Resource name of the annotation spec.
|
28
28
|
# Form:
|
29
29
|
#
|
30
30
|
# 'projects/\\{project_id}/locations/\\{location_id}/datasets/\\{dataset_id}/annotationSpecs/\\{annotation_spec_id}'
|
31
31
|
# @!attribute [rw] display_name
|
32
|
-
# @return [String]
|
32
|
+
# @return [::String]
|
33
33
|
# Required. The name of the annotation spec to show in the interface. The name can be
|
34
34
|
# up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
|
35
35
|
# @!attribute [rw] example_count
|
36
|
-
# @return [Integer]
|
36
|
+
# @return [::Integer]
|
37
37
|
# Output only. The number of examples in the parent dataset
|
38
38
|
# labeled by the annotation spec.
|
39
39
|
class AnnotationSpec
|
40
|
-
include Google::Protobuf::MessageExts
|
41
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -23,20 +23,20 @@ module Google
|
|
23
23
|
module V1beta1
|
24
24
|
# Contains annotation details specific to classification.
|
25
25
|
# @!attribute [rw] score
|
26
|
-
# @return [Float]
|
26
|
+
# @return [::Float]
|
27
27
|
# Output only. A confidence estimate between 0.0 and 1.0. A higher value
|
28
28
|
# means greater confidence that the annotation is positive. If a user
|
29
29
|
# approves an annotation as negative or positive, the score value remains
|
30
30
|
# unchanged. If a user creates an annotation, the score is 0 for negative or
|
31
31
|
# 1 for positive.
|
32
32
|
class ClassificationAnnotation
|
33
|
-
include Google::Protobuf::MessageExts
|
34
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
35
|
end
|
36
36
|
|
37
37
|
# Contains annotation details specific to video classification.
|
38
38
|
# @!attribute [rw] type
|
39
|
-
# @return [String]
|
39
|
+
# @return [::String]
|
40
40
|
# Output only. Expresses the type of video classification. Possible values:
|
41
41
|
#
|
42
42
|
# * `segment` - Classification done on a specified by user
|
@@ -61,38 +61,38 @@ module Google
|
|
61
61
|
# the quality of it depends on training data, but there are no
|
62
62
|
# metrics provided to describe that quality.
|
63
63
|
# @!attribute [rw] classification_annotation
|
64
|
-
# @return [Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
|
64
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
|
65
65
|
# Output only . The classification details of this annotation.
|
66
66
|
# @!attribute [rw] time_segment
|
67
|
-
# @return [Google::Cloud::AutoML::V1beta1::TimeSegment]
|
67
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TimeSegment]
|
68
68
|
# Output only . The time segment of the video to which the
|
69
69
|
# annotation applies.
|
70
70
|
class VideoClassificationAnnotation
|
71
|
-
include Google::Protobuf::MessageExts
|
72
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
73
|
end
|
74
74
|
|
75
75
|
# Model evaluation metrics for classification problems.
|
76
76
|
# Note: For Video Classification this metrics only describe quality of the
|
77
77
|
# Video Classification predictions of "segment_classification" type.
|
78
78
|
# @!attribute [rw] au_prc
|
79
|
-
# @return [Float]
|
79
|
+
# @return [::Float]
|
80
80
|
# Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
|
81
81
|
# for the overall evaluation.
|
82
82
|
# @!attribute [rw] base_au_prc
|
83
|
-
# @return [Float]
|
83
|
+
# @return [::Float]
|
84
84
|
# Output only. The Area Under Precision-Recall Curve metric based on priors.
|
85
85
|
# Micro-averaged for the overall evaluation.
|
86
86
|
# Deprecated.
|
87
87
|
# @!attribute [rw] au_roc
|
88
|
-
# @return [Float]
|
88
|
+
# @return [::Float]
|
89
89
|
# Output only. The Area Under Receiver Operating Characteristic curve metric.
|
90
90
|
# Micro-averaged for the overall evaluation.
|
91
91
|
# @!attribute [rw] log_loss
|
92
|
-
# @return [Float]
|
92
|
+
# @return [::Float]
|
93
93
|
# Output only. The Log Loss metric.
|
94
94
|
# @!attribute [rw] confidence_metrics_entry
|
95
|
-
# @return [Array
|
95
|
+
# @return [::Array<::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry>]
|
96
96
|
# Output only. Metrics for each confidence_threshold in
|
97
97
|
# 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
|
98
98
|
# position_threshold = INT32_MAX_VALUE.
|
@@ -101,90 +101,90 @@ module Google
|
|
101
101
|
# additional values of position_threshold, but from these no aggregated
|
102
102
|
# metrics are computed.
|
103
103
|
# @!attribute [rw] confusion_matrix
|
104
|
-
# @return [Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix]
|
104
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix]
|
105
105
|
# Output only. Confusion matrix of the evaluation.
|
106
106
|
# Only set for MULTICLASS classification problems where number
|
107
107
|
# of labels is no more than 10.
|
108
108
|
# Only set for model level evaluation, not for evaluation per label.
|
109
109
|
# @!attribute [rw] annotation_spec_id
|
110
|
-
# @return [Array
|
110
|
+
# @return [::Array<::String>]
|
111
111
|
# Output only. The annotation spec ids used for this evaluation.
|
112
112
|
class ClassificationEvaluationMetrics
|
113
|
-
include Google::Protobuf::MessageExts
|
114
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
include ::Google::Protobuf::MessageExts
|
114
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
115
115
|
|
116
116
|
# Metrics for a single confidence threshold.
|
117
117
|
# @!attribute [rw] confidence_threshold
|
118
|
-
# @return [Float]
|
118
|
+
# @return [::Float]
|
119
119
|
# Output only. Metrics are computed with an assumption that the model
|
120
120
|
# never returns predictions with score lower than this value.
|
121
121
|
# @!attribute [rw] position_threshold
|
122
|
-
# @return [Integer]
|
122
|
+
# @return [::Integer]
|
123
123
|
# Output only. Metrics are computed with an assumption that the model
|
124
124
|
# always returns at most this many predictions (ordered by their score,
|
125
125
|
# descendingly), but they all still need to meet the confidence_threshold.
|
126
126
|
# @!attribute [rw] recall
|
127
|
-
# @return [Float]
|
127
|
+
# @return [::Float]
|
128
128
|
# Output only. Recall (True Positive Rate) for the given confidence
|
129
129
|
# threshold.
|
130
130
|
# @!attribute [rw] precision
|
131
|
-
# @return [Float]
|
131
|
+
# @return [::Float]
|
132
132
|
# Output only. Precision for the given confidence threshold.
|
133
133
|
# @!attribute [rw] false_positive_rate
|
134
|
-
# @return [Float]
|
134
|
+
# @return [::Float]
|
135
135
|
# Output only. False Positive Rate for the given confidence threshold.
|
136
136
|
# @!attribute [rw] f1_score
|
137
|
-
# @return [Float]
|
137
|
+
# @return [::Float]
|
138
138
|
# Output only. The harmonic mean of recall and precision.
|
139
139
|
# @!attribute [rw] recall_at1
|
140
|
-
# @return [Float]
|
140
|
+
# @return [::Float]
|
141
141
|
# Output only. The Recall (True Positive Rate) when only considering the
|
142
142
|
# label that has the highest prediction score and not below the confidence
|
143
143
|
# threshold for each example.
|
144
144
|
# @!attribute [rw] precision_at1
|
145
|
-
# @return [Float]
|
145
|
+
# @return [::Float]
|
146
146
|
# Output only. The precision when only considering the label that has the
|
147
147
|
# highest prediction score and not below the confidence threshold for each
|
148
148
|
# example.
|
149
149
|
# @!attribute [rw] false_positive_rate_at1
|
150
|
-
# @return [Float]
|
150
|
+
# @return [::Float]
|
151
151
|
# Output only. The False Positive Rate when only considering the label that
|
152
152
|
# has the highest prediction score and not below the confidence threshold
|
153
153
|
# for each example.
|
154
154
|
# @!attribute [rw] f1_score_at1
|
155
|
-
# @return [Float]
|
156
|
-
# Output only. The harmonic mean of {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1} and {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
155
|
+
# @return [::Float]
|
156
|
+
# Output only. The harmonic mean of {::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#recall_at1 recall_at1} and {::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry#precision_at1 precision_at1}.
|
157
157
|
# @!attribute [rw] true_positive_count
|
158
|
-
# @return [Integer]
|
158
|
+
# @return [::Integer]
|
159
159
|
# Output only. The number of model created labels that match a ground truth
|
160
160
|
# label.
|
161
161
|
# @!attribute [rw] false_positive_count
|
162
|
-
# @return [Integer]
|
162
|
+
# @return [::Integer]
|
163
163
|
# Output only. The number of model created labels that do not match a
|
164
164
|
# ground truth label.
|
165
165
|
# @!attribute [rw] false_negative_count
|
166
|
-
# @return [Integer]
|
166
|
+
# @return [::Integer]
|
167
167
|
# Output only. The number of ground truth labels that are not matched
|
168
168
|
# by a model created label.
|
169
169
|
# @!attribute [rw] true_negative_count
|
170
|
-
# @return [Integer]
|
170
|
+
# @return [::Integer]
|
171
171
|
# Output only. The number of labels that were not created by the model,
|
172
172
|
# but if they would, they would not match a ground truth label.
|
173
173
|
class ConfidenceMetricsEntry
|
174
|
-
include Google::Protobuf::MessageExts
|
175
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
176
|
end
|
177
177
|
|
178
178
|
# Confusion matrix of the model running the classification.
|
179
179
|
# @!attribute [rw] annotation_spec_id
|
180
|
-
# @return [Array
|
180
|
+
# @return [::Array<::String>]
|
181
181
|
# Output only. IDs of the annotation specs used in the confusion matrix.
|
182
182
|
# For Tables CLASSIFICATION
|
183
183
|
#
|
184
184
|
# [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]
|
185
185
|
# only list of [annotation_spec_display_name-s][] is populated.
|
186
186
|
# @!attribute [rw] display_name
|
187
|
-
# @return [Array
|
187
|
+
# @return [::Array<::String>]
|
188
188
|
# Output only. Display name of the annotation specs used in the confusion
|
189
189
|
# matrix, as they were at the moment of the evaluation. For Tables
|
190
190
|
# CLASSIFICATION
|
@@ -193,26 +193,26 @@ module Google
|
|
193
193
|
# distinct values of the target column at the moment of the model
|
194
194
|
# evaluation are populated here.
|
195
195
|
# @!attribute [rw] row
|
196
|
-
# @return [Array
|
196
|
+
# @return [::Array<::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>]
|
197
197
|
# Output only. Rows in the confusion matrix. The number of rows is equal to
|
198
198
|
# the size of `annotation_spec_id`.
|
199
199
|
# `row[i].example_count[j]` is the number of examples that have ground
|
200
200
|
# truth of the `annotation_spec_id[i]` and are predicted as
|
201
201
|
# `annotation_spec_id[j]` by the model being evaluated.
|
202
202
|
class ConfusionMatrix
|
203
|
-
include Google::Protobuf::MessageExts
|
204
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
203
|
+
include ::Google::Protobuf::MessageExts
|
204
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
205
|
|
206
206
|
# Output only. A row in the confusion matrix.
|
207
207
|
# @!attribute [rw] example_count
|
208
|
-
# @return [Array
|
208
|
+
# @return [::Array<::Integer>]
|
209
209
|
# Output only. Value of the specific cell in the confusion matrix.
|
210
210
|
# The number of values each row has (i.e. the length of the row) is equal
|
211
211
|
# to the length of the `annotation_spec_id` field or, if that one is not
|
212
|
-
# populated, length of the {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
|
212
|
+
# populated, length of the {::Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
|
213
213
|
class Row
|
214
|
-
include Google::Protobuf::MessageExts
|
215
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
214
|
+
include ::Google::Protobuf::MessageExts
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
216
|
end
|
217
217
|
end
|
218
218
|
end
|
@@ -26,49 +26,49 @@ module Google
|
|
26
26
|
# Used by:
|
27
27
|
# * Tables
|
28
28
|
# @!attribute [rw] name
|
29
|
-
# @return [String]
|
29
|
+
# @return [::String]
|
30
30
|
# Output only. The resource name of the column specs.
|
31
31
|
# Form:
|
32
32
|
#
|
33
33
|
# `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`
|
34
34
|
# @!attribute [rw] data_type
|
35
|
-
# @return [Google::Cloud::AutoML::V1beta1::DataType]
|
35
|
+
# @return [::Google::Cloud::AutoML::V1beta1::DataType]
|
36
36
|
# The data type of elements stored in the column.
|
37
37
|
# @!attribute [rw] display_name
|
38
|
-
# @return [String]
|
38
|
+
# @return [::String]
|
39
39
|
# Output only. The name of the column to show in the interface. The name can
|
40
40
|
# be up to 100 characters long and can consist only of ASCII Latin letters
|
41
41
|
# A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and
|
42
42
|
# must start with a letter or a digit.
|
43
43
|
# @!attribute [rw] data_stats
|
44
|
-
# @return [Google::Cloud::AutoML::V1beta1::DataStats]
|
44
|
+
# @return [::Google::Cloud::AutoML::V1beta1::DataStats]
|
45
45
|
# Output only. Stats of the series of values in the column.
|
46
46
|
# This field may be stale, see the ancestor's
|
47
47
|
# Dataset.tables_dataset_metadata.stats_update_time field
|
48
48
|
# for the timestamp at which these stats were last updated.
|
49
49
|
# @!attribute [rw] top_correlated_columns
|
50
|
-
# @return [Array
|
50
|
+
# @return [::Array<::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn>]
|
51
51
|
# Deprecated.
|
52
52
|
# @!attribute [rw] etag
|
53
|
-
# @return [String]
|
53
|
+
# @return [::String]
|
54
54
|
# Used to perform consistent read-modify-write updates. If not set, a blind
|
55
55
|
# "overwrite" update happens.
|
56
56
|
class ColumnSpec
|
57
|
-
include Google::Protobuf::MessageExts
|
58
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
59
|
|
60
60
|
# Identifies the table's column, and its correlation with the column this
|
61
61
|
# ColumnSpec describes.
|
62
62
|
# @!attribute [rw] column_spec_id
|
63
|
-
# @return [String]
|
63
|
+
# @return [::String]
|
64
64
|
# The column_spec_id of the correlated column, which belongs to the same
|
65
65
|
# table as the in-context column.
|
66
66
|
# @!attribute [rw] correlation_stats
|
67
|
-
# @return [Google::Cloud::AutoML::V1beta1::CorrelationStats]
|
67
|
+
# @return [::Google::Cloud::AutoML::V1beta1::CorrelationStats]
|
68
68
|
# Correlation between this and the in-context column.
|
69
69
|
class CorrelatedColumn
|
70
|
-
include Google::Protobuf::MessageExts
|
71
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|