toshikwa/sac-discrete.pytorch
À propos
PyTorch implementation of SAC-Discrete.
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalSAC-Discrete in PyTorch
This is a PyTorch implementation of SAC-Discrete[1]. I tried to make it easy for readers to understand the algorithm. Please let me know if you have any questions.
UPDATE
- 2020.5.10
Setup
If you are using Anaconda, first create the virtual environment.
conda create -n sacd python=3.7 -y
conda activate sacd
You can install Python liblaries using pip.
pip install -r requirements.txt
If you're using other than CUDA 10.2, you may need to install PyTorch for the proper version of CUDA. See instructions for more details.
Examples
You can train SAC-Discrete agent like this example here.
python train.py --config config/sacd.yaml --env_id MsPacmanNoFrameskip-v4 --cuda --seed 0
If you want to use Prioritized Experience Replay(PER), N-step return or Dueling Networks, change use_per, multi_step or dueling_net respectively.
Results
I just evaluated vanilla SAC-Discrite, with PER, N-step Return or Dueling Networks in MsPacmanNoFrameskip-v4. The graph below shows the test returns along with environment steps (which equals environment frames divided by the factor of 4). Also, note that curves are smoothed by exponential moving average with weight=0.5 for visualization.


N-step Return and PER seems helpful to better utilize RL signals (e.g. sparse rewards).
References
[1] Christodoulou, Petros. "Soft Actor-Critic for Discrete Action Settings." arXiv preprint arXiv:1910.07207 (2019).
[2] Schaul, Tom, et al. "Prioritized experience replay." arXiv preprint arXiv:1511.05952 (2015).
[3] Wang, Ziyu, et al. "Dueling network architectures for deep reinforcement learning." arXiv preprint arXiv:1511.06581 (2015).
Explorer des projets similaires
Chargement…