프로젝트
GitHub에서 보기
keon/deep-q-learning
소개
Keras로 구현한 간결한 심층 Q 학습(DQN 및 DDQN)
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +3
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originaldeep-q-learning
Introduction to Making a Simple Game AI with Deep Reinforcement Learning

Minimal and Simple Deep Q Learning Implemenation in Keras and Gym. Under 100 lines of code!
The explanation for the dqn.py code is covered in the blog article
https://keon.kim/writing/deep-q-learning/
I made minor tweaks to this repository such as load and save functions for convenience.
I also made the memory a deque instead of just a list.
This is in order to limit the maximum number of elements in the memory.
The training might be unstable for dqn.py. This problem is mitigated in ddqn.py.
I'll cover ddqn in the next article.
Changelog
2026-05
- Migrated from
gymtogymnasiumand updated for the modern reset/step API. - Updated for Keras 3 (
Adam(learning_rate=),Inputlayer,keras.losses.Huber). ddqn.pynow implements actual Double DQN (online net selects, target net evaluates).- Removed CartPole-specific reward shaping from
ddqn.pyso it's env-agnostic. save()/load()now persistepsilonalongside the weights.
2018-08
- Split batched-update training into its own file (
dqn_batch.py).
2017-06
- Added Double DQN with Huber loss in
ddqn.py. - Added
requirements.txt.
2017-05
- Migrated to the Keras 2 API.
- Hyperparameter tuning that finally got
dqn.pylearning reliably on CartPole.
2017-02
- Initial release: DQN agent on CartPole with experience replay (
deque-bounded memory) andsave/loadhelpers.
관련 프로젝트 살펴보기
불러오는 중…