Status: Maintenance (expect bug fixes and minor updates)
This is an educational resource produced by OpenAI that makes it easier to learn about deep reinforcement learning (deep RL).
For the unfamiliar: reinforcement learning (RL) is a machine learning approach for teaching agents how to solve tasks by trial and error. Deep RL refers to the combination of RL with deep learning.
This module contains a variety of helpful resources, including:
- a short introduction to RL terminology, kinds of algorithms, and basic theory,
- an essay about how to grow into an RL research role,
- a curated list of important papers organized by topic,
- a well-documented code repo of short, standalone implementations of key algorithms,
- and a few exercises to serve as warm-ups.
Get started at spinningup.openai.com!
This fork has been updated and tested to run successfully on MacBooks with Apple Silicon (M1/M2 chips), including PPO training, policy evaluation, and plotting.
For optional MuJoCo installation, refer to the MuJoCo branch’s installation instructions.
# 1. Create environment
conda create -n spinup python=3.8
conda activate spinup
# 2. Install updated dependencies
pip install tensorflow-macos
pip install tensorflow-metal
pip install box2d-py
pip install "gym[classic_control]"
# 3. Clone and prepare repo
git clone https://github.com/tae-h-yang/spinningup.git
cd spinningup
brew install open-mpi
# 4. Install the repo
pip install -e .
setup.py
was updated to use modern, ARM-compatible versions of:
tensorflow
(viatensorflow-macos
)torch
gym
(>= 0.26)seaborn
(>= 0.11)
If you reference or use Spinning Up in your research, please cite:
@article{SpinningUp2018,
author = {Achiam, Joshua},
title = {{Spinning Up in Deep Reinforcement Learning}},
year = {2018}
}