mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
Appo (#3779)
* Deleted old fork, updated new ray and moved PPO-impala to APPO in ppo folder * Deleted unneccesary vtrace.py file * Update pong-impala.yaml * Cleaned PPO Code * Update pong-impala.yaml * Update pong-impala.yaml * wip * new ifle * refactor * add vtrace off option * revert * support any space * docs * fix comment * remove kl * Update cartpole-appo-vtrace.yaml
This commit is contained in:
@@ -88,6 +88,24 @@ SpaceInvaders 843 ~300
|
||||
:start-after: __sphinx_doc_begin__
|
||||
:end-before: __sphinx_doc_end__
|
||||
|
||||
Asynchronous Proximal Policy Optimization (APPO)
|
||||
------------------------------------------------
|
||||
|
||||
`[paper] <https://arxiv.org/abs/1707.06347>`__
|
||||
`[implementation] <https://github.com/ray-project/ray/blob/master/python/ray/rllib/agents/ppo/appo.py>`__
|
||||
We include an asynchronous variant of Proximal Policy Optimization (PPO) based on the IMPALA architecture. This is similar to IMPALA but using a surrogate policy loss with clipping. Compared to synchronous PPO, APPO is more efficient in wall-clock time due to its use of asynchronous sampling. Using a clipped loss also allows for multiple SGD passes, and therefore the potential for better sample efficiency compared to IMPALA. V-trace can also be enabled to correct for off-policy samples.
|
||||
|
||||
This implementation is currently *experimental*. Consider also using `PPO <rllib-algorithms.html#proximal-policy-optimization-ppo>`__ or `IMPALA <rllib-algorithms.html#importance-weighted-actor-learner-architecture-impala>`__.
|
||||
|
||||
Tuned examples: `PongNoFrameskip-v4 <https://github.com/ray-project/ray/blob/master/python/ray/rllib/tuned_examples/pong-appo.yaml>`__
|
||||
|
||||
**APPO-specific configs** (see also `common configs <rllib-training.html#common-parameters>`__):
|
||||
|
||||
.. literalinclude:: ../../python/ray/rllib/agents/ppo/appo.py
|
||||
:language: python
|
||||
:start-after: __sphinx_doc_begin__
|
||||
:end-before: __sphinx_doc_end__
|
||||
|
||||
Gradient-based
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ RLlib works with several different types of environments, including `OpenAI Gym
|
||||
Algorithm Discrete Actions Continuous Actions Multi-Agent Recurrent Policies
|
||||
============= ======================= ================== =========== ==================
|
||||
A2C, A3C **Yes** `+parametric`_ **Yes** **Yes** **Yes**
|
||||
PPO **Yes** `+parametric`_ **Yes** **Yes** **Yes**
|
||||
PPO, APPO **Yes** `+parametric`_ **Yes** **Yes** **Yes**
|
||||
PG **Yes** `+parametric`_ **Yes** **Yes** **Yes**
|
||||
IMPALA **Yes** `+parametric`_ No **Yes** **Yes**
|
||||
DQN, Rainbow **Yes** `+parametric`_ No **Yes** No
|
||||
|
||||
@@ -50,6 +50,8 @@ Algorithms
|
||||
|
||||
- `Importance Weighted Actor-Learner Architecture (IMPALA) <rllib-algorithms.html#importance-weighted-actor-learner-architecture-impala>`__
|
||||
|
||||
- `Asynchronous Proximal Policy Optimization (APPO) <rllib-algorithms.html#asynchronous-proximal-policy-optimization-appo>`__
|
||||
|
||||
* Gradient-based
|
||||
|
||||
- `Advantage Actor-Critic (A2C, A3C) <rllib-algorithms.html#advantage-actor-critic-a2c-a3c>`__
|
||||
|
||||
Reference in New Issue
Block a user