Reinforcement Learning
stable-baselines3
SpaceInvadersNoFrameskip-v4
deep-reinforcement-learning
Eval Results (legacy)
Run this model with HF Jobs
Run Alex48/SpaceInvadersNoFrameskip-v4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Alex48/SpaceInvadersNoFrameskip-v4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Alex48/SpaceInvadersNoFrameskip-v4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Alex48/SpaceInvadersNoFrameskip-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use Alex48/SpaceInvadersNoFrameskip-v4 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="Alex48/SpaceInvadersNoFrameskip-v4", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
Initial commit
Browse filesFiles changed (15)
- .gitattributes+1
- README.mdAdded+81
- args.ymlAdded+83
- config.ymlAdded+29
- dqn-SpaceInvadersNoFrameskip-v4.zipAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_versionAdded+1
- dqn-SpaceInvadersNoFrameskip-v4/dataAdded
- dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/policy.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pthAdded+3
- dqn-SpaceInvadersNoFrameskip-v4/system_info.txtAdded+7
- env_kwargs.ymlAdded+1
- replay.mp4Added+3
- results.jsonAdded+1
- train_eval_metrics.zipAdded+3
31 unmodified lines32333431 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text31 unmodified lines3233343531 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.mp4 filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081---library_name: stable-baselines3tags:- SpaceInvadersNoFrameskip-v4- deep-reinforcement-learning- reinforcement-learning- stable-baselines3model-index:- name: DQN results: - task: type: reinforcement-learning name: reinforcement-learning dataset: name: SpaceInvadersNoFrameskip-v4 type: SpaceInvadersNoFrameskip-v4 metrics: - type: mean_reward value: 794.00 +/- 247.23 name: mean_reward verified: false---
# **DQN** Agent playing **SpaceInvadersNoFrameskip-v4**This is a trained model of a **DQN** agent playing **SpaceInvadersNoFrameskip-v4**using the [stable-baselines3 library](https://github.com/DLR-RM/stable-baselines3)and the [RL Zoo](https://github.com/DLR-RM/rl-baselines3-zoo).
The RL Zoo is a training framework for Stable Baselines3reinforcement learning agents,with hyperparameter optimization and pre-trained agents included.
## Usage (with SB3 RL Zoo)
RL Zoo: https://github.com/DLR-RM/rl-baselines3-zoo<br/>SB3: https://github.com/DLR-RM/stable-baselines3<br/>SB3 Contrib: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib
Install the RL Zoo (with SB3 and SB3-Contrib):```bashpip install rl_zoo3```
```# Download model and save it into the logs/ folderpython -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga Alex48 -f logs/python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/```
If you installed the RL Zoo3 via pip (`pip install rl_zoo3`), from anywhere you can do:```python -m rl_zoo3.load_from_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -orga Alex48 -f logs/python -m rl_zoo3.enjoy --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/```
## Training (with the RL Zoo)```python -m rl_zoo3.train --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/# Upload the model and generate video (when possible)python -m rl_zoo3.push_to_hub --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/ -orga Alex48```
## Hyperparameters```pythonOrderedDict([('batch_size', 32), ('buffer_size', 100000), ('env_wrapper', ['stable_baselines3.common.atari_wrappers.AtariWrapper']), ('exploration_final_eps', 0.01), ('exploration_fraction', 0.1), ('frame_stack', 4), ('gradient_steps', 1), ('learning_rate', 0.0001), ('learning_starts', 100000), ('n_timesteps', 10000000.0), ('optimize_memory_usage', False), ('policy', 'CnnPolicy'), ('target_update_interval', 1000), ('train_freq', 4), ('normalize', False)])```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283!!python/object/apply:collections.OrderedDict- - - algo - dqn - - conf_file - null - - device - auto - - env - SpaceInvadersNoFrameskip-v4 - - env_kwargs - null - - eval_episodes - 5 - - eval_freq - 25000 - - gym_packages - [] - - hyperparams - null - - log_folder - logs/ - - log_interval - -1 - - max_total_trials - null - - n_eval_envs - 1 - - n_evaluations - null - - n_jobs - 1 - - n_startup_trials - 10 - - n_timesteps - 1000000 - - n_trials - 500 - - no_optim_plots - false - - num_threads - -1 - - optimization_log_path - null - - optimize_hyperparameters - false - - progress - false - - pruner - median - - sampler - tpe - - save_freq - 100000 - - save_replay_buffer - false - - seed - 3242211519 - - storage - null - - study_name - null - - tensorboard_log - '' - - track - false - - trained_agent - '' - - truncate_last_trajectory - true - - uuid - false - - vec_env - dummy - - verbose - 1 - - wandb_entity - null - - wandb_project_name - sb3 - - wandb_tags - [] - - yaml_file - null1234567891011121314151617181920212223242526272829!!python/object/apply:collections.OrderedDict- - - batch_size - 32 - - buffer_size - 100000 - - env_wrapper - - stable_baselines3.common.atari_wrappers.AtariWrapper - - exploration_final_eps - 0.01 - - exploration_fraction - 0.1 - - frame_stack - 4 - - gradient_steps - 1 - - learning_rate - 0.0001 - - learning_starts - 100000 - - n_timesteps - 10000000.0 - - optimize_memory_usage - false - - policy - CnnPolicy - - target_update_interval - 1000 - - train_freq - 4123version https://git-lfs.github.com/spec/v1oid sha256:6526c75d2aab149fb8a33789a536b59ff21d3335df7535760934e0c159021175size 2722480711.8.0a2123version https://git-lfs.github.com/spec/v1oid sha256:7a6edc7dc842a574379bede3a7fb4d41843b86641b9248d95b19cf959cc92aa0size 13505739123version https://git-lfs.github.com/spec/v1oid sha256:5884d000da089a1d98d2f9284741a6ac57d52037035966483b1dc0f7ebebbc61size 13504937123version https://git-lfs.github.com/spec/v1oid sha256:d030ad8db708280fcae77d87e973102039acd23a11bdecc3db8eb6c0ac940ee1size 4311234567- OS: Linux-5.10.147+-x86_64-with-glibc2.29 # 1 SMP Sat Dec 10 16:00:40 UTC 2022- Python: 3.8.10- Stable-Baselines3: 1.8.0a2- PyTorch: 1.13.1+cu116- GPU Enabled: True- Numpy: 1.21.6- Gym: 0.21.01{}123version https://git-lfs.github.com/spec/v1oid sha256:3e41ea531f1520c05a66684eec10c00f10517eb05cfa19ef4beda5810799ae6esize 2397581{"mean_reward": 794.0, "std_reward": 247.2326839234651, "is_deterministic": false, "n_eval_episodes": 10, "eval_datetime": "2023-02-20T23:46:14.319918"}123version https://git-lfs.github.com/spec/v1oid sha256:14d915c56248fdebdce8c0310d15a3aa0f7c7ba9cfecb6f43cb35f65efbb59a9size 37873.gitattributes+1
README.mdAdded+81
args.ymlAdded+83
config.ymlAdded+29
dqn-SpaceInvadersNoFrameskip-v4.zipAdded+3
dqn-SpaceInvadersNoFrameskip-v4/_stable_baselines3_versionAdded+1
dqn-SpaceInvadersNoFrameskip-v4/dataAdded
dqn-SpaceInvadersNoFrameskip-v4/policy.optimizer.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/policy.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/pytorch_variables.pthAdded+3
dqn-SpaceInvadersNoFrameskip-v4/system_info.txtAdded+7
env_kwargs.ymlAdded+1
replay.mp4Added+3
results.jsonAdded+1
train_eval_metrics.zipAdded+3