.. role:: raw-html-m2r(raw) :format: html .. image:: ../logo/reagent_banner.png :alt: Banner ReAgent: Applied Reinforcement Learning Platform ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. image:: https://circleci.com/gh/facebookresearch/ReAgent/tree/main.svg?style=svg :target: https://circleci.com/gh/facebookresearch/ReAgent/tree/main -------------------------------------------------------------------------------------------------------------------------------------------------------------------- Overview ~~~~~~~~ ReAgent is an open source end-to-end platform for applied reinforcement learning (RL) developed and used at Facebook. ReAgent is built in Python and uses PyTorch for modeling and training and TorchScript for model serving. The platform contains workflows to train popular deep RL algorithms and includes data preprocessing, feature transformation, distributed training, counterfactual policy evaluation, and optimized serving. For more detailed information about ReAgent, please read `releases post `_ and `white paper `_. The source code is available here: `Source code `_. The platform was once named "Horizon" but we have adopted the name "ReAgent" recently to emphasize its broader scope in decision making and reasoning. Algorithms Supported ~~~~~~~~~~~~~~~~~~~~ Classic Off-Policy algorithms: * Discrete-Action `DQN `_ * Parametric-Action DQN * `Double DQN `_\ , `Dueling DQN `_\ , `Dueling Double DQN `_ * Distributional RL `C51 `_\ , `QR-DQN `_ * `Twin Delayed DDPG `_ (TD3) * `Soft Actor-Critic `_ (SAC) * `Critic Regularized Regression `_ (CRR) * `Proximal Policy Optimization Algorithms `_ (PPO) RL for recommender systems: * `Seq2Slate `_ * `SlateQ `_ Counterfactual Evaluation: * `Doubly Robust `_ (for bandits) * `Doubly Robust `_ (for sequential decisions) * `MAGIC `_ Multi-Arm and Contextual Bandits: * `UCB1 `_ * `MetricUCB `_ * `Thompson Sampling `_ * `LinUCB `_ Others: * `Cross-Entropy Method `_ * `Synthetic Return for Credit Assignment `_ Installation ~~~~~~~~~~~~~~~~~~~ ReAgent can be installed via. Docker or manually. Detailed instructions on how to install ReAgent can be found here: :ref:`installation`. Tutorial ~~~~~~~~~~~~ ReAgent is designed for large-scale, distributed recommendation/optimization tasks where we don’t have access to a simulator. In this environment, it is typically better to train offline on batches of data, and release new policies slowly over time. Because the policy updates slowly and in batches, we use off-policy algorithms. To test a new policy without deploying it, we rely on counter-factual policy evaluation (CPE), a set of techniques for estimating a policy based on the actions of another policy. We also have a set of tools to facilitate applying RL in real-world applications: * Domain Analysis Tool, which analyzes state/action feature importance and identifies whether the problem is a suitable for applying batch RL * Behavior Cloning, which clones from the logging policy to bootstrap the learning policy safely Detailed instructions on how to use ReAgent can be found here: :ref:`usage`. License ~~~~~~~~~~~~~~ | ReAgent is released under a BSD license. Find out more about it here: :ref:`license`. | Terms of Use - ``_ | Privacy Policy - ``_ | Copyright © 2022 Meta Platforms, Inc Citing ~~~~~~ Cite our work by: :: @article{gauci2018horizon, title={Horizon: Facebook's Open Source Applied Reinforcement Learning Platform}, author={Gauci, Jason and Conti, Edoardo and Liang, Yitao and Virochsiri, Kittipat and Chen, Zhengxing and He, Yuchen and Kaden, Zachary and Narayanan, Vivek and Ye, Xiaohui}, journal={arXiv preprint arXiv:1811.00260}, year={2018} } Table of Contents ~~~~~~~~~~~~~~~~~~~~~ .. toctree:: :caption: Getting Started Installation Usage RASP (Not Actively Maintained) .. toctree:: :caption: Advanced Topics Continuous Integration .. toctree:: :caption: Package Reference Core Data Gym Evaluation Lite MAB Model Managers Model Utils Net Builders Optimizers Models Prediction Preprocessing Training Workflow All Modules .. toctree:: :caption: Others Github License