DiversityColumn
¶
Source code in docs_src/capo_customer_profiles/types/diversity_column.py
cap_type
instance-attribute
¶
cap_type: DiversityCapType
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).
name
instance-attribute
¶
name: text
The name of the item catalog column on which to apply the diversity cap. The column must be defined in the recommender schema.
target
instance-attribute
¶
target: DiversityTargetExpression
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.