google-cloud-automl 0.7.1 → 1.1.1

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 +56 -59
  4. data/LICENSE.md +201 -0
  5. data/MIGRATING.md +324 -0
  6. data/README.md +97 -27
  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 +83 -107
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/automl/v1beta1.rb +0 -231
  13. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +0 -34
  14. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +0 -19
  15. data/lib/google/cloud/automl/v1beta1/automl_client.rb +0 -1909
  16. data/lib/google/cloud/automl/v1beta1/automl_client_config.json +0 -146
  17. data/lib/google/cloud/automl/v1beta1/automl_client_helpers.rb +0 -109
  18. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +0 -66
  19. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +0 -29
  20. data/lib/google/cloud/automl/v1beta1/credentials.rb +0 -41
  21. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +0 -88
  22. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +0 -77
  23. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +0 -36
  24. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +0 -39
  25. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +0 -52
  26. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_payload.rb +0 -63
  27. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_spec.rb +0 -39
  28. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb +0 -212
  29. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/column_spec.rb +0 -67
  30. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb +0 -202
  31. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_stats.rb +0 -160
  32. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_types.rb +0 -99
  33. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/dataset.rb +0 -77
  34. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/detection.rb +0 -130
  35. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/geometry.rb +0 -43
  36. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/image.rb +0 -183
  37. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/io.rb +0 -1110
  38. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model.rb +0 -88
  39. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model_evaluation.rb +0 -96
  40. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/prediction_service.rb +0 -186
  41. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/ranges.rb +0 -31
  42. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/regression.rb +0 -41
  43. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/service.rb +0 -356
  44. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/table_spec.rb +0 -68
  45. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/tables.rb +0 -275
  46. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/temporal.rb +0 -33
  47. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text.rb +0 -54
  48. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_extraction.rb +0 -60
  49. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb +0 -37
  50. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_sentiment.rb +0 -76
  51. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/translation.rb +0 -63
  52. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/video.rb +0 -35
  53. data/lib/google/cloud/automl/v1beta1/doc/google/longrunning/operations.rb +0 -51
  54. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/any.rb +0 -131
  55. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/duration.rb +0 -91
  56. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/field_mask.rb +0 -222
  57. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/struct.rb +0 -74
  58. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/timestamp.rb +0 -113
  59. data/lib/google/cloud/automl/v1beta1/doc/google/rpc/status.rb +0 -39
  60. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +0 -21
  61. data/lib/google/cloud/automl/v1beta1/image_pb.rb +0 -50
  62. data/lib/google/cloud/automl/v1beta1/io_pb.rb +0 -80
  63. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +0 -38
  64. data/lib/google/cloud/automl/v1beta1/model_pb.rb +0 -45
  65. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +0 -90
  66. data/lib/google/cloud/automl/v1beta1/prediction_service_client.rb +0 -480
  67. data/lib/google/cloud/automl/v1beta1/prediction_service_client_config.json +0 -36
  68. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +0 -43
  69. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +0 -74
  70. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +0 -17
  71. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +0 -20
  72. data/lib/google/cloud/automl/v1beta1/service_pb.rb +0 -180
  73. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +0 -158
  74. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +0 -24
  75. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +0 -58
  76. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +0 -18
  77. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +0 -32
  78. data/lib/google/cloud/automl/v1beta1/text_pb.rb +0 -34
  79. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +0 -18
  80. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +0 -29
  81. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +0 -34
  82. data/lib/google/cloud/automl/v1beta1/video_pb.rb +0 -25
@@ -1,88 +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
- # API proto representing a trained machine learning model.
21
- # @!attribute [rw] translation_model_metadata
22
- # @return [Google::Cloud::AutoML::V1beta1::TranslationModelMetadata]
23
- # Metadata for translation models.
24
- # @!attribute [rw] image_classification_model_metadata
25
- # @return [Google::Cloud::AutoML::V1beta1::ImageClassificationModelMetadata]
26
- # Metadata for image classification models.
27
- # @!attribute [rw] text_classification_model_metadata
28
- # @return [Google::Cloud::AutoML::V1beta1::TextClassificationModelMetadata]
29
- # Metadata for text classification models.
30
- # @!attribute [rw] image_object_detection_model_metadata
31
- # @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelMetadata]
32
- # Metadata for image object detection models.
33
- # @!attribute [rw] video_classification_model_metadata
34
- # @return [Google::Cloud::AutoML::V1beta1::VideoClassificationModelMetadata]
35
- # Metadata for video classification models.
36
- # @!attribute [rw] video_object_tracking_model_metadata
37
- # @return [Google::Cloud::AutoML::V1beta1::VideoObjectTrackingModelMetadata]
38
- # Metadata for video object tracking models.
39
- # @!attribute [rw] text_extraction_model_metadata
40
- # @return [Google::Cloud::AutoML::V1beta1::TextExtractionModelMetadata]
41
- # Metadata for text extraction models.
42
- # @!attribute [rw] tables_model_metadata
43
- # @return [Google::Cloud::AutoML::V1beta1::TablesModelMetadata]
44
- # Metadata for Tables models.
45
- # @!attribute [rw] text_sentiment_model_metadata
46
- # @return [Google::Cloud::AutoML::V1beta1::TextSentimentModelMetadata]
47
- # Metadata for text sentiment models.
48
- # @!attribute [rw] name
49
- # @return [String]
50
- # Output only. Resource name of the model.
51
- # Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
52
- # @!attribute [rw] display_name
53
- # @return [String]
54
- # Required. The name of the model to show in the interface. The name can be
55
- # up to 32 characters long and can consist only of ASCII Latin letters A-Z
56
- # and a-z, underscores
57
- # (_), and ASCII digits 0-9. It must start with a letter.
58
- # @!attribute [rw] dataset_id
59
- # @return [String]
60
- # Required. The resource ID of the dataset used to create the model. The dataset must
61
- # come from the same ancestor project and location.
62
- # @!attribute [rw] create_time
63
- # @return [Google::Protobuf::Timestamp]
64
- # Output only. Timestamp when the model training finished and can be used for prediction.
65
- # @!attribute [rw] update_time
66
- # @return [Google::Protobuf::Timestamp]
67
- # Output only. Timestamp when this model was last updated.
68
- # @!attribute [rw] deployment_state
69
- # @return [Google::Cloud::AutoML::V1beta1::Model::DeploymentState]
70
- # Output only. Deployment state of the model. A model can only serve
71
- # prediction requests after it gets deployed.
72
- class Model
73
- # Deployment state of the model.
74
- module DeploymentState
75
- # Should not be used, an un-set enum has this value by default.
76
- DEPLOYMENT_STATE_UNSPECIFIED = 0
77
-
78
- # Model is deployed.
79
- DEPLOYED = 1
80
-
81
- # Model is not deployed.
82
- UNDEPLOYED = 2
83
- end
84
- end
85
- end
86
- end
87
- end
88
- end
@@ -1,96 +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
- # Evaluation results of a model.
21
- # @!attribute [rw] classification_evaluation_metrics
22
- # @return [Google::Cloud::AutoML::V1beta1::ClassificationEvaluationMetrics]
23
- # Model evaluation metrics for image, text, video and tables
24
- # classification.
25
- # Tables problem is considered a classification when the target column
26
- # is CATEGORY DataType.
27
- # @!attribute [rw] regression_evaluation_metrics
28
- # @return [Google::Cloud::AutoML::V1beta1::RegressionEvaluationMetrics]
29
- # Model evaluation metrics for Tables regression.
30
- # Tables problem is considered a regression when the target column
31
- # has FLOAT64 DataType.
32
- # @!attribute [rw] translation_evaluation_metrics
33
- # @return [Google::Cloud::AutoML::V1beta1::TranslationEvaluationMetrics]
34
- # Model evaluation metrics for translation.
35
- # @!attribute [rw] image_object_detection_evaluation_metrics
36
- # @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionEvaluationMetrics]
37
- # Model evaluation metrics for image object detection.
38
- # @!attribute [rw] video_object_tracking_evaluation_metrics
39
- # @return [Google::Cloud::AutoML::V1beta1::VideoObjectTrackingEvaluationMetrics]
40
- # Model evaluation metrics for video object tracking.
41
- # @!attribute [rw] text_sentiment_evaluation_metrics
42
- # @return [Google::Cloud::AutoML::V1beta1::TextSentimentEvaluationMetrics]
43
- # Evaluation metrics for text sentiment models.
44
- # @!attribute [rw] text_extraction_evaluation_metrics
45
- # @return [Google::Cloud::AutoML::V1beta1::TextExtractionEvaluationMetrics]
46
- # Evaluation metrics for text extraction models.
47
- # @!attribute [rw] name
48
- # @return [String]
49
- # Output only. Resource name of the model evaluation.
50
- # Format:
51
- #
52
- # `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
53
- # @!attribute [rw] annotation_spec_id
54
- # @return [String]
55
- # Output only. The ID of the annotation spec that the model evaluation applies to. The
56
- # The ID is empty for the overall model evaluation.
57
- # For Tables annotation specs in the dataset do not exist and this ID is
58
- # always not set, but for CLASSIFICATION
59
- #
60
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type-s}
61
- # the
62
- # {Google::Cloud::AutoML::V1beta1::ModelEvaluation#display_name display_name}
63
- # field is used.
64
- # @!attribute [rw] display_name
65
- # @return [String]
66
- # Output only. The value of
67
- # {Google::Cloud::AutoML::V1beta1::AnnotationSpec#display_name display_name} at
68
- # the moment when the model was trained. Because this field returns a value
69
- # at model training time, for different models trained from the same dataset,
70
- # the values may differ, since display names could had been changed between
71
- # the two model's trainings.
72
- # For Tables CLASSIFICATION
73
- #
74
- # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type-s}
75
- # distinct values of the target column at the moment of the model evaluation
76
- # are populated here.
77
- # The display_name is empty for the overall model evaluation.
78
- # @!attribute [rw] create_time
79
- # @return [Google::Protobuf::Timestamp]
80
- # Output only. Timestamp when this model evaluation was created.
81
- # @!attribute [rw] evaluated_example_count
82
- # @return [Integer]
83
- # Output only. The number of examples used for model evaluation, i.e. for
84
- # which ground truth from time of model creation is compared against the
85
- # predicted annotations created by the model.
86
- # For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
87
- # the total number of all examples used for evaluation.
88
- # Otherwise, this is the count of examples that according to the ground
89
- # truth were annotated by the
90
- #
91
- # {Google::Cloud::AutoML::V1beta1::ModelEvaluation#annotation_spec_id annotation_spec_id}.
92
- class ModelEvaluation; end
93
- end
94
- end
95
- end
96
- end
@@ -1,186 +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
- # Request message for {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
21
- # @!attribute [rw] name
22
- # @return [String]
23
- # Required. Name of the model requested to serve the prediction.
24
- # @!attribute [rw] payload
25
- # @return [Google::Cloud::AutoML::V1beta1::ExamplePayload]
26
- # Required. Payload to perform a prediction on. The payload must match the
27
- # problem type that the model was trained to solve.
28
- # @!attribute [rw] params
29
- # @return [Hash{String => String}]
30
- # Additional domain-specific parameters, any string must be up to 25000
31
- # characters long.
32
- #
33
- # * For Image Classification:
34
- #
35
- # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
36
- # makes predictions for an image, it will only produce results that have
37
- # at least this confidence score. The default is 0.5.
38
- #
39
- # * For Image Object Detection:
40
- # `score_threshold` - (float) When Model detects objects on the image,
41
- # it will only produce bounding boxes which have at least this
42
- # confidence score. Value in 0 to 1 range, default is 0.5.
43
- # `max_bounding_box_count` - (int64) No more than this number of bounding
44
- # boxes will be returned in the response. Default is 100, the
45
- # requested value may be limited by server.
46
- # * For Tables:
47
- # feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
48
- # should be populated in the returned TablesAnnotation.
49
- # The default is false.
50
- class PredictRequest; end
51
-
52
- # Response message for {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
53
- # @!attribute [rw] payload
54
- # @return [Array<Google::Cloud::AutoML::V1beta1::AnnotationPayload>]
55
- # Prediction result.
56
- # Translation and Text Sentiment will return precisely one payload.
57
- # @!attribute [rw] preprocessed_input
58
- # @return [Google::Cloud::AutoML::V1beta1::ExamplePayload]
59
- # The preprocessed example that AutoML actually makes prediction on.
60
- # Empty if AutoML does not preprocess the input example.
61
- # * For Text Extraction:
62
- # If the input is a .pdf file, the OCR'ed text will be provided in
63
- # {Google::Cloud::AutoML::V1beta1::Document#document_text document_text}.
64
- # @!attribute [rw] metadata
65
- # @return [Hash{String => String}]
66
- # Additional domain-specific prediction response metadata.
67
- #
68
- # * For Image Object Detection:
69
- # `max_bounding_box_count` - (int64) At most that many bounding boxes per
70
- # image could have been returned.
71
- #
72
- # * For Text Sentiment:
73
- # `sentiment_score` - (float, deprecated) A value between -1 and 1,
74
- # -1 maps to least positive sentiment, while 1 maps to the most positive
75
- # one and the higher the score, the more positive the sentiment in the
76
- # document is. Yet these values are relative to the training data, so
77
- # e.g. if all data was positive then -1 will be also positive (though
78
- # the least).
79
- # The sentiment_score shouldn't be confused with "score" or "magnitude"
80
- # from the previous Natural Language Sentiment Analysis API.
81
- class PredictResponse; end
82
-
83
- # Request message for {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
84
- # @!attribute [rw] name
85
- # @return [String]
86
- # Required. Name of the model requested to serve the batch prediction.
87
- # @!attribute [rw] input_config
88
- # @return [Google::Cloud::AutoML::V1beta1::BatchPredictInputConfig]
89
- # Required. The input configuration for batch prediction.
90
- # @!attribute [rw] output_config
91
- # @return [Google::Cloud::AutoML::V1beta1::BatchPredictOutputConfig]
92
- # Required. The Configuration specifying where output predictions should
93
- # be written.
94
- # @!attribute [rw] params
95
- # @return [Hash{String => String}]
96
- # Required. Additional domain-specific parameters for the predictions, any string must
97
- # be up to 25000 characters long.
98
- #
99
- # * For Text Classification:
100
- #
101
- # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
102
- # makes predictions for a text snippet, it will only produce results
103
- # that have at least this confidence score. The default is 0.5.
104
- #
105
- # * For Image Classification:
106
- #
107
- # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
108
- # makes predictions for an image, it will only produce results that
109
- # have at least this confidence score. The default is 0.5.
110
- #
111
- # * For Image Object Detection:
112
- #
113
- # `score_threshold` - (float) When Model detects objects on the image,
114
- # it will only produce bounding boxes which have at least this
115
- # confidence score. Value in 0 to 1 range, default is 0.5.
116
- # `max_bounding_box_count` - (int64) No more than this number of bounding
117
- # boxes will be produced per image. Default is 100, the
118
- # requested value may be limited by server.
119
- #
120
- # * For Video Classification :
121
- #
122
- # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
123
- # makes predictions for a video, it will only produce results that
124
- # have at least this confidence score. The default is 0.5.
125
- # `segment_classification` - (boolean) Set to true to request
126
- # segment-level classification. AutoML Video Intelligence returns
127
- # labels and their confidence scores for the entire segment of the
128
- # video that user specified in the request configuration.
129
- # The default is "true".
130
- # `shot_classification` - (boolean) Set to true to request shot-level
131
- # classification. AutoML Video Intelligence determines the boundaries
132
- # for each camera shot in the entire segment of the video that user
133
- # specified in the request configuration. AutoML Video Intelligence
134
- # then returns labels and their confidence scores for each detected
135
- # shot, along with the start and end time of the shot.
136
- # WARNING: Model evaluation is not done for this classification type,
137
- # the quality of it depends on training data, but there are no metrics
138
- # provided to describe that quality. The default is "false".
139
- # `1s_interval_classification` - (boolean) Set to true to request
140
- # classification for a video at one-second intervals. AutoML Video
141
- # Intelligence returns labels and their confidence scores for each
142
- # second of the entire segment of the video that user specified in the
143
- # request configuration.
144
- # WARNING: Model evaluation is not done for this classification
145
- # type, the quality of it depends on training data, but there are no
146
- # metrics provided to describe that quality. The default is
147
- # "false".
148
- #
149
- # * For Tables:
150
- #
151
- # feature_imp<span>ortan</span>ce - (boolean) Whether feature importance
152
- # should be populated in the returned TablesAnnotations. The
153
- # default is false.
154
- #
155
- # * For Video Object Tracking:
156
- #
157
- # `score_threshold` - (float) When Model detects objects on video frames,
158
- # it will only produce bounding boxes which have at least this
159
- # confidence score. Value in 0 to 1 range, default is 0.5.
160
- # `max_bounding_box_count` - (int64) No more than this number of bounding
161
- # boxes will be returned per frame. Default is 100, the requested
162
- # value may be limited by server.
163
- # `min_bounding_box_size` - (float) Only bounding boxes with shortest edge
164
- # at least that long as a relative value of video frame size will be
165
- # returned. Value in 0 to 1 range. Default is 0.
166
- class BatchPredictRequest; end
167
-
168
- # Result of the Batch Predict. This message is returned in
169
- # {Google::Longrunning::Operation#response response} of the operation returned
170
- # by the {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
171
- # @!attribute [rw] metadata
172
- # @return [Hash{String => String}]
173
- # Additional domain-specific prediction response metadata.
174
- #
175
- # * For Image Object Detection:
176
- # `max_bounding_box_count` - (int64) At most that many bounding boxes per
177
- # image could have been returned.
178
- #
179
- # * For Video Object Tracking:
180
- # `max_bounding_box_count` - (int64) At most that many bounding boxes per
181
- # frame could have been returned.
182
- class BatchPredictResult; end
183
- end
184
- end
185
- end
186
- end
@@ -1,31 +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 range between two double numbers.
21
- # @!attribute [rw] start
22
- # @return [Float]
23
- # Start of the range, inclusive.
24
- # @!attribute [rw] end
25
- # @return [Float]
26
- # End of the range, exclusive.
27
- class DoubleRange; end
28
- end
29
- end
30
- end
31
- end
@@ -1,41 +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
- # Metrics for regression problems.
21
- # @!attribute [rw] root_mean_squared_error
22
- # @return [Float]
23
- # Output only. Root Mean Squared Error (RMSE).
24
- # @!attribute [rw] mean_absolute_error
25
- # @return [Float]
26
- # Output only. Mean Absolute Error (MAE).
27
- # @!attribute [rw] mean_absolute_percentage_error
28
- # @return [Float]
29
- # Output only. Mean absolute percentage error. Only set if all ground truth
30
- # values are are positive.
31
- # @!attribute [rw] r_squared
32
- # @return [Float]
33
- # Output only. R squared.
34
- # @!attribute [rw] root_mean_squared_log_error
35
- # @return [Float]
36
- # Output only. Root mean squared log error.
37
- class RegressionEvaluationMetrics; end
38
- end
39
- end
40
- end
41
- end
@@ -1,356 +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
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::CreateDataset AutoML::CreateDataset}.
21
- # @!attribute [rw] parent
22
- # @return [String]
23
- # Required. The resource name of the project to create the dataset for.
24
- # @!attribute [rw] dataset
25
- # @return [Google::Cloud::AutoML::V1beta1::Dataset]
26
- # Required. The dataset to create.
27
- class CreateDatasetRequest; end
28
-
29
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetDataset AutoML::GetDataset}.
30
- # @!attribute [rw] name
31
- # @return [String]
32
- # Required. The resource name of the dataset to retrieve.
33
- class GetDatasetRequest; end
34
-
35
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListDatasets AutoML::ListDatasets}.
36
- # @!attribute [rw] parent
37
- # @return [String]
38
- # Required. The resource name of the project from which to list datasets.
39
- # @!attribute [rw] filter
40
- # @return [String]
41
- # An expression for filtering the results of the request.
42
- #
43
- # * `dataset_metadata` - for existence of the case (e.g.
44
- # image_classification_dataset_metadata:*). Some examples of using the filter are:
45
- #
46
- # * `translation_dataset_metadata:*` --> The dataset has
47
- # translation_dataset_metadata.
48
- # @!attribute [rw] page_size
49
- # @return [Integer]
50
- # Requested page size. Server may return fewer results than requested.
51
- # If unspecified, server will pick a default size.
52
- # @!attribute [rw] page_token
53
- # @return [String]
54
- # A token identifying a page of results for the server to return
55
- # Typically obtained via
56
- # {Google::Cloud::AutoML::V1beta1::ListDatasetsResponse#next_page_token ListDatasetsResponse#next_page_token} of the previous
57
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListDatasets AutoML::ListDatasets} call.
58
- class ListDatasetsRequest; end
59
-
60
- # Response message for {Google::Cloud::AutoML::V1beta1::AutoML::ListDatasets AutoML::ListDatasets}.
61
- # @!attribute [rw] datasets
62
- # @return [Array<Google::Cloud::AutoML::V1beta1::Dataset>]
63
- # The datasets read.
64
- # @!attribute [rw] next_page_token
65
- # @return [String]
66
- # A token to retrieve next page of results.
67
- # Pass to {Google::Cloud::AutoML::V1beta1::ListDatasetsRequest#page_token ListDatasetsRequest#page_token} to obtain that page.
68
- class ListDatasetsResponse; end
69
-
70
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateDataset AutoML::UpdateDataset}
71
- # @!attribute [rw] dataset
72
- # @return [Google::Cloud::AutoML::V1beta1::Dataset]
73
- # Required. The dataset which replaces the resource on the server.
74
- # @!attribute [rw] update_mask
75
- # @return [Google::Protobuf::FieldMask]
76
- # The update mask applies to the resource.
77
- class UpdateDatasetRequest; end
78
-
79
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeleteDataset AutoML::DeleteDataset}.
80
- # @!attribute [rw] name
81
- # @return [String]
82
- # Required. The resource name of the dataset to delete.
83
- class DeleteDatasetRequest; end
84
-
85
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ImportData AutoML::ImportData}.
86
- # @!attribute [rw] name
87
- # @return [String]
88
- # Required. Dataset name. Dataset must already exist. All imported
89
- # annotations and examples will be added.
90
- # @!attribute [rw] input_config
91
- # @return [Google::Cloud::AutoML::V1beta1::InputConfig]
92
- # Required. The desired input location and its domain specific semantics,
93
- # if any.
94
- class ImportDataRequest; end
95
-
96
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ExportData AutoML::ExportData}.
97
- # @!attribute [rw] name
98
- # @return [String]
99
- # Required. The resource name of the dataset.
100
- # @!attribute [rw] output_config
101
- # @return [Google::Cloud::AutoML::V1beta1::OutputConfig]
102
- # Required. The desired output location.
103
- class ExportDataRequest; end
104
-
105
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetAnnotationSpec AutoML::GetAnnotationSpec}.
106
- # @!attribute [rw] name
107
- # @return [String]
108
- # Required. The resource name of the annotation spec to retrieve.
109
- class GetAnnotationSpecRequest; end
110
-
111
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetTableSpec AutoML::GetTableSpec}.
112
- # @!attribute [rw] name
113
- # @return [String]
114
- # Required. The resource name of the table spec to retrieve.
115
- # @!attribute [rw] field_mask
116
- # @return [Google::Protobuf::FieldMask]
117
- # Mask specifying which fields to read.
118
- class GetTableSpecRequest; end
119
-
120
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListTableSpecs AutoML::ListTableSpecs}.
121
- # @!attribute [rw] parent
122
- # @return [String]
123
- # Required. The resource name of the dataset to list table specs from.
124
- # @!attribute [rw] field_mask
125
- # @return [Google::Protobuf::FieldMask]
126
- # Mask specifying which fields to read.
127
- # @!attribute [rw] filter
128
- # @return [String]
129
- # Filter expression, see go/filtering.
130
- # @!attribute [rw] page_size
131
- # @return [Integer]
132
- # Requested page size. The server can return fewer results than requested.
133
- # If unspecified, the server will pick a default size.
134
- # @!attribute [rw] page_token
135
- # @return [String]
136
- # A token identifying a page of results for the server to return.
137
- # Typically obtained from the
138
- # {Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse#next_page_token ListTableSpecsResponse#next_page_token} field of the previous
139
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListTableSpecs AutoML::ListTableSpecs} call.
140
- class ListTableSpecsRequest; end
141
-
142
- # Response message for {Google::Cloud::AutoML::V1beta1::AutoML::ListTableSpecs AutoML::ListTableSpecs}.
143
- # @!attribute [rw] table_specs
144
- # @return [Array<Google::Cloud::AutoML::V1beta1::TableSpec>]
145
- # The table specs read.
146
- # @!attribute [rw] next_page_token
147
- # @return [String]
148
- # A token to retrieve next page of results.
149
- # Pass to {Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest#page_token ListTableSpecsRequest#page_token} to obtain that page.
150
- class ListTableSpecsResponse; end
151
-
152
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateTableSpec AutoML::UpdateTableSpec}
153
- # @!attribute [rw] table_spec
154
- # @return [Google::Cloud::AutoML::V1beta1::TableSpec]
155
- # Required. The table spec which replaces the resource on the server.
156
- # @!attribute [rw] update_mask
157
- # @return [Google::Protobuf::FieldMask]
158
- # The update mask applies to the resource.
159
- class UpdateTableSpecRequest; end
160
-
161
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetColumnSpec AutoML::GetColumnSpec}.
162
- # @!attribute [rw] name
163
- # @return [String]
164
- # Required. The resource name of the column spec to retrieve.
165
- # @!attribute [rw] field_mask
166
- # @return [Google::Protobuf::FieldMask]
167
- # Mask specifying which fields to read.
168
- class GetColumnSpecRequest; end
169
-
170
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListColumnSpecs AutoML::ListColumnSpecs}.
171
- # @!attribute [rw] parent
172
- # @return [String]
173
- # Required. The resource name of the table spec to list column specs from.
174
- # @!attribute [rw] field_mask
175
- # @return [Google::Protobuf::FieldMask]
176
- # Mask specifying which fields to read.
177
- # @!attribute [rw] filter
178
- # @return [String]
179
- # Filter expression, see go/filtering.
180
- # @!attribute [rw] page_size
181
- # @return [Integer]
182
- # Requested page size. The server can return fewer results than requested.
183
- # If unspecified, the server will pick a default size.
184
- # @!attribute [rw] page_token
185
- # @return [String]
186
- # A token identifying a page of results for the server to return.
187
- # Typically obtained from the
188
- # {Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse#next_page_token ListColumnSpecsResponse#next_page_token} field of the previous
189
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListColumnSpecs AutoML::ListColumnSpecs} call.
190
- class ListColumnSpecsRequest; end
191
-
192
- # Response message for {Google::Cloud::AutoML::V1beta1::AutoML::ListColumnSpecs AutoML::ListColumnSpecs}.
193
- # @!attribute [rw] column_specs
194
- # @return [Array<Google::Cloud::AutoML::V1beta1::ColumnSpec>]
195
- # The column specs read.
196
- # @!attribute [rw] next_page_token
197
- # @return [String]
198
- # A token to retrieve next page of results.
199
- # Pass to {Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest#page_token ListColumnSpecsRequest#page_token} to obtain that page.
200
- class ListColumnSpecsResponse; end
201
-
202
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UpdateColumnSpec AutoML::UpdateColumnSpec}
203
- # @!attribute [rw] column_spec
204
- # @return [Google::Cloud::AutoML::V1beta1::ColumnSpec]
205
- # Required. The column spec which replaces the resource on the server.
206
- # @!attribute [rw] update_mask
207
- # @return [Google::Protobuf::FieldMask]
208
- # The update mask applies to the resource.
209
- class UpdateColumnSpecRequest; end
210
-
211
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::CreateModel AutoML::CreateModel}.
212
- # @!attribute [rw] parent
213
- # @return [String]
214
- # Required. Resource name of the parent project where the model is being created.
215
- # @!attribute [rw] model
216
- # @return [Google::Cloud::AutoML::V1beta1::Model]
217
- # Required. The model to create.
218
- class CreateModelRequest; end
219
-
220
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetModel AutoML::GetModel}.
221
- # @!attribute [rw] name
222
- # @return [String]
223
- # Required. Resource name of the model.
224
- class GetModelRequest; end
225
-
226
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModels AutoML::ListModels}.
227
- # @!attribute [rw] parent
228
- # @return [String]
229
- # Required. Resource name of the project, from which to list the models.
230
- # @!attribute [rw] filter
231
- # @return [String]
232
- # An expression for filtering the results of the request.
233
- #
234
- # * `model_metadata` - for existence of the case (e.g.
235
- # video_classification_model_metadata:*).
236
- # * `dataset_id` - for = or !=. Some examples of using the filter are:
237
- #
238
- # * `image_classification_model_metadata:*` --> The model has
239
- # image_classification_model_metadata.
240
- # * `dataset_id=5` --> The model was created from a dataset with ID 5.
241
- # @!attribute [rw] page_size
242
- # @return [Integer]
243
- # Requested page size.
244
- # @!attribute [rw] page_token
245
- # @return [String]
246
- # A token identifying a page of results for the server to return
247
- # Typically obtained via
248
- # {Google::Cloud::AutoML::V1beta1::ListModelsResponse#next_page_token ListModelsResponse#next_page_token} of the previous
249
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListModels AutoML::ListModels} call.
250
- class ListModelsRequest; end
251
-
252
- # Response message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModels AutoML::ListModels}.
253
- # @!attribute [rw] model
254
- # @return [Array<Google::Cloud::AutoML::V1beta1::Model>]
255
- # List of models in the requested page.
256
- # @!attribute [rw] next_page_token
257
- # @return [String]
258
- # A token to retrieve next page of results.
259
- # Pass to {Google::Cloud::AutoML::V1beta1::ListModelsRequest#page_token ListModelsRequest#page_token} to obtain that page.
260
- class ListModelsResponse; end
261
-
262
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeleteModel AutoML::DeleteModel}.
263
- # @!attribute [rw] name
264
- # @return [String]
265
- # Required. Resource name of the model being deleted.
266
- class DeleteModelRequest; end
267
-
268
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::DeployModel AutoML::DeployModel}.
269
- # @!attribute [rw] image_object_detection_model_deployment_metadata
270
- # @return [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata]
271
- # Model deployment metadata specific to Image Object Detection.
272
- # @!attribute [rw] image_classification_model_deployment_metadata
273
- # @return [Google::Cloud::AutoML::V1beta1::ImageClassificationModelDeploymentMetadata]
274
- # Model deployment metadata specific to Image Classification.
275
- # @!attribute [rw] name
276
- # @return [String]
277
- # Required. Resource name of the model to deploy.
278
- class DeployModelRequest; end
279
-
280
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::UndeployModel AutoML::UndeployModel}.
281
- # @!attribute [rw] name
282
- # @return [String]
283
- # Required. Resource name of the model to undeploy.
284
- class UndeployModelRequest; end
285
-
286
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ExportModel AutoML::ExportModel}.
287
- # Models need to be enabled for exporting, otherwise an error code will be
288
- # returned.
289
- # @!attribute [rw] name
290
- # @return [String]
291
- # Required. The resource name of the model to export.
292
- # @!attribute [rw] output_config
293
- # @return [Google::Cloud::AutoML::V1beta1::ModelExportOutputConfig]
294
- # Required. The desired output location and configuration.
295
- class ExportModelRequest; end
296
-
297
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ExportEvaluatedExamples AutoML::ExportEvaluatedExamples}.
298
- # @!attribute [rw] name
299
- # @return [String]
300
- # Required. The resource name of the model whose evaluated examples are to
301
- # be exported.
302
- # @!attribute [rw] output_config
303
- # @return [Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesOutputConfig]
304
- # Required. The desired output location and configuration.
305
- class ExportEvaluatedExamplesRequest; end
306
-
307
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::GetModelEvaluation AutoML::GetModelEvaluation}.
308
- # @!attribute [rw] name
309
- # @return [String]
310
- # Required. Resource name for the model evaluation.
311
- class GetModelEvaluationRequest; end
312
-
313
- # Request message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModelEvaluations AutoML::ListModelEvaluations}.
314
- # @!attribute [rw] parent
315
- # @return [String]
316
- # Required. Resource name of the model to list the model evaluations for.
317
- # If modelId is set as "-", this will list model evaluations from across all
318
- # models of the parent location.
319
- # @!attribute [rw] filter
320
- # @return [String]
321
- # An expression for filtering the results of the request.
322
- #
323
- # * `annotation_spec_id` - for =, != or existence. See example below for
324
- # the last.
325
- #
326
- # Some examples of using the filter are:
327
- #
328
- # * `annotation_spec_id!=4` --> The model evaluation was done for
329
- # annotation spec with ID different than 4.
330
- # * `NOT annotation_spec_id:*` --> The model evaluation was done for
331
- # aggregate of all annotation specs.
332
- # @!attribute [rw] page_size
333
- # @return [Integer]
334
- # Requested page size.
335
- # @!attribute [rw] page_token
336
- # @return [String]
337
- # A token identifying a page of results for the server to return.
338
- # Typically obtained via
339
- # {Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse#next_page_token} of the previous
340
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListModelEvaluations AutoML::ListModelEvaluations} call.
341
- class ListModelEvaluationsRequest; end
342
-
343
- # Response message for {Google::Cloud::AutoML::V1beta1::AutoML::ListModelEvaluations AutoML::ListModelEvaluations}.
344
- # @!attribute [rw] model_evaluation
345
- # @return [Array<Google::Cloud::AutoML::V1beta1::ModelEvaluation>]
346
- # List of model evaluations in the requested page.
347
- # @!attribute [rw] next_page_token
348
- # @return [String]
349
- # A token to retrieve next page of results.
350
- # Pass to the {Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest#page_token ListModelEvaluationsRequest#page_token} field of a new
351
- # {Google::Cloud::AutoML::V1beta1::AutoML::ListModelEvaluations AutoML::ListModelEvaluations} request to obtain that page.
352
- class ListModelEvaluationsResponse; end
353
- end
354
- end
355
- end
356
- end