.. 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: * :class:`~tianshou.policy.PGPolicy` `Policy Gradient `_ * :class:`~tianshou.policy.DQNPolicy` `Deep Q-Network `_ * :class:`~tianshou.policy.DQNPolicy` `Double DQN `_ with n-step returns * :class:`~tianshou.policy.A2CPolicy` `Advantage Actor-Critic `_ * :class:`~tianshou.policy.DDPGPolicy` `Deep Deterministic Policy Gradient `_ * :class:`~tianshou.policy.PPOPolicy` `Proximal Policy Optimization `_ * :class:`~tianshou.policy.TD3Policy` `Twin Delayed DDPG `_ * :class:`~tianshou.policy.SACPolicy` `Soft Actor-Critic `_ * :class:`~tianshou.policy.ImitationPolicy` 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 -U 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. Tianshou is still under development, you can also check out the documents in stable version through `tianshou.readthedocs.io/en/stable/ `_. .. toctree:: :maxdepth: 1 :caption: Tutorials tutorials/dqn tutorials/concepts tutorials/trick tutorials/cheatsheet .. 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 contributor Indices and tables ------------------ * :ref:`genindex` * :ref:`modindex` * :ref:`search`