google-cloud-automl 0.6.0 → 1.0.2

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 -59
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +324 -0
  6. data/README.md +95 -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 -1906
  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 -477
  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,77 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/data_stats.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.cloud.automl.v1beta1.DataStats" do
10
- optional :distinct_value_count, :int64, 1
11
- optional :null_value_count, :int64, 2
12
- optional :valid_value_count, :int64, 9
13
- oneof :stats do
14
- optional :float64_stats, :message, 3, "google.cloud.automl.v1beta1.Float64Stats"
15
- optional :string_stats, :message, 4, "google.cloud.automl.v1beta1.StringStats"
16
- optional :timestamp_stats, :message, 5, "google.cloud.automl.v1beta1.TimestampStats"
17
- optional :array_stats, :message, 6, "google.cloud.automl.v1beta1.ArrayStats"
18
- optional :struct_stats, :message, 7, "google.cloud.automl.v1beta1.StructStats"
19
- optional :category_stats, :message, 8, "google.cloud.automl.v1beta1.CategoryStats"
20
- end
21
- end
22
- add_message "google.cloud.automl.v1beta1.Float64Stats" do
23
- optional :mean, :double, 1
24
- optional :standard_deviation, :double, 2
25
- repeated :quantiles, :double, 3
26
- repeated :histogram_buckets, :message, 4, "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket"
27
- end
28
- add_message "google.cloud.automl.v1beta1.Float64Stats.HistogramBucket" do
29
- optional :min, :double, 1
30
- optional :max, :double, 2
31
- optional :count, :int64, 3
32
- end
33
- add_message "google.cloud.automl.v1beta1.StringStats" do
34
- repeated :top_unigram_stats, :message, 1, "google.cloud.automl.v1beta1.StringStats.UnigramStats"
35
- end
36
- add_message "google.cloud.automl.v1beta1.StringStats.UnigramStats" do
37
- optional :value, :string, 1
38
- optional :count, :int64, 2
39
- end
40
- add_message "google.cloud.automl.v1beta1.TimestampStats" do
41
- map :granular_stats, :string, :message, 1, "google.cloud.automl.v1beta1.TimestampStats.GranularStats"
42
- end
43
- add_message "google.cloud.automl.v1beta1.TimestampStats.GranularStats" do
44
- map :buckets, :int32, :int64, 1
45
- end
46
- add_message "google.cloud.automl.v1beta1.ArrayStats" do
47
- optional :member_stats, :message, 2, "google.cloud.automl.v1beta1.DataStats"
48
- end
49
- add_message "google.cloud.automl.v1beta1.StructStats" do
50
- map :field_stats, :string, :message, 1, "google.cloud.automl.v1beta1.DataStats"
51
- end
52
- add_message "google.cloud.automl.v1beta1.CategoryStats" do
53
- repeated :top_category_stats, :message, 1, "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats"
54
- end
55
- add_message "google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats" do
56
- optional :value, :string, 1
57
- optional :count, :int64, 2
58
- end
59
- add_message "google.cloud.automl.v1beta1.CorrelationStats" do
60
- optional :cramers_v, :double, 1
61
- end
62
- end
63
-
64
- module Google::Cloud::AutoML::V1beta1
65
- DataStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DataStats").msgclass
66
- Float64Stats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats").msgclass
67
- Float64Stats::HistogramBucket = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Float64Stats.HistogramBucket").msgclass
68
- StringStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats").msgclass
69
- StringStats::UnigramStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StringStats.UnigramStats").msgclass
70
- TimestampStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats").msgclass
71
- TimestampStats::GranularStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TimestampStats.GranularStats").msgclass
72
- ArrayStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ArrayStats").msgclass
73
- StructStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StructStats").msgclass
74
- CategoryStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats").msgclass
75
- CategoryStats::SingleCategoryStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CategoryStats.SingleCategoryStats").msgclass
76
- CorrelationStats = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.CorrelationStats").msgclass
77
- end
@@ -1,36 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/data_types.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_message "google.cloud.automl.v1beta1.DataType" do
10
- optional :type_code, :enum, 1, "google.cloud.automl.v1beta1.TypeCode"
11
- optional :nullable, :bool, 4
12
- oneof :details do
13
- optional :list_element_type, :message, 2, "google.cloud.automl.v1beta1.DataType"
14
- optional :struct_type, :message, 3, "google.cloud.automl.v1beta1.StructType"
15
- optional :time_format, :string, 5
16
- end
17
- end
18
- add_message "google.cloud.automl.v1beta1.StructType" do
19
- map :fields, :string, :message, 1, "google.cloud.automl.v1beta1.DataType"
20
- end
21
- add_enum "google.cloud.automl.v1beta1.TypeCode" do
22
- value :TYPE_CODE_UNSPECIFIED, 0
23
- value :FLOAT64, 3
24
- value :TIMESTAMP, 4
25
- value :STRING, 6
26
- value :ARRAY, 8
27
- value :STRUCT, 9
28
- value :CATEGORY, 10
29
- end
30
- end
31
-
32
- module Google::Cloud::AutoML::V1beta1
33
- DataType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.DataType").msgclass
34
- StructType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.StructType").msgclass
35
- TypeCode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.TypeCode").enummodule
36
- end
@@ -1,39 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/dataset.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/resource_pb'
8
- require 'google/cloud/automl/v1beta1/image_pb'
9
- require 'google/cloud/automl/v1beta1/tables_pb'
10
- require 'google/cloud/automl/v1beta1/text_pb'
11
- require 'google/cloud/automl/v1beta1/translation_pb'
12
- require 'google/cloud/automl/v1beta1/video_pb'
13
- require 'google/protobuf/timestamp_pb'
14
- require 'google/api/annotations_pb'
15
- Google::Protobuf::DescriptorPool.generated_pool.build do
16
- add_message "google.cloud.automl.v1beta1.Dataset" do
17
- optional :name, :string, 1
18
- optional :display_name, :string, 2
19
- optional :description, :string, 3
20
- optional :example_count, :int32, 21
21
- optional :create_time, :message, 14, "google.protobuf.Timestamp"
22
- optional :etag, :string, 17
23
- oneof :dataset_metadata do
24
- optional :translation_dataset_metadata, :message, 23, "google.cloud.automl.v1beta1.TranslationDatasetMetadata"
25
- optional :image_classification_dataset_metadata, :message, 24, "google.cloud.automl.v1beta1.ImageClassificationDatasetMetadata"
26
- optional :text_classification_dataset_metadata, :message, 25, "google.cloud.automl.v1beta1.TextClassificationDatasetMetadata"
27
- optional :image_object_detection_dataset_metadata, :message, 26, "google.cloud.automl.v1beta1.ImageObjectDetectionDatasetMetadata"
28
- optional :video_classification_dataset_metadata, :message, 31, "google.cloud.automl.v1beta1.VideoClassificationDatasetMetadata"
29
- optional :video_object_tracking_dataset_metadata, :message, 29, "google.cloud.automl.v1beta1.VideoObjectTrackingDatasetMetadata"
30
- optional :text_extraction_dataset_metadata, :message, 28, "google.cloud.automl.v1beta1.TextExtractionDatasetMetadata"
31
- optional :text_sentiment_dataset_metadata, :message, 30, "google.cloud.automl.v1beta1.TextSentimentDatasetMetadata"
32
- optional :tables_dataset_metadata, :message, 33, "google.cloud.automl.v1beta1.TablesDatasetMetadata"
33
- end
34
- end
35
- end
36
-
37
- module Google::Cloud::AutoML::V1beta1
38
- Dataset = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.Dataset").msgclass
39
- end
@@ -1,52 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/automl/v1beta1/detection.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/cloud/automl/v1beta1/geometry_pb'
8
- require 'google/protobuf/duration_pb'
9
- require 'google/api/annotations_pb'
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation" do
12
- optional :bounding_box, :message, 1, "google.cloud.automl.v1beta1.BoundingPoly"
13
- optional :score, :float, 2
14
- end
15
- add_message "google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation" do
16
- optional :instance_id, :string, 1
17
- optional :time_offset, :message, 2, "google.protobuf.Duration"
18
- optional :bounding_box, :message, 3, "google.cloud.automl.v1beta1.BoundingPoly"
19
- optional :score, :float, 4
20
- end
21
- add_message "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry" do
22
- optional :iou_threshold, :float, 1
23
- optional :mean_average_precision, :float, 2
24
- repeated :confidence_metrics_entries, :message, 3, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry"
25
- end
26
- add_message "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry" do
27
- optional :confidence_threshold, :float, 1
28
- optional :recall, :float, 2
29
- optional :precision, :float, 3
30
- optional :f1_score, :float, 4
31
- end
32
- add_message "google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics" do
33
- optional :evaluated_bounding_box_count, :int32, 1
34
- repeated :bounding_box_metrics_entries, :message, 2, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry"
35
- optional :bounding_box_mean_average_precision, :float, 3
36
- end
37
- add_message "google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics" do
38
- optional :evaluated_frame_count, :int32, 1
39
- optional :evaluated_bounding_box_count, :int32, 2
40
- repeated :bounding_box_metrics_entries, :message, 4, "google.cloud.automl.v1beta1.BoundingBoxMetricsEntry"
41
- optional :bounding_box_mean_average_precision, :float, 6
42
- end
43
- end
44
-
45
- module Google::Cloud::AutoML::V1beta1
46
- ImageObjectDetectionAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation").msgclass
47
- VideoObjectTrackingAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoObjectTrackingAnnotation").msgclass
48
- BoundingBoxMetricsEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.BoundingBoxMetricsEntry").msgclass
49
- BoundingBoxMetricsEntry::ConfidenceMetricsEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.BoundingBoxMetricsEntry.ConfidenceMetricsEntry").msgclass
50
- ImageObjectDetectionEvaluationMetrics = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.ImageObjectDetectionEvaluationMetrics").msgclass
51
- VideoObjectTrackingEvaluationMetrics = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.automl.v1beta1.VideoObjectTrackingEvaluationMetrics").msgclass
52
- end
@@ -1,63 +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
- # Contains annotation information that is relevant to AutoML.
21
- # @!attribute [rw] translation
22
- # @return [Google::Cloud::AutoML::V1beta1::TranslationAnnotation]
23
- # Annotation details for translation.
24
- # @!attribute [rw] classification
25
- # @return [Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
26
- # Annotation details for content or image classification.
27
- # @!attribute [rw] image_object_detection
28
- # @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionAnnotation]
29
- # Annotation details for image object detection.
30
- # @!attribute [rw] video_classification
31
- # @return [Google::Cloud::AutoML::V1beta1::VideoClassificationAnnotation]
32
- # Annotation details for video classification.
33
- # Returned for Video Classification predictions.
34
- # @!attribute [rw] video_object_tracking
35
- # @return [Google::Cloud::AutoML::V1beta1::VideoObjectTrackingAnnotation]
36
- # Annotation details for video object tracking.
37
- # @!attribute [rw] text_extraction
38
- # @return [Google::Cloud::AutoML::V1beta1::TextExtractionAnnotation]
39
- # Annotation details for text extraction.
40
- # @!attribute [rw] text_sentiment
41
- # @return [Google::Cloud::AutoML::V1beta1::TextSentimentAnnotation]
42
- # Annotation details for text sentiment.
43
- # @!attribute [rw] tables
44
- # @return [Google::Cloud::AutoML::V1beta1::TablesAnnotation]
45
- # Annotation details for Tables.
46
- # @!attribute [rw] annotation_spec_id
47
- # @return [String]
48
- # Output only . The resource ID of the annotation spec that
49
- # this annotation pertains to. The annotation spec comes from either an
50
- # ancestor dataset, or the dataset that was used to train the model in use.
51
- # @!attribute [rw] display_name
52
- # @return [String]
53
- # Output only. The value of
54
- # {Google::Cloud::AutoML::V1beta1::AnnotationSpec#display_name display_name}
55
- # when the model was trained. Because this field returns a value at model
56
- # training time, for different models trained using the same dataset, the
57
- # returned value could be different as model owner could update the
58
- # `display_name` between any two model training.
59
- class AnnotationPayload; end
60
- end
61
- end
62
- end
63
- end
@@ -1,39 +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 definition of an annotation spec.
21
- # @!attribute [rw] name
22
- # @return [String]
23
- # Output only. Resource name of the annotation spec.
24
- # Form:
25
- #
26
- # 'projects/\\{project_id}/locations/\\{location_id}/datasets/\\{dataset_id}/annotationSpecs/\\{annotation_spec_id}'
27
- # @!attribute [rw] display_name
28
- # @return [String]
29
- # Required. The name of the annotation spec to show in the interface. The name can be
30
- # up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
31
- # @!attribute [rw] example_count
32
- # @return [Integer]
33
- # Output only. The number of examples in the parent dataset
34
- # labeled by the annotation spec.
35
- class AnnotationSpec; end
36
- end
37
- end
38
- end
39
- end
@@ -1,212 +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
- # Contains annotation details specific to classification.
21
- # @!attribute [rw] score
22
- # @return [Float]
23
- # Output only. A confidence estimate between 0.0 and 1.0. A higher value
24
- # means greater confidence that the annotation is positive. If a user
25
- # approves an annotation as negative or positive, the score value remains
26
- # unchanged. If a user creates an annotation, the score is 0 for negative or
27
- # 1 for positive.
28
- class ClassificationAnnotation; end
29
-
30
- # Contains annotation details specific to video classification.
31
- # @!attribute [rw] type
32
- # @return [String]
33
- # Output only. Expresses the type of video classification. Possible values:
34
- #
35
- # * `segment` - Classification done on a specified by user
36
- # time segment of a video. AnnotationSpec is answered to be present
37
- # in that time segment, if it is present in any part of it. The video
38
- # ML model evaluations are done only for this type of classification.
39
- #
40
- # * `shot`- Shot-level classification.
41
- # AutoML Video Intelligence determines the boundaries
42
- # for each camera shot in the entire segment of the video that user
43
- # specified in the request configuration. AutoML Video Intelligence
44
- # then returns labels and their confidence scores for each detected
45
- # shot, along with the start and end time of the shot.
46
- # WARNING: Model evaluation is not done for this classification type,
47
- # the quality of it depends on training data, but there are no
48
- # metrics provided to describe that quality.
49
- #
50
- # * `1s_interval` - AutoML Video Intelligence returns labels and their
51
- # confidence scores for each second of the entire segment of the video
52
- # that user specified in the request configuration.
53
- # WARNING: Model evaluation is not done for this classification type,
54
- # the quality of it depends on training data, but there are no
55
- # metrics provided to describe that quality.
56
- # @!attribute [rw] classification_annotation
57
- # @return [Google::Cloud::AutoML::V1beta1::ClassificationAnnotation]
58
- # Output only . The classification details of this annotation.
59
- # @!attribute [rw] time_segment
60
- # @return [Google::Cloud::AutoML::V1beta1::TimeSegment]
61
- # Output only . The time segment of the video to which the
62
- # annotation applies.
63
- class VideoClassificationAnnotation; end
64
-
65
- # Model evaluation metrics for classification problems.
66
- # Note: For Video Classification this metrics only describe quality of the
67
- # Video Classification predictions of "segment_classification" type.
68
- # @!attribute [rw] au_prc
69
- # @return [Float]
70
- # Output only. The Area Under Precision-Recall Curve metric. Micro-averaged
71
- # for the overall evaluation.
72
- # @!attribute [rw] base_au_prc
73
- # @return [Float]
74
- # Output only. The Area Under Precision-Recall Curve metric based on priors.
75
- # Micro-averaged for the overall evaluation.
76
- # Deprecated.
77
- # @!attribute [rw] au_roc
78
- # @return [Float]
79
- # Output only. The Area Under Receiver Operating Characteristic curve metric.
80
- # Micro-averaged for the overall evaluation.
81
- # @!attribute [rw] log_loss
82
- # @return [Float]
83
- # Output only. The Log Loss metric.
84
- # @!attribute [rw] confidence_metrics_entry
85
- # @return [Array<Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfidenceMetricsEntry>]
86
- # Output only. Metrics for each confidence_threshold in
87
- # 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and
88
- # position_threshold = INT32_MAX_VALUE.
89
- # ROC and precision-recall curves, and other aggregated metrics are derived
90
- # from them. The confidence metrics entries may also be supplied for
91
- # additional values of position_threshold, but from these no aggregated
92
- # metrics are computed.
93
- # @!attribute [rw] confusion_matrix
94
- # @return [Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix]
95
- # Output only. Confusion matrix of the evaluation.
96
- # Only set for MULTICLASS classification problems where number
97
- # of labels is no more than 10.
98
- # Only set for model level evaluation, not for evaluation per label.
99
- # @!attribute [rw] annotation_spec_id
100
- # @return [Array<String>]
101
- # Output only. The annotation spec ids used for this evaluation.
102
- class ClassificationEvaluationMetrics
103
- # Metrics for a single confidence threshold.
104
- # @!attribute [rw] confidence_threshold
105
- # @return [Float]
106
- # Output only. Metrics are computed with an assumption that the model
107
- # never returns predictions with score lower than this value.
108
- # @!attribute [rw] position_threshold
109
- # @return [Integer]
110
- # Output only. Metrics are computed with an assumption that the model
111
- # always returns at most this many predictions (ordered by their score,
112
- # descendingly), but they all still need to meet the confidence_threshold.
113
- # @!attribute [rw] recall
114
- # @return [Float]
115
- # Output only. Recall (True Positive Rate) for the given confidence
116
- # threshold.
117
- # @!attribute [rw] precision
118
- # @return [Float]
119
- # Output only. Precision for the given confidence threshold.
120
- # @!attribute [rw] false_positive_rate
121
- # @return [Float]
122
- # Output only. False Positive Rate for the given confidence threshold.
123
- # @!attribute [rw] f1_score
124
- # @return [Float]
125
- # Output only. The harmonic mean of recall and precision.
126
- # @!attribute [rw] recall_at1
127
- # @return [Float]
128
- # Output only. The Recall (True Positive Rate) when only considering the
129
- # label that has the highest prediction score and not below the confidence
130
- # threshold for each example.
131
- # @!attribute [rw] precision_at1
132
- # @return [Float]
133
- # Output only. The precision when only considering the label that has the
134
- # highest prediction score and not below the confidence threshold for each
135
- # example.
136
- # @!attribute [rw] false_positive_rate_at1
137
- # @return [Float]
138
- # Output only. The False Positive Rate when only considering the label that
139
- # has the highest prediction score and not below the confidence threshold
140
- # for each example.
141
- # @!attribute [rw] f1_score_at1
142
- # @return [Float]
143
- # 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}.
144
- # @!attribute [rw] true_positive_count
145
- # @return [Integer]
146
- # Output only. The number of model created labels that match a ground truth
147
- # label.
148
- # @!attribute [rw] false_positive_count
149
- # @return [Integer]
150
- # Output only. The number of model created labels that do not match a
151
- # ground truth label.
152
- # @!attribute [rw] false_negative_count
153
- # @return [Integer]
154
- # Output only. The number of ground truth labels that are not matched
155
- # by a model created label.
156
- # @!attribute [rw] true_negative_count
157
- # @return [Integer]
158
- # Output only. The number of labels that were not created by the model,
159
- # but if they would, they would not match a ground truth label.
160
- class ConfidenceMetricsEntry; end
161
-
162
- # Confusion matrix of the model running the classification.
163
- # @!attribute [rw] annotation_spec_id
164
- # @return [Array<String>]
165
- # Output only. IDs of the annotation specs used in the confusion matrix.
166
- # For Tables CLASSIFICATION
167
- #
168
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type}
169
- # only list of {Annotation_spec_display_name-s} is populated.
170
- # @!attribute [rw] display_name
171
- # @return [Array<String>]
172
- # Output only. Display name of the annotation specs used in the confusion
173
- # matrix, as they were at the moment of the evaluation. For Tables
174
- # CLASSIFICATION
175
- #
176
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type-s},
177
- # distinct values of the target column at the moment of the model
178
- # evaluation are populated here.
179
- # @!attribute [rw] row
180
- # @return [Array<Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix::Row>]
181
- # Output only. Rows in the confusion matrix. The number of rows is equal to
182
- # the size of `annotation_spec_id`.
183
- # `row[i].example_count[j]` is the number of examples that have ground
184
- # truth of the `annotation_spec_id[i]` and are predicted as
185
- # `annotation_spec_id[j]` by the model being evaluated.
186
- class ConfusionMatrix
187
- # Output only. A row in the confusion matrix.
188
- # @!attribute [rw] example_count
189
- # @return [Array<Integer>]
190
- # Output only. Value of the specific cell in the confusion matrix.
191
- # The number of values each row has (i.e. the length of the row) is equal
192
- # to the length of the `annotation_spec_id` field or, if that one is not
193
- # populated, length of the {Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics::ConfusionMatrix#display_name display_name} field.
194
- class Row; end
195
- end
196
- end
197
-
198
- # Type of the classification problem.
199
- module ClassificationType
200
- # An un-set value of this enum.
201
- CLASSIFICATION_TYPE_UNSPECIFIED = 0
202
-
203
- # At most one label is allowed per example.
204
- MULTICLASS = 1
205
-
206
- # Multiple labels are allowed for one example.
207
- MULTILABEL = 2
208
- end
209
- end
210
- end
211
- end
212
- end