Skip to main content

Random (Rule-Based)

warning

This is an article from the Shaped 1.0 documentation. The APIs have changed and information may be outdated. Go to Shaped 2.0 docs

Description

The Random policy assigns a random score to each candidate item, effectively shuffling them randomly. It ignores all user, item, and context information. Primarily used for baseline comparisons, testing pipeline integrity, or implementing random exploration slots.

Policy Type: random Supports: scoring_policy

Configuration Example

policy_configs:
scoring_policy:
policy_type: random