Instructions to use rabitrabi/dqn-SpaceInvadersNoFrameskip-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use rabitrabi/dqn-SpaceInvadersNoFrameskip-v4 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="rabitrabi/dqn-SpaceInvadersNoFrameskip-v4", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
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
Evaluation results
- Mean reward on SpaceInvadersNoFrameskip-v4self-reported261.500000 +/- 27.663152