mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-07-20 19:12:43 +00:00
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:
parent
2bb4500948
commit
e75e1de4c1
3 changed files with 13 additions and 10 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -40,6 +40,8 @@ jobs:
|
|||
- name: Type check
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
make check-codestyle
|
||||
|
|
|
|||
|
|
@ -194,15 +194,15 @@ If you want to quickly try a random agent on your environment, you can also do:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
env = YourEnv()
|
||||
obs = env.reset()
|
||||
n_steps = 10
|
||||
for _ in range(n_steps):
|
||||
# Random action
|
||||
action = env.action_space.sample()
|
||||
obs, reward, done, info = env.step(action)
|
||||
if done:
|
||||
obs = env.reset()
|
||||
env = YourEnv()
|
||||
obs = env.reset()
|
||||
n_steps = 10
|
||||
for _ in range(n_steps):
|
||||
# Random action
|
||||
action = env.action_space.sample()
|
||||
obs, reward, done, info = env.step(action)
|
||||
if done:
|
||||
obs = env.reset()
|
||||
|
||||
|
||||
**Why should I normalize the action space?**
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ Documentation:
|
|||
^^^^^^^^^^^^^^
|
||||
- Add highway-env to projects page (@eleurent)
|
||||
- Add tactile-gym to projects page (@ac-93)
|
||||
- Fix indentation in the RL tips page (@cove9988)
|
||||
|
||||
|
||||
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
|
||||
@benblack769 @bstee615 @c-rizz @skandermoalla @MihaiAnca13 @davidblom603 @ayeright @cyprienc
|
||||
@wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum
|
||||
@eleurent @ac-93
|
||||
@eleurent @ac-93 cove9988
|
||||
|
|
|
|||
Loading…
Reference in a new issue