DiversityColumn
Defines a diversity constraint for a single item column, specifying a cap type and a target value or placeholder that controls how many recommended items may share the same column value.
Contents
- CapType
-
The type of diversity cap to apply. Valid values are
PERCENTAGE(interpretTargetas a percentage of returned items) andVALUE(interpretTargetas an absolute count).Type: String
Valid Values:
PERCENTAGE | VALUERequired: Yes
- Name
-
The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1000.
Required: Yes
- Target
-
The diversity cap target. Either an integer literal (for example,
"25") or a placeholder expression of the form$namewhose value is supplied at inference time throughGetProfileRecommendations.Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
(\d+|\$[a-z_]+)Required: Yes
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: