mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-18 09:54:10 +00:00
Fix various typos (#1981)
This commit is contained in:
parent
bd3c0c6530
commit
6ad6fa55b6
3 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
We as members, contributors, and leaders pledge to make participation in our
|
We as members, contributors, and leaders pledge to make participation in our
|
||||||
community a harassment-free experience for everyone, regardless of age, body
|
community a harassment-free experience for everyone, regardless of age, body
|
||||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||||
identity and expression, level of experience, education, socio-economic status,
|
identity and expression, level of experience, education, socioeconomic status,
|
||||||
nationality, personal appearance, race, religion, or sexual identity
|
nationality, personal appearance, race, religion, or sexual identity
|
||||||
and orientation.
|
and orientation.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@ class OnPolicyAlgorithm(BaseAlgorithm):
|
||||||
# Reshape in case of discrete action
|
# Reshape in case of discrete action
|
||||||
actions = actions.reshape(-1, 1)
|
actions = actions.reshape(-1, 1)
|
||||||
|
|
||||||
# Handle timeout by bootstraping with value function
|
# Handle timeout by bootstrapping with value function
|
||||||
# see GitHub issue #633
|
# see GitHub issue #633
|
||||||
for idx, done in enumerate(dones):
|
for idx, done in enumerate(dones):
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ class HerReplayBuffer(DictReplayBuffer):
|
||||||
"If you are in the same episode as when the replay buffer was saved,\n"
|
"If you are in the same episode as when the replay buffer was saved,\n"
|
||||||
"you should use `truncate_last_trajectory=False` to avoid that issue."
|
"you should use `truncate_last_trajectory=False` to avoid that issue."
|
||||||
)
|
)
|
||||||
# only consider epsiodes that are not finished
|
# only consider episodes that are not finished
|
||||||
for env_idx in np.where(self._current_ep_start != self.pos)[0]:
|
for env_idx in np.where(self._current_ep_start != self.pos)[0]:
|
||||||
# set done = True for last episodes
|
# set done = True for last episodes
|
||||||
self.dones[self.pos - 1, env_idx] = True
|
self.dones[self.pos - 1, env_idx] = True
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue