Fix indentation in RL tips doc (#657)

* Update rl_tips.rst

indent fix to make if done and its following statement work

* Fix indentation and update changelog

* Skip type check for python 3.9

Co-authored-by: paulg <cove9988@gmail.com>
This commit is contained in:
Antonin RAFFIN 2021-11-10 16:54:20 +00:00 committed by GitHub
parent 2bb4500948
commit e75e1de4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 10 deletions

View file

@ -40,6 +40,8 @@ jobs:
- name: Type check - name: Type check
run: | run: |
make type make type
# Skip Type Check for python 3.9, see https://github.com/python/typed_ast/issues/169
if: ${{ matrix.python-version != 3.9 }}
- name: Check codestyle - name: Check codestyle
run: | run: |
make check-codestyle make check-codestyle

View file

@ -194,15 +194,15 @@ If you want to quickly try a random agent on your environment, you can also do:
.. code-block:: python .. code-block:: python
env = YourEnv() env = YourEnv()
obs = env.reset() obs = env.reset()
n_steps = 10 n_steps = 10
for _ in range(n_steps): for _ in range(n_steps):
# Random action # Random action
action = env.action_space.sample() action = env.action_space.sample()
obs, reward, done, info = env.step(action) obs, reward, done, info = env.step(action)
if done: if done:
obs = env.reset() obs = env.reset()
**Why should I normalize the action space?** **Why should I normalize the action space?**

View file

@ -30,6 +30,7 @@ Documentation:
^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
- Add highway-env to projects page (@eleurent) - Add highway-env to projects page (@eleurent)
- Add tactile-gym to projects page (@ac-93) - Add tactile-gym to projects page (@ac-93)
- Fix indentation in the RL tips page (@cove9988)
Release 1.3.0 (2021-10-23) Release 1.3.0 (2021-10-23)
@ -835,4 +836,4 @@ And all the contributors:
@ShangqunYu @PierreExeter @JacopoPan @ltbd78 @tom-doerr @Atlis @liusida @09tangriro @amy12xx @juancroldan @ShangqunYu @PierreExeter @JacopoPan @ltbd78 @tom-doerr @Atlis @liusida @09tangriro @amy12xx @juancroldan
@benblack769 @bstee615 @c-rizz @skandermoalla @MihaiAnca13 @davidblom603 @ayeright @cyprienc @benblack769 @bstee615 @c-rizz @skandermoalla @MihaiAnca13 @davidblom603 @ayeright @cyprienc
@wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum @wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum
@eleurent @ac-93 @eleurent @ac-93 cove9988