Skip to content
raphaelsennPublic

About

Minimal implementations of deep reinforcement learning algorithms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

tinyrl

tinyrl@Algorithms

tinyrl implements the following deep reinforcement learning algorithms:

tinyrl@MuJoCo

pusher_gif humanoid_gif hopper_gif walker2d_gif ant_gif halfcheetah_gif
pusher_lrcurve humanoid_lrcurve hopper_lrcurve walker2d_lrcurve ant_lrcurve halfcheetah_lrcurve

Figures: Learning curves for the OpenAI Gym continuous control tasks Pusher-v5, Humanoid-v5, Hopper-v5, Walker2d-v5, Ant-v5, and HalfCheetah-v5. The shaded region represents the standard deviation of the average evaluation over 3 trials (across 3 different seeds). Curves are smoothed with an average filter.

Environment SAC TD3 DDPG
Pusher-v5 -23.75 ± 1.71 -25.58 ± 0.54 -30.00 ± 0.10
Humanoid-v5 5042.91 ± 65.42 5091.95 ± 18.53 158.16 ± 2.16
HalfCheetah-v5 10821.033 ± 253.32 10272.87 ± 482.82 10886.83 ± 320.85
Ant-v5 2894.23 ± 96.81 4325.436361 ± 543.04 1074.45 ± 311.84
Hopper-v5 3279.45 ± 49.56 3418.76 ± 164.38 2090.75 ± 352.70
Walker2d-v5 4293.15 ± 466.90 3730.64 ± 191.56 1891.57 ± 233.16

Table 1: Max Average Return over 3 trials of 1 million time steps. Maximum value for each task is bolded. ± corresponds to a single standard deviation over trials.

tinyrl@Atari

Note that due to my limited compute resources, I evaluated only two environments: SpaceInvaders and Breakout.

dqn_spaceinvaders_gif dqn_breakout_gif
dqn_training_algorithm q_learning_objective

Figures: Learning curves of DQN for the Atari games SpaceInvaders and Breakout.

tinyrl@Install

  1. Clone the repository:
git clone https://github.com/raphaelsenn/tinyrl
  1. Enter the repository:
cd tinyrl
  1. Create and activate a conda environment:
conda create -n tinyrl python=3.11 -y
conda activate tinyrl
  1. Install the python requirements:
pip install -r requirements.txt
  1. Install:
pip install -e .

Citations

@misc{lillicrap2019continuouscontroldeepreinforcement,
      title={Continuous control with deep reinforcement learning}, 
      author={Timothy P. Lillicrap and Jonathan J. Hunt and Alexander Pritzel and Nicolas Heess and Tom Erez and Yuval Tassa and David Silver and Daan Wierstra},
      year={2019},
      eprint={1509.02971},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1509.02971}, 
}

@misc{fujimoto2018addressingfunctionapproximationerror,
      title={Addressing Function Approximation Error in Actor-Critic Methods}, 
      author={Scott Fujimoto and Herke van Hoof and David Meger},
      year={2018},
      eprint={1802.09477},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/1802.09477}, 
}

@misc{haarnoja2018softactorcriticoffpolicymaximum,
      title={Soft Actor-Critic: Off-Policy Maximum Entropy Deep Reinforcement Learning with a Stochastic Actor}, 
      author={Tuomas Haarnoja and Aurick Zhou and Pieter Abbeel and Sergey Levine},
      year={2018},
      eprint={1801.01290},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1801.01290}, 
}


@misc{fujimoto2023salestateactionrepresentationlearning,
      title={For SALE: State-Action Representation Learning for Deep Reinforcement Learning}, 
      author={Scott Fujimoto and Wei-Di Chang and Edward J. Smith and Shixiang Shane Gu and Doina Precup and David Meger},
      year={2023},
      eprint={2306.02451},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2306.02451}, 
}

About

Minimal implementations of deep reinforcement learning algorithms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages