Bandits & exploration
Step 2 of 10 in Reinforcement Learning · Build · Easy
With several slot machines you must balance trying new arms (explore) and using the best so far (exploit). ε-greedy and UCB are the classic answers.
Build it
Bandit showdown
10-armed bandit with greedy, ε-greedy and UCB; plot average reward and % optimal action.
Done when: UCB and ε-greedy beat greedy; curves shown.
Case study: Yahoo! news recommendation with bandits
- Contextual bandits picked which article to show on the front page.
- Exploration had real cost (clicks) and real benefit (learning new articles).
- Offline evaluation from logged data let them test policies safely.
Resources
- Wikipedia: Multi-armed bandit Article
- Sutton & Barto (free book) Book
- David Silver's RL course Course
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map