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,118 @@
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
+ # Indicated the type of data that can be stored in a structured data entity
25
+ # (e.g. a table).
26
+ # @!attribute [rw] list_element_type
27
+ # @return [Google::Cloud::AutoML::V1beta1::DataType]
28
+ # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::ARRAY ARRAY},
29
+ # then `list_element_type` is the type of the elements.
30
+ # @!attribute [rw] struct_type
31
+ # @return [Google::Cloud::AutoML::V1beta1::StructType]
32
+ # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::STRUCT STRUCT}, then `struct_type`
33
+ # provides type information for the struct's fields.
34
+ # @!attribute [rw] time_format
35
+ # @return [String]
36
+ # If {Google::Cloud::AutoML::V1beta1::DataType#type_code type_code} == {Google::Cloud::AutoML::V1beta1::TypeCode::TIMESTAMP TIMESTAMP}
37
+ # then `time_format` provides the format in which that time field is
38
+ # expressed. The time_format must either be one of:
39
+ # * `UNIX_SECONDS`
40
+ # * `UNIX_MILLISECONDS`
41
+ # * `UNIX_MICROSECONDS`
42
+ # * `UNIX_NANOSECONDS`
43
+ # (for respectively number of seconds, milliseconds, microseconds and
44
+ # nanoseconds since start of the Unix epoch);
45
+ # or be written in `strftime` syntax. If time_format is not set, then the
46
+ # default format as described on the type_code is used.
47
+ # @!attribute [rw] type_code
48
+ # @return [Google::Cloud::AutoML::V1beta1::TypeCode]
49
+ # Required. The {Google::Cloud::AutoML::V1beta1::TypeCode TypeCode} for this type.
50
+ # @!attribute [rw] nullable
51
+ # @return [Boolean]
52
+ # If true, this DataType can also be `NULL`. In .CSV files `NULL` value is
53
+ # expressed as an empty string.
54
+ class DataType
55
+ include Google::Protobuf::MessageExts
56
+ extend Google::Protobuf::MessageExts::ClassMethods
57
+ end
58
+
59
+ # `StructType` defines the DataType-s of a {Google::Cloud::AutoML::V1beta1::TypeCode::STRUCT STRUCT} type.
60
+ # @!attribute [rw] fields
61
+ # @return [Google::Protobuf::Map{String => Google::Cloud::AutoML::V1beta1::DataType}]
62
+ # Unordered map of struct field names to their data types.
63
+ # Fields cannot be added or removed via Update. Their names and
64
+ # data types are still mutable.
65
+ class StructType
66
+ include Google::Protobuf::MessageExts
67
+ extend Google::Protobuf::MessageExts::ClassMethods
68
+
69
+ # @!attribute [rw] key
70
+ # @return [String]
71
+ # @!attribute [rw] value
72
+ # @return [Google::Cloud::AutoML::V1beta1::DataType]
73
+ class FieldsEntry
74
+ include Google::Protobuf::MessageExts
75
+ extend Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+ end
78
+
79
+ # `TypeCode` is used as a part of
80
+ # {Google::Cloud::AutoML::V1beta1::DataType DataType}.
81
+ module TypeCode
82
+ # Not specified. Should not be used.
83
+ TYPE_CODE_UNSPECIFIED = 0
84
+
85
+ # Encoded as `number`, or the strings `"NaN"`, `"Infinity"`, or
86
+ # `"-Infinity"`.
87
+ FLOAT64 = 3
88
+
89
+ # Must be between 0AD and 9999AD. Encoded as `string` according to
90
+ # {Google::Cloud::AutoML::V1beta1::DataType#time_format time_format}, or, if
91
+ # that format is not set, then in RFC 3339 `date-time` format, where
92
+ # `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z).
93
+ TIMESTAMP = 4
94
+
95
+ # Encoded as `string`.
96
+ STRING = 6
97
+
98
+ # Encoded as `list`, where the list elements are represented according to
99
+ #
100
+ # {Google::Cloud::AutoML::V1beta1::DataType#list_element_type list_element_type}.
101
+ ARRAY = 8
102
+
103
+ # Encoded as `struct`, where field values are represented according to
104
+ # {Google::Cloud::AutoML::V1beta1::DataType#struct_type struct_type}.
105
+ STRUCT = 9
106
+
107
+ # Values of this type are not further understood by AutoML,
108
+ # e.g. AutoML is unable to tell the order of values (as it could with
109
+ # FLOAT64), or is unable to say if one value contains another (as it
110
+ # could with STRING).
111
+ # Encoded as `string` (bytes should be base64-encoded, as described in RFC
112
+ # 4648, section 4).
113
+ CATEGORY = 10
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,84 @@
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 workspace for solving a single, particular machine learning (ML) problem.
25
+ # A workspace contains examples that may be annotated.
26
+ # @!attribute [rw] translation_dataset_metadata
27
+ # @return [Google::Cloud::AutoML::V1beta1::TranslationDatasetMetadata]
28
+ # Metadata for a dataset used for translation.
29
+ # @!attribute [rw] image_classification_dataset_metadata
30
+ # @return [Google::Cloud::AutoML::V1beta1::ImageClassificationDatasetMetadata]
31
+ # Metadata for a dataset used for image classification.
32
+ # @!attribute [rw] text_classification_dataset_metadata
33
+ # @return [Google::Cloud::AutoML::V1beta1::TextClassificationDatasetMetadata]
34
+ # Metadata for a dataset used for text classification.
35
+ # @!attribute [rw] image_object_detection_dataset_metadata
36
+ # @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionDatasetMetadata]
37
+ # Metadata for a dataset used for image object detection.
38
+ # @!attribute [rw] video_classification_dataset_metadata
39
+ # @return [Google::Cloud::AutoML::V1beta1::VideoClassificationDatasetMetadata]
40
+ # Metadata for a dataset used for video classification.
41
+ # @!attribute [rw] video_object_tracking_dataset_metadata
42
+ # @return [Google::Cloud::AutoML::V1beta1::VideoObjectTrackingDatasetMetadata]
43
+ # Metadata for a dataset used for video object tracking.
44
+ # @!attribute [rw] text_extraction_dataset_metadata
45
+ # @return [Google::Cloud::AutoML::V1beta1::TextExtractionDatasetMetadata]
46
+ # Metadata for a dataset used for text extraction.
47
+ # @!attribute [rw] text_sentiment_dataset_metadata
48
+ # @return [Google::Cloud::AutoML::V1beta1::TextSentimentDatasetMetadata]
49
+ # Metadata for a dataset used for text sentiment.
50
+ # @!attribute [rw] tables_dataset_metadata
51
+ # @return [Google::Cloud::AutoML::V1beta1::TablesDatasetMetadata]
52
+ # Metadata for a dataset used for Tables.
53
+ # @!attribute [rw] name
54
+ # @return [String]
55
+ # Output only. The resource name of the dataset.
56
+ # Form: `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}`
57
+ # @!attribute [rw] display_name
58
+ # @return [String]
59
+ # Required. The name of the dataset to show in the interface. The name can be
60
+ # up to 32 characters long and can consist only of ASCII Latin letters A-Z
61
+ # and a-z, underscores
62
+ # (_), and ASCII digits 0-9.
63
+ # @!attribute [rw] description
64
+ # @return [String]
65
+ # User-provided description of the dataset. The description can be up to
66
+ # 25000 characters long.
67
+ # @!attribute [rw] example_count
68
+ # @return [Integer]
69
+ # Output only. The number of examples in the dataset.
70
+ # @!attribute [rw] create_time
71
+ # @return [Google::Protobuf::Timestamp]
72
+ # Output only. Timestamp when this dataset was created.
73
+ # @!attribute [rw] etag
74
+ # @return [String]
75
+ # Used to perform consistent read-modify-write updates. If not set, a blind
76
+ # "overwrite" update happens.
77
+ class Dataset
78
+ include Google::Protobuf::MessageExts
79
+ extend Google::Protobuf::MessageExts::ClassMethods
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,152 @@
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
+ # Annotation details for image object detection.
25
+ # @!attribute [rw] bounding_box
26
+ # @return [Google::Cloud::AutoML::V1beta1::BoundingPoly]
27
+ # Output only. The rectangle representing the object location.
28
+ # @!attribute [rw] score
29
+ # @return [Float]
30
+ # Output only. The confidence that this annotation is positive for the parent example,
31
+ # value in [0, 1], higher means higher positivity confidence.
32
+ class ImageObjectDetectionAnnotation
33
+ include Google::Protobuf::MessageExts
34
+ extend Google::Protobuf::MessageExts::ClassMethods
35
+ end
36
+
37
+ # Annotation details for video object tracking.
38
+ # @!attribute [rw] instance_id
39
+ # @return [String]
40
+ # Optional. The instance of the object, expressed as a positive integer. Used to tell
41
+ # apart objects of the same type (i.e. AnnotationSpec) when multiple are
42
+ # present on a single example.
43
+ # NOTE: Instance ID prediction quality is not a part of model evaluation and
44
+ # is done as best effort. Especially in cases when an entity goes
45
+ # off-screen for a longer time (minutes), when it comes back it may be given
46
+ # a new instance ID.
47
+ # @!attribute [rw] time_offset
48
+ # @return [Google::Protobuf::Duration]
49
+ # Required. A time (frame) of a video to which this annotation pertains.
50
+ # Represented as the duration since the video's start.
51
+ # @!attribute [rw] bounding_box
52
+ # @return [Google::Cloud::AutoML::V1beta1::BoundingPoly]
53
+ # Required. The rectangle representing the object location on the frame (i.e.
54
+ # at the time_offset of the video).
55
+ # @!attribute [rw] score
56
+ # @return [Float]
57
+ # Output only. The confidence that this annotation is positive for the video at
58
+ # the time_offset, value in [0, 1], higher means higher positivity
59
+ # confidence. For annotations created by the user the score is 1. When
60
+ # user approves an annotation, the original float score is kept (and not
61
+ # changed to 1).
62
+ class VideoObjectTrackingAnnotation
63
+ include Google::Protobuf::MessageExts
64
+ extend Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # Bounding box matching model metrics for a single intersection-over-union
68
+ # threshold and multiple label match confidence thresholds.
69
+ # @!attribute [rw] iou_threshold
70
+ # @return [Float]
71
+ # Output only. The intersection-over-union threshold value used to compute
72
+ # this metrics entry.
73
+ # @!attribute [rw] mean_average_precision
74
+ # @return [Float]
75
+ # Output only. The mean average precision, most often close to au_prc.
76
+ # @!attribute [rw] confidence_metrics_entries
77
+ # @return [Array<Google::Cloud::AutoML::V1beta1::BoundingBoxMetricsEntry::ConfidenceMetricsEntry>]
78
+ # Output only. Metrics for each label-match confidence_threshold from
79
+ # 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99. Precision-recall curve is
80
+ # derived from them.
81
+ class BoundingBoxMetricsEntry
82
+ include Google::Protobuf::MessageExts
83
+ extend Google::Protobuf::MessageExts::ClassMethods
84
+
85
+ # Metrics for a single confidence threshold.
86
+ # @!attribute [rw] confidence_threshold
87
+ # @return [Float]
88
+ # Output only. The confidence threshold value used to compute the metrics.
89
+ # @!attribute [rw] recall
90
+ # @return [Float]
91
+ # Output only. Recall under the given confidence threshold.
92
+ # @!attribute [rw] precision
93
+ # @return [Float]
94
+ # Output only. Precision under the given confidence threshold.
95
+ # @!attribute [rw] f1_score
96
+ # @return [Float]
97
+ # Output only. The harmonic mean of recall and precision.
98
+ class ConfidenceMetricsEntry
99
+ include Google::Protobuf::MessageExts
100
+ extend Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+ end
103
+
104
+ # Model evaluation metrics for image object detection problems.
105
+ # Evaluates prediction quality of labeled bounding boxes.
106
+ # @!attribute [rw] evaluated_bounding_box_count
107
+ # @return [Integer]
108
+ # Output only. The total number of bounding boxes (i.e. summed over all
109
+ # images) the ground truth used to create this evaluation had.
110
+ # @!attribute [rw] bounding_box_metrics_entries
111
+ # @return [Array<Google::Cloud::AutoML::V1beta1::BoundingBoxMetricsEntry>]
112
+ # Output only. The bounding boxes match metrics for each
113
+ # Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
114
+ # and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
115
+ # pair.
116
+ # @!attribute [rw] bounding_box_mean_average_precision
117
+ # @return [Float]
118
+ # Output only. The single metric for bounding boxes evaluation:
119
+ # the mean_average_precision averaged over all bounding_box_metrics_entries.
120
+ class ImageObjectDetectionEvaluationMetrics
121
+ include Google::Protobuf::MessageExts
122
+ extend Google::Protobuf::MessageExts::ClassMethods
123
+ end
124
+
125
+ # Model evaluation metrics for video object tracking problems.
126
+ # Evaluates prediction quality of both labeled bounding boxes and labeled
127
+ # tracks (i.e. series of bounding boxes sharing same label and instance ID).
128
+ # @!attribute [rw] evaluated_frame_count
129
+ # @return [Integer]
130
+ # Output only. The number of video frames used to create this evaluation.
131
+ # @!attribute [rw] evaluated_bounding_box_count
132
+ # @return [Integer]
133
+ # Output only. The total number of bounding boxes (i.e. summed over all
134
+ # frames) the ground truth used to create this evaluation had.
135
+ # @!attribute [rw] bounding_box_metrics_entries
136
+ # @return [Array<Google::Cloud::AutoML::V1beta1::BoundingBoxMetricsEntry>]
137
+ # Output only. The bounding boxes match metrics for each
138
+ # Intersection-over-union threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
139
+ # and each label confidence threshold 0.05,0.10,...,0.95,0.96,0.97,0.98,0.99
140
+ # pair.
141
+ # @!attribute [rw] bounding_box_mean_average_precision
142
+ # @return [Float]
143
+ # Output only. The single metric for bounding boxes evaluation:
144
+ # the mean_average_precision averaged over all bounding_box_metrics_entries.
145
+ class VideoObjectTrackingEvaluationMetrics
146
+ include Google::Protobuf::MessageExts
147
+ extend Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+ end
150
+ end
151
+ end
152
+ end
@@ -0,0 +1,53 @@
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 vertex represents a 2D point in the image.
25
+ # The normalized vertex coordinates are between 0 to 1 fractions relative to
26
+ # the original plane (image, video). E.g. if the plane (e.g. whole image) would
27
+ # have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
28
+ # be at the position (1, 6) on that plane.
29
+ # @!attribute [rw] x
30
+ # @return [Float]
31
+ # Required. Horizontal coordinate.
32
+ # @!attribute [rw] y
33
+ # @return [Float]
34
+ # Required. Vertical coordinate.
35
+ class NormalizedVertex
36
+ include Google::Protobuf::MessageExts
37
+ extend Google::Protobuf::MessageExts::ClassMethods
38
+ end
39
+
40
+ # A bounding polygon of a detected object on a plane.
41
+ # On output both vertices and normalized_vertices are provided.
42
+ # The polygon is formed by connecting vertices in the order they are listed.
43
+ # @!attribute [rw] normalized_vertices
44
+ # @return [Array<Google::Cloud::AutoML::V1beta1::NormalizedVertex>]
45
+ # Output only . The bounding polygon normalized vertices.
46
+ class BoundingPoly
47
+ include Google::Protobuf::MessageExts
48
+ extend Google::Protobuf::MessageExts::ClassMethods
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,205 @@
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 that is specific to image classification.
25
+ # @!attribute [rw] classification_type
26
+ # @return [Google::Cloud::AutoML::V1beta1::ClassificationType]
27
+ # Required. Type of the classification problem.
28
+ class ImageClassificationDatasetMetadata
29
+ include Google::Protobuf::MessageExts
30
+ extend Google::Protobuf::MessageExts::ClassMethods
31
+ end
32
+
33
+ # Dataset metadata specific to image object detection.
34
+ class ImageObjectDetectionDatasetMetadata
35
+ include Google::Protobuf::MessageExts
36
+ extend Google::Protobuf::MessageExts::ClassMethods
37
+ end
38
+
39
+ # Model metadata for image classification.
40
+ # @!attribute [rw] base_model_id
41
+ # @return [String]
42
+ # Optional. The ID of the `base` model. If it is specified, the new model
43
+ # will be created based on the `base` model. Otherwise, the new model will be
44
+ # created from scratch. The `base` model must be in the same
45
+ # `project` and `location` as the new model to create, and have the same
46
+ # `model_type`.
47
+ # @!attribute [rw] train_budget
48
+ # @return [Integer]
49
+ # Required. The train budget of creating this model, expressed in hours. The
50
+ # actual `train_cost` will be equal or less than this value.
51
+ # @!attribute [rw] train_cost
52
+ # @return [Integer]
53
+ # Output only. The actual train cost of creating this model, expressed in
54
+ # hours. If this model is created from a `base` model, the train cost used
55
+ # to create the `base` model are not included.
56
+ # @!attribute [rw] stop_reason
57
+ # @return [String]
58
+ # Output only. The reason that this create model operation stopped,
59
+ # e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
60
+ # @!attribute [rw] model_type
61
+ # @return [String]
62
+ # Optional. Type of the model. The available values are:
63
+ # * `cloud` - Model to be used via prediction calls to AutoML API.
64
+ # This is the default value.
65
+ # * `mobile-low-latency-1` - A model that, in addition to providing
66
+ # prediction via AutoML API, can also be exported (see
67
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
68
+ # with TensorFlow afterwards. Expected to have low latency, but
69
+ # may have lower prediction quality than other models.
70
+ # * `mobile-versatile-1` - A model that, in addition to providing
71
+ # prediction via AutoML API, can also be exported (see
72
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
73
+ # with TensorFlow afterwards.
74
+ # * `mobile-high-accuracy-1` - A model that, in addition to providing
75
+ # prediction via AutoML API, can also be exported (see
76
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
77
+ # with TensorFlow afterwards. Expected to have a higher
78
+ # latency, but should also have a higher prediction quality
79
+ # than other models.
80
+ # * `mobile-core-ml-low-latency-1` - A model that, in addition to providing
81
+ # prediction via AutoML API, can also be exported (see
82
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with Core
83
+ # ML afterwards. Expected to have low latency, but may have
84
+ # lower prediction quality than other models.
85
+ # * `mobile-core-ml-versatile-1` - A model that, in addition to providing
86
+ # prediction via AutoML API, can also be exported (see
87
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with Core
88
+ # ML afterwards.
89
+ # * `mobile-core-ml-high-accuracy-1` - A model that, in addition to
90
+ # providing prediction via AutoML API, can also be exported
91
+ # (see {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile device with
92
+ # Core ML afterwards. Expected to have a higher latency, but
93
+ # should also have a higher prediction quality than other
94
+ # models.
95
+ # @!attribute [rw] node_qps
96
+ # @return [Float]
97
+ # Output only. An approximate number of online prediction QPS that can
98
+ # be supported by this model per each node on which it is deployed.
99
+ # @!attribute [rw] node_count
100
+ # @return [Integer]
101
+ # Output only. The number of nodes this model is deployed on. A node is an
102
+ # abstraction of a machine resource, which can handle online prediction QPS
103
+ # as given in the node_qps field.
104
+ class ImageClassificationModelMetadata
105
+ include Google::Protobuf::MessageExts
106
+ extend Google::Protobuf::MessageExts::ClassMethods
107
+ end
108
+
109
+ # Model metadata specific to image object detection.
110
+ # @!attribute [rw] model_type
111
+ # @return [String]
112
+ # Optional. Type of the model. The available values are:
113
+ # * `cloud-high-accuracy-1` - (default) A model to be used via prediction
114
+ # calls to AutoML API. Expected to have a higher latency, but
115
+ # should also have a higher prediction quality than other
116
+ # models.
117
+ # * `cloud-low-latency-1` - A model to be used via prediction
118
+ # calls to AutoML API. Expected to have low latency, but may
119
+ # have lower prediction quality than other models.
120
+ # * `mobile-low-latency-1` - A model that, in addition to providing
121
+ # prediction via AutoML API, can also be exported (see
122
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
123
+ # with TensorFlow afterwards. Expected to have low latency, but
124
+ # may have lower prediction quality than other models.
125
+ # * `mobile-versatile-1` - A model that, in addition to providing
126
+ # prediction via AutoML API, can also be exported (see
127
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
128
+ # with TensorFlow afterwards.
129
+ # * `mobile-high-accuracy-1` - A model that, in addition to providing
130
+ # prediction via AutoML API, can also be exported (see
131
+ # {Google::Cloud::AutoML::V1beta1::AutoML::Client#export_model AutoMl.ExportModel}) and used on a mobile or edge device
132
+ # with TensorFlow afterwards. Expected to have a higher
133
+ # latency, but should also have a higher prediction quality
134
+ # than other models.
135
+ # @!attribute [rw] node_count
136
+ # @return [Integer]
137
+ # Output only. The number of nodes this model is deployed on. A node is an
138
+ # abstraction of a machine resource, which can handle online prediction QPS
139
+ # as given in the qps_per_node field.
140
+ # @!attribute [rw] node_qps
141
+ # @return [Float]
142
+ # Output only. An approximate number of online prediction QPS that can
143
+ # be supported by this model per each node on which it is deployed.
144
+ # @!attribute [rw] stop_reason
145
+ # @return [String]
146
+ # Output only. The reason that this create model operation stopped,
147
+ # e.g. `BUDGET_REACHED`, `MODEL_CONVERGED`.
148
+ # @!attribute [rw] train_budget_milli_node_hours
149
+ # @return [Integer]
150
+ # The train budget of creating this model, expressed in milli node
151
+ # hours i.e. 1,000 value in this field means 1 node hour. The actual
152
+ # `train_cost` will be equal or less than this value. If further model
153
+ # training ceases to provide any improvements, it will stop without using
154
+ # full budget and the stop_reason will be `MODEL_CONVERGED`.
155
+ # Note, node_hour = actual_hour * number_of_nodes_invovled.
156
+ # For model type `cloud-high-accuracy-1`(default) and `cloud-low-latency-1`,
157
+ # the train budget must be between 20,000 and 900,000 milli node hours,
158
+ # inclusive. The default value is 216, 000 which represents one day in
159
+ # wall time.
160
+ # For model type `mobile-low-latency-1`, `mobile-versatile-1`,
161
+ # `mobile-high-accuracy-1`, `mobile-core-ml-low-latency-1`,
162
+ # `mobile-core-ml-versatile-1`, `mobile-core-ml-high-accuracy-1`, the train
163
+ # budget must be between 1,000 and 100,000 milli node hours, inclusive.
164
+ # The default value is 24, 000 which represents one day in wall time.
165
+ # @!attribute [rw] train_cost_milli_node_hours
166
+ # @return [Integer]
167
+ # Output only. The actual train cost of creating this model, expressed in
168
+ # milli node hours, i.e. 1,000 value in this field means 1 node hour.
169
+ # Guaranteed to not exceed the train budget.
170
+ class ImageObjectDetectionModelMetadata
171
+ include Google::Protobuf::MessageExts
172
+ extend Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+
175
+ # Model deployment metadata specific to Image Classification.
176
+ # @!attribute [rw] node_count
177
+ # @return [Integer]
178
+ # Input only. The number of nodes to deploy the model on. A node is an
179
+ # abstraction of a machine resource, which can handle online prediction QPS
180
+ # as given in the model's
181
+ #
182
+ # {Google::Cloud::AutoML::V1beta1::ImageClassificationModelMetadata#node_qps node_qps}.
183
+ # Must be between 1 and 100, inclusive on both ends.
184
+ class ImageClassificationModelDeploymentMetadata
185
+ include Google::Protobuf::MessageExts
186
+ extend Google::Protobuf::MessageExts::ClassMethods
187
+ end
188
+
189
+ # Model deployment metadata specific to Image Object Detection.
190
+ # @!attribute [rw] node_count
191
+ # @return [Integer]
192
+ # Input only. The number of nodes to deploy the model on. A node is an
193
+ # abstraction of a machine resource, which can handle online prediction QPS
194
+ # as given in the model's
195
+ #
196
+ # [qps_per_node][google.cloud.automl.v1beta1.ImageObjectDetectionModelMetadata.qps_per_node].
197
+ # Must be between 1 and 100, inclusive on both ends.
198
+ class ImageObjectDetectionModelDeploymentMetadata
199
+ include Google::Protobuf::MessageExts
200
+ extend Google::Protobuf::MessageExts::ClassMethods
201
+ end
202
+ end
203
+ end
204
+ end
205
+ end