Class PredictResponse (1.21.2)

PredictResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response message for predict method.

Attributes

Name Description
results MutableSequence[google.cloud.retail_v2beta.types.PredictResponse.PredictionResult]
A list of recommended products. The order represents the ranking (from the most relevant product to the least).
attribution_token str
A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
missing_ids MutableSequence[str]
IDs of products in the request that were missing from the inventory.
validate_only bool
True if the validateOnly property was set in the request.

Classes

PredictionResult

PredictionResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PredictionResult represents the recommendation prediction results.