#153153rd of 171 in Learning and cookbooks
deep-q-learning
Minimal DQN and Double DQN agents in Keras and Gymnasium
Watch puts deep-q-learning on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.deep-q-learning is on your watch list. Its new releases and problems show there.
- Stars
- 1.3k
- License
- MIT
- Last commit
- May 2026
- Language
- Python
1,313 on 6 May 20261,333 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Teaching implementation of Deep Q-Learning in under 100 lines, using Keras 3 and Gymnasium with a deque-bounded experience replay memory. It includes dqn.py, a batched variant (dqn_batch.py) and ddqn.py, which implements Double DQN with Huber loss. A blog article explains the dqn.py code.
Who it is for: Learners studying reinforcement learning through a small DQN example
Strengths
- Core agent fits in under 100 lines, easy to read end to end
- Accompanying blog article walks through dqn.py
- Updated in 2026-05 to Keras 3 and Gymnasium
- save() and load() persist weights and epsilon
Weaknesses
- README says dqn.py training can be unstable; ddqn.py is the mitigation
- Small scripts, not a reusable RL library
- No release, tests or benchmark results mentioned
- Double DQN article is described as upcoming and is not linked
What it needs
- Needs Keras 3, Gymnasium
Also in Learning and cookbooks
See all 171| Rank | Project | Score |
|---|---|---|
| #151 | machine-learning-specialization-courseraSolved notebooks for Andrew Ng's Coursera Machine Learning Specialization | 23 out of 100 |
| #152 | snakeSnake game player using graph search and a Double DQN agent | 21 out of 100 |
| #154 | ml-nlpChinese-language ML and NLP interview study notes with code examples | 19 out of 100 |
| #155 | ai-engineering.academyStructured learning paths and notebooks for applied generative AI engineering | 19 out of 100 |
| #156 | musicinformationretrieval.comJupyter notebooks teaching music information retrieval with Python | 16 out of 100 |