google-cloud-automl 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +11 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/LICENSE +201 -0
  5. data/README.md +69 -0
  6. data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +34 -0
  7. data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +18 -0
  8. data/lib/google/cloud/automl/v1beta1/automl_client.rb +1914 -0
  9. data/lib/google/cloud/automl/v1beta1/automl_client_config.json +146 -0
  10. data/lib/google/cloud/automl/v1beta1/classification_pb.rb +65 -0
  11. data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +28 -0
  12. data/lib/google/cloud/automl/v1beta1/credentials.rb +41 -0
  13. data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +48 -0
  14. data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +77 -0
  15. data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +36 -0
  16. data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +38 -0
  17. data/lib/google/cloud/automl/v1beta1/detection_pb.rb +52 -0
  18. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_payload.rb +63 -0
  19. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/annotation_spec.rb +41 -0
  20. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/classification.rb +203 -0
  21. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/column_spec.rb +72 -0
  22. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb +94 -0
  23. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_stats.rb +160 -0
  24. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_types.rb +107 -0
  25. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/dataset.rb +77 -0
  26. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/detection.rb +134 -0
  27. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/geometry.rb +43 -0
  28. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/image.rb +141 -0
  29. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/io.rb +975 -0
  30. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model.rb +92 -0
  31. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/model_evaluation.rb +100 -0
  32. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/prediction_service.rb +136 -0
  33. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/ranges.rb +31 -0
  34. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/regression.rb +41 -0
  35. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/service.rb +368 -0
  36. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/table_spec.rb +64 -0
  37. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/tables.rb +261 -0
  38. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/temporal.rb +33 -0
  39. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text.rb +53 -0
  40. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_extraction.rb +60 -0
  41. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_segment.rb +37 -0
  42. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/text_sentiment.rb +76 -0
  43. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/translation.rb +63 -0
  44. data/lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/video.rb +35 -0
  45. data/lib/google/cloud/automl/v1beta1/doc/google/longrunning/operations.rb +51 -0
  46. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/any.rb +131 -0
  47. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/duration.rb +91 -0
  48. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/field_mask.rb +222 -0
  49. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/struct.rb +74 -0
  50. data/lib/google/cloud/automl/v1beta1/doc/google/protobuf/timestamp.rb +111 -0
  51. data/lib/google/cloud/automl/v1beta1/doc/google/rpc/status.rb +87 -0
  52. data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +21 -0
  53. data/lib/google/cloud/automl/v1beta1/image_pb.rb +43 -0
  54. data/lib/google/cloud/automl/v1beta1/io_pb.rb +80 -0
  55. data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +37 -0
  56. data/lib/google/cloud/automl/v1beta1/model_pb.rb +44 -0
  57. data/lib/google/cloud/automl/v1beta1/operations_pb.rb +90 -0
  58. data/lib/google/cloud/automl/v1beta1/prediction_service_client.rb +442 -0
  59. data/lib/google/cloud/automl/v1beta1/prediction_service_client_config.json +36 -0
  60. data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +39 -0
  61. data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +72 -0
  62. data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +17 -0
  63. data/lib/google/cloud/automl/v1beta1/regression_pb.rb +20 -0
  64. data/lib/google/cloud/automl/v1beta1/service_pb.rb +177 -0
  65. data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +159 -0
  66. data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +22 -0
  67. data/lib/google/cloud/automl/v1beta1/tables_pb.rb +56 -0
  68. data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +18 -0
  69. data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +32 -0
  70. data/lib/google/cloud/automl/v1beta1/text_pb.rb +33 -0
  71. data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +18 -0
  72. data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +29 -0
  73. data/lib/google/cloud/automl/v1beta1/translation_pb.rb +33 -0
  74. data/lib/google/cloud/automl/v1beta1/video_pb.rb +25 -0
  75. data/lib/google/cloud/automl/v1beta1.rb +231 -0
  76. data/lib/google/cloud/automl/version.rb +22 -0
  77. data/lib/google/cloud/automl.rb +219 -0
  78. data/lib/google-cloud-automl.rb +15 -0
  79. metadata +203 -0
@@ -0,0 +1,92 @@
1
+ # Copyright 2019 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.
51
+ # Resource name of the model.
52
+ # Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`
53
+ # @!attribute [rw] display_name
54
+ # @return [String]
55
+ # Required. The name of the model to show in the interface. The name can be
56
+ # up to 32 characters long and can consist only of ASCII Latin letters A-Z
57
+ # and a-z, underscores
58
+ # (_), and ASCII digits 0-9. It must start with a letter.
59
+ # @!attribute [rw] dataset_id
60
+ # @return [String]
61
+ # Required.
62
+ # The resource ID of the dataset used to create the model. The dataset must
63
+ # come from the same ancestor project and location.
64
+ # @!attribute [rw] create_time
65
+ # @return [Google::Protobuf::Timestamp]
66
+ # Output only.
67
+ # Timestamp when the model training finished and can be used for prediction.
68
+ # @!attribute [rw] update_time
69
+ # @return [Google::Protobuf::Timestamp]
70
+ # Output only.
71
+ # Timestamp when this model was last updated.
72
+ # @!attribute [rw] deployment_state
73
+ # @return [Google::Cloud::AutoML::V1beta1::Model::DeploymentState]
74
+ # Output only. Deployment state of the model. A model can only serve
75
+ # prediction requests after it gets deployed.
76
+ class Model
77
+ # Deployment state of the model.
78
+ module DeploymentState
79
+ # Should not be used, an un-set enum has this value by default.
80
+ DEPLOYMENT_STATE_UNSPECIFIED = 0
81
+
82
+ # Model is deployed.
83
+ DEPLOYED = 1
84
+
85
+ # Model is not deployed.
86
+ UNDEPLOYED = 2
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,100 @@
1
+ # Copyright 2019 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.
50
+ # Resource name of the model evaluation.
51
+ # Format:
52
+ #
53
+ # `projects/{project_id}/locations/{location_id}/models/{model_id}/modelEvaluations/{model_evaluation_id}`
54
+ # @!attribute [rw] annotation_spec_id
55
+ # @return [String]
56
+ # Output only.
57
+ # The ID of the annotation spec that the model evaluation applies to. The
58
+ # The ID is empty for the overall model evaluation.
59
+ # For Tables annotation specs in the dataset do not exist and this ID is
60
+ # always not set, but for CLASSIFICATION
61
+ #
62
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type-s}
63
+ # the
64
+ # {Google::Cloud::AutoML::V1beta1::ModelEvaluation#display_name display_name}
65
+ # field is used.
66
+ # @!attribute [rw] display_name
67
+ # @return [String]
68
+ # Output only. The value of
69
+ # {Google::Cloud::AutoML::V1beta1::AnnotationSpec#dispay_name display_name} at
70
+ # the moment when the model was trained. Because this field returns a value
71
+ # at model training time, for different models trained from the same dataset,
72
+ # the values may differ, since display names could had been changed between
73
+ # the two model's trainings.
74
+ # For Tables CLASSIFICATION
75
+ #
76
+ # {Google::Cloud::AutoML::V1beta1::TablesModelMetadata#prediction_type prediction_type-s}
77
+ # distinct values of the target column at the moment of the model evaluation
78
+ # are populated here.
79
+ # The display_name is empty for the overall model evaluation.
80
+ # @!attribute [rw] create_time
81
+ # @return [Google::Protobuf::Timestamp]
82
+ # Output only.
83
+ # Timestamp when this model evaluation was created.
84
+ # @!attribute [rw] evaluated_example_count
85
+ # @return [Integer]
86
+ # Output only.
87
+ # The number of examples used for model evaluation, i.e. for
88
+ # which ground truth from time of model creation is compared against the
89
+ # predicted annotations created by the model.
90
+ # For overall ModelEvaluation (i.e. with annotation_spec_id not set) this is
91
+ # the total number of all examples used for evaluation.
92
+ # Otherwise, this is the count of examples that according to the ground
93
+ # truth were annotated by the
94
+ #
95
+ # {Google::Cloud::AutoML::V1beta1::ModelEvaluation#annotation_spec_id annotation_spec_id}.
96
+ class ModelEvaluation; end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,136 @@
1
+ # Copyright 2019 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
+ # Name of the model requested to serve the prediction.
24
+ # @!attribute [rw] payload
25
+ # @return [Google::Cloud::AutoML::V1beta1::ExamplePayload]
26
+ # Required.
27
+ # Payload to perform a prediction on. The payload must match the
28
+ # problem type that the model was trained to solve.
29
+ # @!attribute [rw] params
30
+ # @return [Hash{String => String}]
31
+ # Additional domain-specific parameters, any string must be up to 25000
32
+ # characters long.
33
+ #
34
+ # * For Image Classification:
35
+ #
36
+ # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
37
+ # makes predictions for an image, it will only produce results that have
38
+ # at least this confidence score. The default is 0.5.
39
+ # * For Tables:
40
+ # `feature_importance` - (boolean) Whether
41
+ #
42
+ # [feature_importance][[google.cloud.automl.v1beta1.TablesModelColumnInfo.feature_importance]
43
+ # should be populated in the returned
44
+ #
45
+ # [TablesAnnotation(-s)][[google.cloud.automl.v1beta1.TablesAnnotation].
46
+ # The default is false.
47
+ class PredictRequest; end
48
+
49
+ # Response message for {Google::Cloud::AutoML::V1beta1::PredictionService::Predict PredictionService::Predict}.
50
+ # @!attribute [rw] payload
51
+ # @return [Array<Google::Cloud::AutoML::V1beta1::AnnotationPayload>]
52
+ # Prediction result.
53
+ # Translation and Text Sentiment will return precisely one payload.
54
+ # @!attribute [rw] metadata
55
+ # @return [Hash{String => String}]
56
+ # Additional domain-specific prediction response metadata.
57
+ #
58
+ # * For Image Object Detection:
59
+ # `max_bounding_box_count` - (int64) At most that many bounding boxes per
60
+ # image could have been returned.
61
+ #
62
+ # * For Text Sentiment:
63
+ # `sentiment_score` - (float, deprecated) A value between -1 and 1,
64
+ # -1 maps to least positive sentiment, while 1 maps to the most positive
65
+ # one and the higher the score, the more positive the sentiment in the
66
+ # document is. Yet these values are relative to the training data, so
67
+ # e.g. if all data was positive then -1 will be also positive (though
68
+ # the least).
69
+ # The sentiment_score shouldn't be confused with "score" or "magnitude"
70
+ # from the previous Natural Language Sentiment Analysis API.
71
+ class PredictResponse; end
72
+
73
+ # Request message for {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
74
+ # @!attribute [rw] name
75
+ # @return [String]
76
+ # Name of the model requested to serve the batch prediction.
77
+ # @!attribute [rw] input_config
78
+ # @return [Google::Cloud::AutoML::V1beta1::BatchPredictInputConfig]
79
+ # Required. The input configuration for batch prediction.
80
+ # @!attribute [rw] output_config
81
+ # @return [Google::Cloud::AutoML::V1beta1::BatchPredictOutputConfig]
82
+ # Required. The Configuration specifying where output predictions should
83
+ # be written.
84
+ # @!attribute [rw] params
85
+ # @return [Hash{String => String}]
86
+ # Additional domain-specific parameters for the predictions, any string must
87
+ # be up to 25000 characters long.
88
+ #
89
+ # * For Video Classification :
90
+ # `score_threshold` - (float) A value from 0.0 to 1.0. When the model
91
+ # makes predictions for a video, it will only produce results that
92
+ # have at least this confidence score. The default is 0.5.
93
+ # `segment_classification` - (boolean) Set to true to request
94
+ # segment-level classification. AutoML Video Intelligence returns
95
+ # labels and their confidence scores for the entire segment of the
96
+ # video that user specified in the request configuration.
97
+ # The default is "true".
98
+ # `shot_classification` - (boolean) Set to true to request shot-level
99
+ # classification. AutoML Video Intelligence determines the boundaries
100
+ # for each camera shot in the entire segment of the video that user
101
+ # specified in the request configuration. AutoML Video Intelligence
102
+ # then returns labels and their confidence scores for each detected
103
+ # shot, along with the start and end time of the shot.
104
+ # WARNING: Model evaluation is not done for this classification type,
105
+ # the quality of it depends on training data, but there are no metrics
106
+ # provided to describe that quality. The default is "false".
107
+ # `1s_interval_classification` - (boolean) Set to true to request
108
+ # classification for a video at one-second intervals. AutoML Video
109
+ # Intelligence returns labels and their confidence scores for each
110
+ # second of the entire segment of the video that user specified in the
111
+ # request configuration.
112
+ # WARNING: Model evaluation is not done for this classification
113
+ # type, the quality of it depends on training data, but there are no
114
+ # metrics provided to describe that quality. The default is
115
+ # "false".
116
+ #
117
+ # * For Video Object Tracking:
118
+ # `score_threshold` - (float) When Model detects objects on video frames,
119
+ # it will only produce bounding boxes which have at least this
120
+ # confidence score. Value in 0 to 1 range, default is 0.5.
121
+ # `max_bounding_box_count` - (int64) No more than this number of bounding
122
+ # boxes will be returned per frame. Default is 100, the requested
123
+ # value may be limited by server.
124
+ # `min_bounding_box_size` - (float) Only bounding boxes with shortest edge
125
+ # at least that long as a relative value of video frame size will be
126
+ # returned. Value in 0 to 1 range. Default is 0.
127
+ class BatchPredictRequest; end
128
+
129
+ # Result of the Batch Predict. This message is returned in
130
+ # {Google::Longrunning::Operation#response response} of the operation returned
131
+ # by the {Google::Cloud::AutoML::V1beta1::PredictionService::BatchPredict PredictionService::BatchPredict}.
132
+ class BatchPredictResult; end
133
+ end
134
+ end
135
+ end
136
+ end
@@ -0,0 +1,31 @@
1
+ # Copyright 2019 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
@@ -0,0 +1,41 @@
1
+ # Copyright 2019 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