Views
No views yet

ALE/SpaceInvaders-v5.gymnasium environment
(num_envs=1). Hyperparameters match the DeepMind 2015 paper, with a centered RMSprop optimizer:| Hyperparameter | Value |
|---|---|
| Optimizer | RMSprop (centered, alpha=0.95, eps=0.01) |
| Learning rate | 0.00025 |
| Discount (gamma) | 0.99 |
| Replay memory size | 1,000,000 frames |
| Memory warmup | 50,000 frames |
| Batch size | 32 |
| Target network sync | every 10,000 frames |
| Main network update | every 4 frames |
| Frame skip | 4 (with max-pooling over the last 2 frames for flicker removal) |
| Reward clipping | {-1, 0, 1} |

model.pth — torch.save dict with model_state_dict and optimizer_state_dict for the main Q-network.episodes.csv — per-episode frame_num,episode_num,episode_reward,epsilon,wall_clock_elapsed_seconds, full
training run.losses.csv — frame_num,avg_loss, Huber loss averaged every 400 frames.training-curves.png — the plot above, generated from the two CSVs.src.models.cnn_model_py.CNNModelPY in the linked repo and is loaded through
SpaceInvaderAgent, not standalone torch.load + a bare nn.Module — see
scripts/evaluate.py:1git clone https://github.com/colichar/deep-q-learning
2cd deep-q-learning
3uv sync --extra cpu # or --extra cuda
4uv run AutoROM --accept-license -y
5
6# download this checkpoint's model/ dir from the Hub into, e.g., checkpoint/model/
7uv run python scripts/evaluate.py --checkpoint checkpoint --optimizer rmsprop --episodes 5ALE/SpaceInvaders-v5); the network is not general-purpose across
Atari games without retraining.1@article{mnih2013playing,
2 title={Playing atari with deep reinforcement learning},
3 author={Mnih, Volodymyr and Kavukcuoglu, Koray and Silver, David and Graves, Alex and Antonoglou, Ioannis and Wierstra, Daan and Riedmiller, Martin},
4 journal={arXiv preprint arXiv:1312.5602},
5 year={2013}
6}
7
8@article{mnih2015human,
9 title={Human-level control through deep reinforcement learning},
10 author={Mnih, Volodymyr and Kavukcuoglu, Koray and Silver, David and Rusu, Andrei A and Veness, Joel and Bellemare, Marc G and Graves, Alex and Riedmiller, Martin and Fidjeland, Andreas K and Ostrovski, Georg and others},
11 journal={Nature},
12 volume={518},
13 number={7540},
14 pages={529--533},
15 year={2015},
16 publisher={Nature Publishing Group}
17}