Skip to main content

Popular (Rule-Based)

Description

The Popular policy ranks or scores items based on their overall popularity, typically calculated by aggregating interaction counts (e.g., sum of clicks, count of views) across all users. A time window can be applied to focus on recent popularity. Useful for cold-start scenarios or as a simple baseline.

Policy Type: popular Supports: scoring_policy

Configuration Example

scoring_policy_popular.yaml
policy_configs:
scoring_policy:
policy_type: popular
mode: "popularity_sum" # Method to use for calculating popularity: 'popularity_sum', 'positive_popularity' etc
time_window_in_days: 30 # Optional: Consider only interactions in the last N days.