mirror of
https://github.com/wassname/ray.git
synced 2026-08-15 12:45:23 +08:00
[rllib] Propagate model options correctly in ARS / ES, to action dist of PPO (#2974)
* fix * fix * fix it * propagate conf to action dist * move carla example too * rr * Update policies.py * wip * lint
This commit is contained in:
@@ -13,7 +13,7 @@ View the `code for this example`_.
|
||||
|
||||
.. note::
|
||||
|
||||
For an overview of Ray's reinforcement learning library, see `Ray RLlib <http://ray.readthedocs.io/en/latest/rllib.html>`__.
|
||||
For an overview of Ray's reinforcement learning library, see `RLlib <http://ray.readthedocs.io/en/latest/rllib.html>`__.
|
||||
|
||||
To run the application, first install **ray** and then some dependencies:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ View the `code for this example`_.
|
||||
|
||||
.. note::
|
||||
|
||||
For an overview of Ray's reinforcement learning library, see `Ray RLlib <http://ray.readthedocs.io/en/latest/rllib.html>`__.
|
||||
For an overview of Ray's reinforcement learning library, see `RLlib <http://ray.readthedocs.io/en/latest/rllib.html>`__.
|
||||
|
||||
|
||||
To run this example, you will need to install `TensorFlow with GPU support`_ (at
|
||||
|
||||
@@ -77,7 +77,7 @@ Ray comes with libraries that accelerate deep learning and reinforcement learnin
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:caption: Ray RLlib
|
||||
:caption: RLlib
|
||||
|
||||
rllib.rst
|
||||
rllib-training.rst
|
||||
|
||||
@@ -50,7 +50,7 @@ In the above example, note that the ``env_creator`` function takes in an ``env_c
|
||||
OpenAI Gym
|
||||
----------
|
||||
|
||||
RLlib uses Gym as its environment interface for single-agent training. For more information on how to implement a custom Gym environment, see the `gym.Env class definition <https://github.com/openai/gym/blob/master/gym/core.py>`__. You may also find the `SimpleCorridor <https://github.com/ray-project/ray/blob/master/examples/custom_env/custom_env.py>`__ and `Carla simulator <https://github.com/ray-project/ray/blob/master/examples/carla/env.py>`__ example env implementations useful as a reference.
|
||||
RLlib uses Gym as its environment interface for single-agent training. For more information on how to implement a custom Gym environment, see the `gym.Env class definition <https://github.com/openai/gym/blob/master/gym/core.py>`__. You may also find the `SimpleCorridor <https://github.com/ray-project/ray/blob/master/python/ray/rllib/examples/custom_env.py>`__ and `Carla simulator <https://github.com/ray-project/ray/blob/master/python/ray/rllib/examples/carla/env.py>`__ example env implementations useful as a reference.
|
||||
|
||||
Performance
|
||||
~~~~~~~~~~~
|
||||
|
||||
@@ -46,7 +46,7 @@ Custom models should subclass the common RLlib `model class <https://github.com/
|
||||
},
|
||||
})
|
||||
|
||||
For a full example of a custom model in code, see the `Carla RLlib model <https://github.com/ray-project/ray/blob/master/examples/carla/models.py>`__ and associated `training scripts <https://github.com/ray-project/ray/tree/master/examples/carla>`__. The ``CarlaModel`` class defined there operates over a composite (Tuple) observation space including both images and scalar measurements.
|
||||
For a full example of a custom model in code, see the `Carla RLlib model <https://github.com/ray-project/ray/blob/master/python/ray/rllib/examples/carla/models.py>`__ and associated `training scripts <https://github.com/ray-project/ray/tree/master/python/ray/rllib/examples/carla>`__. The ``CarlaModel`` class defined there operates over a composite (Tuple) observation space including both images and scalar measurements.
|
||||
|
||||
Custom Preprocessors
|
||||
--------------------
|
||||
|
||||
@@ -10,7 +10,7 @@ Learn more about RLlib's design by reading the `ICML paper <https://arxiv.org/ab
|
||||
Installation
|
||||
------------
|
||||
|
||||
RLlib has extra dependencies on top of ``ray``. First, you'll need to install either `PyTorch <http://pytorch.org/>`__ or `TensorFlow <https://www.tensorflow.org>`__. Then, install the Ray RLlib module:
|
||||
RLlib has extra dependencies on top of ``ray``. First, you'll need to install either `PyTorch <http://pytorch.org/>`__ or `TensorFlow <https://www.tensorflow.org>`__. Then, install the RLlib module:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user