Interface DiversityColumn.Builder

  • Method Details

    • name

      The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.

      Parameters:
      name - The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capType

      DiversityColumn.Builder capType(String capType)

      The type of diversity cap to apply. Valid values are PERCENTAGE (interpret Target as a percentage of returned items) and VALUE (interpret Target as an absolute count).

      Parameters:
      capType - The type of diversity cap to apply. Valid values are PERCENTAGE (interpret Target as a percentage of returned items) and VALUE (interpret Target as an absolute count).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • capType

      The type of diversity cap to apply. Valid values are PERCENTAGE (interpret Target as a percentage of returned items) and VALUE (interpret Target as an absolute count).

      Parameters:
      capType - The type of diversity cap to apply. Valid values are PERCENTAGE (interpret Target as a percentage of returned items) and VALUE (interpret Target as an absolute count).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • target

      The diversity cap target. Either an integer literal (for example, "25") or a placeholder expression of the form $name whose value is supplied at inference time through GetProfileRecommendations.

      Parameters:
      target - The diversity cap target. Either an integer literal (for example, "25") or a placeholder expression of the form $name whose value is supplied at inference time through GetProfileRecommendations.
      Returns:
      Returns a reference to this object so that method calls can be chained together.