Machine Learning

Contextual Bandits

An extension of multi-armed bandits where the agent observes context (features) before making a decision, enabling personalized choices based on the current situation.

Why It Matters

Contextual bandits power personalized recommendations, dynamic pricing, and adaptive user interfaces — any decision that should consider the current context.

Example

A news app choosing which article to show based on user features (time of day, location, reading history) — different users see different content based on their context.

Think of it like...

Like a bartender who recommends different drinks based on whether you are celebrating, stressed, or just casually visiting — the suggestion depends on context.

Related Terms