Q-Learning
Q-Learning learns by trying actions and remembering which ones lead to rewards.
What it does
Q-Learning learns by trying actions and remembering which ones lead to rewards.
Agent: The AI character • Reward: Points for good jobs
How it works
- Try an action.
- See the reward.
- Update a table so better actions are easier to choose next time.
Uses & Applications
- A simple game AI can learn which moves win points.
- A robot can learn which direction helps it reach a goal.
- A learning app can choose practice questions that help most.
In short
It learns from rewards, like practice in a game.
Try it yourself
Learn which way leads to a prize
A player starts on the left and earns a prize by reaching Goal. It learns scores for left and right moves.
Your turn
Change one setting at a time. Reset example puts everything back.
Learn a route from rewards
Step 1Why this happens