AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough
Contextual Bandits
Bandits where the best arm depends on side information about the situation.
The idea
Before each choice you see a context (user features, time of day) and the payoff of each arm depends on it. The learner builds a model of reward given context and action (LinUCB uses a linear one with confidence bounds). It is RL with one-step episodes: your action does not change the next state.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Observe the context.
- 2Predict each arm's reward given the context, with uncertainty.
- 3Choose an arm (explore or exploit).
- 4Observe the reward and update the model.
1/4
Step by step
- 1Observe the context.
- 2Predict each arm's reward given the context, with uncertainty.
- 3Choose an arm (explore or exploit).
- 4Observe the reward and update the model.
Where it is used
News and ad personalisation.
Watch out for
Needs logged propensities for fair offline evaluation.