2018-09-15 12:26:23 +05:30
2018-08-31 17:23:01 +05:30
2018-09-14 23:51:27 +05:30
2018-09-14 23:54:38 +05:30
2018-09-12 15:35:23 +05:30
2018-09-15 12:26:23 +05:30
2018-09-13 08:46:07 +05:30
2018-09-15 00:11:29 +05:30
2018-08-31 17:25:08 +05:30

Description


Reimplementation of Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor.

Contributions are welcome. If you find any mistake (very likely) or know how to make it more stable, don't hesitate to send a pull request.

Requirements


Run


For SAC :

python main.py --env-name Humanoid-v2 --scale_R 20 

For SAC (Hard Update):

python main.py --env-name Humanoid-v2 --scale_R 20 --tau 1 --value_update 1000

For SAC (Deterministic, Hard Update):

python main.py --env-name Humanoid-v2 --scale_R 20 --deterministic True --tau 1 --value_update 1000

Results


My results on Humanoid-v2 environment using SAC, SAC(hard update) and SAC(deterministic, hard update). This is a plot of average rewards at every 10000 step interval

sac all

Hyperparameters


Use the following hyperparameters for different environment:

Parameters Value
Shared -
optimizer Adam
learning rate 3x104
discount (γ) 0.99
replay buffer size 1x106
number of hidden layers (all networks) 2
number of hidden units per layer 256
number of samples per minibatch 256
nonlinearity ReLU
SAC -
target smoothing coefficient (τ) 0.005
target update interval 1
gradient steps 1
SAC (Hard Update) -
target smoothing coefficient (τ) 1
target update interval 1000
gradient steps (except humanoids) 4
gradient steps (humanoids) 1
Environment Reward Scale
HalfCheetah-v2 5
Hopper-v2 5
Walker2d-v2 5
Ant-v2 5
Humanoid-v2 20
S
Description
PyTorch implementation of soft actor critic
Readme MIT
1.4 MiB
Languages
Python 96%
Makefile 4%