By Team Edtoolkits · AI learning
Follow Q-learning in a small grid and compare exploratory training with the policy learned from rewards.
Use the guide alongside the working tool.
Open Reinforcement Learning →Explore the lesson
Watch the mouse learn from many tries.
In the playground, train the mouse and move the traps and cheese.
Flip the memory card and answer the quick check.
A comparison to try
Train with exploration enabled and watch the action-value table change. Then inspect the greedy policy, separating moves taken to explore from the moves currently judged best.
Read the result
The update combines immediate reward with an estimate of future reward. At a terminal goal or pit there is no future step to add. More wandering during training does not necessarily mean the final policy prefers wandering.
A mistake to avoid
The world is a tiny seeded grid, not a realistic environment. Rewards, walls and exploration settings shape the learned behaviour. A high reward here says nothing about safety or useful performance under new rules or unfamiliar states.
Teaching model and privacy
This is a tiny teaching version of Q-learning on a 5 by 4 grid, with a table instead of a neural network. Everything runs in your browser.
Ready to apply this workflow?
Try Reinforcement Learning →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.