Space Invaders DQN

A convolutional deep Q-network trained from scratch on Atari frame stacks for the Hugging Face Deep RL Course. Each decision uses four 64 × 64 grayscale images. The emulator repeats each action for four frames.

The published checkpoint reached 24,000 training steps. Training clips rewards and treats the loss of a life as an episode boundary. Evaluation keeps the original rewards and continues until the end of the game.

Evaluation

The deterministic policy scored 261.50 ± 27.66 (mean and population standard deviation) across 30 held-out game seeds. The course score, mean minus standard deviation, was 233.84. Ten separate seeds were used to compare training checkpoints. Per-game returns are included in evaluation.json.

Run locally

Install the packages in requirements.txt. Run python train.py to train a new policy, or run python replay.py with FFmpeg installed to render the published policy on the first held-out seed.

Downloads last month
18
Video Preview
loading

Evaluation results

  • Mean reward on SpaceInvadersNoFrameskip-v4
    self-reported
    261.500000 +/- 27.663152