AiTeky Original Interactive Learning & Practice Advanced
Reinforcement learning: learning by trying
Teach an agent to act by trial and reward, from a robot in a warehouse grid and Q-tables to exploration, policy gradients, a restocking policy and the careful offline testing you need before any learned policy touches real customers.
Most machine learning is told the right answer for each example. Reinforcement learning (RL) is different: an agent acts, the world answers with a reward, and the agent must work out which of its earlier actions deserve the credit. It is how programs learned to play Go, how robots learn to walk, and how some systems choose what to show you next. It is also easy to misuse.
You will build a warehouse robot's world in a few lines of Python, teach the robot with Q-learning using nothing but a table of numbers, see how exploration trades off against exploitation, learn a policy directly with policy gradients, and then apply the ideas to a restocking policy. The last lesson is about what to do before a learned policy meets real customers: test it offline on logged data. Everything runs in your browser with NumPy; no data files are needed, because the worlds are simulated. You need Python and some probability.
- Learn lessons explain one idea at a time, with code you can run and exercises you can repeat.
- Industry ready lessons learn a restocking policy for a shop and test an offer policy safely before launch. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 25 min Free sample π AiTeky Pass Agent, world, reward Build a warehouse robot's grid world in Python, run a random robot to set the baseline, compute a return with and without discounting, and see why a good plan needs more than the next reward.
- 02 30 min π AiTeky Pass Q-learning by hand Teach the warehouse robot with a table of numbers, one worked update of the Q-learning rule, a training loop of 2,000 trips, and a look at the policy and the learning curve that result.
- 03 30 min π AiTeky Pass Explore or exploit See how a purely greedy learner gets stuck with a poor choice, compare Ξ΅-greedy, decaying Ξ΅ and optimistic confidence bounds on a five-option problem, and measure each by regret.
- 04 35 min π AiTeky Pass Learning the policy directly Skip the Q-table and learn the policy itself as probabilities, nudge it towards moves that led to good returns (REINFORCE), see why a baseline steadies it, and meet the way it can get stuck.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 40 min π AiTeky Pass On the job: a restocking policy Build a daily ordering simulator for a shop item with weekend peaks, find the best single order-up-to level, train a Q-learning policy in the simulator, compare both with a tuned weekday rule, and report honestly where learning helps and where a plain rule still wins.
- 06 40 min π AiTeky Pass On the job: testing an offer policy without risk Judge a new rule for which offer to send to which customer using only the log of past offers, with importance weighting, see how wide the uncertainty is, and learn which questions to ask before a learned policy goes live.

