Tianshou/docs/index.rst

73 lines
2.3 KiB
ReStructuredText
Raw Normal View History

2020-03-28 22:01:23 +08:00
.. 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.
2020-03-29 10:22:03 +08:00
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) <https://papers.nips.cc/paper/1713-policy-gradient-methods-for-reinforcement-learning-with-function-approximation.pdf>`_
* `Deep Q-Network (DQN) <https://storage.googleapis.com/deepmind-media/dqn/DQNNaturePaper.pdf>`_
* `Double DQN (DDQN) <https://arxiv.org/pdf/1509.06461.pdf>`_ with n-step returns
2020-03-30 22:52:25 +08:00
* `Advantage Actor-Critic (A2C) <https://openai.com/blog/baselines-acktr-a2c/>`_
2020-03-29 10:22:03 +08:00
* `Deep Deterministic Policy Gradient (DDPG) <https://arxiv.org/pdf/1509.02971.pdf>`_
* `Proximal Policy Optimization (PPO) <https://arxiv.org/pdf/1707.06347.pdf>`_
* `Twin Delayed DDPG (TD3) <https://arxiv.org/pdf/1802.09477.pdf>`_
* `Soft Actor-Critic (SAC) <https://arxiv.org/pdf/1812.05905.pdf>`_
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 <https://pypi.org/project/tianshou/>`_. 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
2020-03-29 15:18:33 +08:00
tutorials/dqn
tutorials/concepts
2020-03-29 10:22:03 +08:00
.. toctree::
:maxdepth: 1
:caption: API Docs
2020-03-28 22:01:23 +08:00
.. toctree::
2020-03-29 10:22:03 +08:00
:maxdepth: 1
:caption: Community
2020-03-28 22:01:23 +08:00
2020-03-29 10:22:03 +08:00
contributing
2020-03-28 22:01:23 +08:00
Indices and tables
2020-03-29 10:22:03 +08:00
------------------
2020-03-28 22:01:23 +08:00
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`