RL From Zero

Every tile is a trained agent from the RL-from-zero repository. The series starts with Q-learning, outlined in blue.

RL From Zero is a series about reinforcement learning algorithms, built from scratch and explained one idea at a time. Each post takes one algorithm from my open-source RL-from-zero repository and shows how it actually learns, from its first update to a trained agent.

In the repository, each algorithm lives in its own self-contained package with a shared command-line interface, YAML-driven configuration, and optional experiment tracking with Weights & Biases. That means every post can point to real code you can run, not pseudocode.

What each post includes

Where the series goes

The repository spans tabular methods, deep value-based learning, policy gradients, actor-critic methods, offline RL, and multi-agent RL. The series starts at the simplest end, a table of Q-values, and builds toward the methods that replace that table with neural networks.

Posts in this series

Q-learning: watch a table learn

23 minute read

Published:

Follow one experience into one changed table cell, then watch exploration and delayed rewards turn local updates into a policy.

DQN: when a table is not enough

25 minute read

Published:

Replace the table with a network, then follow one real gradient step through replay, a frozen target, and a value map that changes everywhere at once.

Follow the series

The series introduction is also on Medium and Substack. To get each new part by email, subscribe on Substack.

Browse all Interesting Blogs →