Fix rllib image in readme and doc typo (#5579)

* fix

* rlllig
This commit is contained in:
Eric Liang
2019-08-29 16:02:16 -07:00
committed by GitHub
parent fb40787603
commit fe5bd09b46
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -133,6 +133,8 @@ If TensorBoard is installed, automatically visualize all trial results:
RLlib Quick Start
-----------------
.. image:: https://github.com/ray-project/ray/raw/master/doc/source/rllib-stack.svg
`RLlib`_ is an open-source library for reinforcement learning built on top of Ray that offers both high scalability and a unified API for a variety of applications.
.. code-block:: bash
+4 -4
View File
@@ -52,10 +52,10 @@ Policies can be implemented using `any framework <https://github.com/ray-project
return -tf.reduce_mean(
action_dist.logp(train_batch["actions"]) * train_batch["rewards"])
# <class 'ray.rllib.policy.tf_policy_template.MyTFPolicy'>
MyTFPolicy = build_tf_policy(
name="MyTFPolicy",
loss_fn=policy_gradient_loss)
# <class 'ray.rllib.policy.tf_policy_template.MyTFPolicy'>
MyTFPolicy = build_tf_policy(
name="MyTFPolicy",
loss_fn=policy_gradient_loss)
Sample Batches
~~~~~~~~~~~~~~