.. Tianshou documentation master file, created by sphinx-quickstart on Sat Mar 28 15:58:19 2020. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Tianshou! ==================== **Tianshou** (`天授 `_) is a reinforcement learning platform based on pure PyTorch. Unlike existing reinforcement learning libraries, which are mainly based on TensorFlow, have many nested classes, unfriendly API, or slow-speed, Tianshou provides a fast-speed framework and pythonic API for building the deep reinforcement learning agent. The supported interface algorithms include: * `Policy Gradient (PG) `_ * `Deep Q-Network (DQN) `_ * `Double DQN (DDQN) `_ with n-step returns * `Advantage Actor-Critic (A2C) `_ * `Deep Deterministic Policy Gradient (DDPG) `_ * `Proximal Policy Optimization (PPO) `_ * `Twin Delayed DDPG (TD3) `_ * `Soft Actor-Critic (SAC) `_ Tianshou supports parallel workers for all algorithms as well. All of these algorithms are reformatted as replay-buffer based algorithms. Installation ------------ Tianshou is currently hosted on `PyPI `_. You can simply install Tianshou with the following command: :: pip3 install tianshou You can also install with the newest version through GitHub: :: pip3 install git+https://github.com/thu-ml/tianshou.git@master After installation, open your python console and type :: import tianshou as ts print(ts.__version__) If no error occurs, you have successfully installed Tianshou. .. toctree:: :maxdepth: 1 :caption: Tutorials tutorials/dqn tutorials/concepts tutorials/tabular tutorials/trick .. toctree:: :maxdepth: 1 :caption: API Docs api/tianshou.data api/tianshou.env api/tianshou.policy api/tianshou.trainer api/tianshou.exploration api/tianshou.utils .. toctree:: :maxdepth: 1 :caption: Community contributing Indices and tables ------------------ * :ref:`genindex` * :ref:`modindex` * :ref:`search`