ShangtongZhang/reinforcement-learning-an-introduction
Python Implementation of Reinforcement Learning: An Introduction
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
[](https://travis-ci.org/ShangtongZhang/reinforcement-learning-an-introduction) Python replication for Sutton & Barto's book Reinforcement Learning: An Introduction (2nd Edition) If you want to contribute some missing examples…
Read the full README ↗ · Preview checked 2026-10-27T21:31:47.067Z
Inside the original README — Document outline
- Reinforcement Learning: An Introduction
- Contents
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
- Figure 3.2: Grid example with random policy
- Figure 3.5: Optimal solutions to the gridworld example
- Figure 4.1: Convergence of iterative policy evaluation on a small gridworld
- Example 6.2: Random walk
- Example 8.4: Prioritized sweeping significantly shortens learning time on the Dyna maze task
- Figure 9.8: Example of feature width’s effect on initial generalization and asymptotic accuracy
- Figure 11.2: Baird's Counterexample
- Figure 11.6: The behavior of the TDC algorithm on Baird’s counterexample
- Figure 11.7: The behavior of the ETD algorithm in expectation on Baird’s counterexample
- Example 13.1: Short corridor with switched actions
Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Python Implementation of Reinforcement Learning: An Introduction
Repository facts
- Owner
- ShangtongZhang
- Primary language
- Python
- Stars
- 14,791
- Forks
- 4,944
- Open issues + pull requests
- 22
- License
- MIT
- Archived
- No
- Default branch
- master
- Created
- 2016-09-13T16:24:05.000Z
- Last push
- 2024-08-09T01:09:15.000Z
Topics and intended use
Owner-supplied topics: artificial-intelligence, reinforcement-learning
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-31T13:20:02.570Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.
Related repositories
EbookFoundation/free-programming-books
donnemartin/system-design-primer