PredictionResult represents the recommendation prediction results.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#id
def id() -> ::String
Returns
- (::String) — ID of the recommended product
#id=
def id=(value) -> ::String
Parameter
- value (::String) — ID of the recommended product
Returns
- (::String) — ID of the recommended product
#metadata
def metadata() -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Returns
-
(::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional product metadata / annotations.
Possible values:
product
: JSON representation of the product. Will be set ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Will be set ifreturnScore
is set to true inPredictRequest.params
.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}
Parameter
-
value (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional product metadata / annotations.
Possible values:
product
: JSON representation of the product. Will be set ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Will be set ifreturnScore
is set to true inPredictRequest.params
.
Returns
-
(::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) —
Additional product metadata / annotations.
Possible values:
product
: JSON representation of the product. Will be set ifreturnProduct
is set to true inPredictRequest.params
.score
: Prediction score in double value. Will be set ifreturnScore
is set to true inPredictRequest.params
.