Interface PredictedItem.Builder

    • Method Detail

      • itemId

        PredictedItem.Builder itemId​(String itemId)

        The recommended item ID.

        Parameters:
        itemId - The recommended item ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • score

        PredictedItem.Builder score​(Double score)

        A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.

        Parameters:
        score - A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see how-scores-work.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • promotionName

        PredictedItem.Builder promotionName​(String promotionName)

        The name of the promotion that included the predicted item.

        Parameters:
        promotionName - The name of the promotion that included the predicted item.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metadata

        PredictedItem.Builder metadata​(Map<String,​String> metadata)

        Metadata about the item from your Items dataset.

        Parameters:
        metadata - Metadata about the item from your Items dataset.
        Returns:
        Returns a reference to this object so that method calls can be chained together.