Class: Google::Cloud::AutoML::V1::PredictResponse
- Inherits:
-
Object
- Object
- Google::Cloud::AutoML::V1::PredictResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/automl/v1/prediction_service.rb
Overview
Response message for PredictionService.Predict.
Defined Under Namespace
Classes: MetadataEntry
Instance Attribute Summary collapse
-
#metadata ⇒ ::Google::Protobuf::Map{::String => ::String}
Additional domain-specific prediction response metadata.
-
#payload ⇒ ::Array<::Google::Cloud::AutoML::V1::AnnotationPayload>
Prediction result.
-
#preprocessed_input ⇒ ::Google::Cloud::AutoML::V1::ExamplePayload
The preprocessed example that AutoML actually makes prediction on.
Instance Attribute Details
#metadata ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Additional domain-specific prediction response metadata.
AutoML Vision Object Detection
max_bounding_box_count
: (int64) The maximum number of bounding boxes to return per image.
AutoML Natural Language Sentiment Analysis
sentiment_score
: (float, deprecated) A value between -1 and 1,
-1 maps to least positive sentiment, while 1 maps to the most positive
one and the higher the score, the more positive the sentiment in the
document is. Yet these values are relative to the training data, so
e.g. if all data was positive then -1 is also positive (though
the least).
sentiment_score
is not the same as "score" and "magnitude"
from Sentiment Analysis in the Natural Language API.
114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'proto_docs/google/cloud/automl/v1/prediction_service.rb', line 114 class PredictResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#payload ⇒ ::Array<::Google::Cloud::AutoML::V1::AnnotationPayload>
Prediction result. AutoML Translation and AutoML Natural Language Sentiment Analysis return precisely one payload.
114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'proto_docs/google/cloud/automl/v1/prediction_service.rb', line 114 class PredictResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#preprocessed_input ⇒ ::Google::Cloud::AutoML::V1::ExamplePayload
The preprocessed example that AutoML actually makes prediction on. Empty if AutoML does not preprocess the input example.
For AutoML Natural Language (Classification, Entity Extraction, and Sentiment Analysis), if the input is a document, the recognized text is returned in the document_text property.
114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'proto_docs/google/cloud/automl/v1/prediction_service.rb', line 114 class PredictResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |