Fixed minor issues
This commit is contained in:
parent
49658515b0
commit
79c2eda4fe
@ -83,7 +83,7 @@ for i in range(1000):
|
|||||||
env.render()
|
env.render()
|
||||||
|
|
||||||
if terminated or truncated:
|
if terminated or truncated:
|
||||||
observation = env.reset()
|
observation, info = env.reset()
|
||||||
```
|
```
|
||||||
|
|
||||||
### Black-box Environments
|
### Black-box Environments
|
||||||
@ -131,7 +131,7 @@ for i in range(5):
|
|||||||
observation, reward, terminated, truncated, info = env.step(action)
|
observation, reward, terminated, truncated, info = env.step(action)
|
||||||
|
|
||||||
# terminated or truncated is always True as we are working on the episode level, hence we always reset()
|
# terminated or truncated is always True as we are working on the episode level, hence we always reset()
|
||||||
observation = env.reset()
|
observation, info = env.reset()
|
||||||
```
|
```
|
||||||
|
|
||||||
To show all available environments, we provide some additional convenience variables. All of them return a dictionary
|
To show all available environments, we provide some additional convenience variables. All of them return a dictionary
|
||||||
@ -257,9 +257,9 @@ for i in range(5):
|
|||||||
rewards += reward
|
rewards += reward
|
||||||
|
|
||||||
if terminated or truncated:
|
if terminated or truncated:
|
||||||
print(base_env_id, rewards)
|
print(rewards)
|
||||||
rewards = 0
|
rewards = 0
|
||||||
observation = env.reset()
|
observatio, infon = env.reset()
|
||||||
```
|
```
|
||||||
|
|
||||||
## Icon Attribution
|
## Icon Attribution
|
||||||
|
Loading…
Reference in New Issue
Block a user