Skip to content
/ acer Public

PyTorch implementation of both discrete and continuous ACER

License

Notifications You must be signed in to change notification settings

dchetelat/acer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACER

License: MIT

PyTorch implementation of both discrete and continuous ACER algorithm for reinforcement learning.

(Original paper: Deepmind's Sample Efficient Actor-Critic with Experience Replay.)

The implementation is set up to interface with OpenAI Gym, although I tried to keep the code as clean and general as possible. I took much inspiration from Kaixhin's version: the main differences are that my implementation includes continuous control agents, as well as a correct implementation of ACER's truncated backpropagation trust-region updates. Working hyperparameter values are provided for the CartPole-v0 and ContinuousMountainCar-v0 toy environments.

I think my code only deviates in one way from a vanilla ACER implementation: the sparse reward structure in Continuous Mountain Car made exploration too difficult through a simple entropy regularizer, so I added as well an annealed Ornstein-Uhlenbeck noise process to the actions to stimulate inertia-driven exploration (like in DDPG). Depending on the type of target environment, this might not be necessary.

About

PyTorch implementation of both discrete and continuous ACER

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages