Skip to content

Commit

Permalink
Fix various typos (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck authored Jul 29, 2024
1 parent bd3c0c6 commit 6ad6fa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
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
and orientation.

Expand Down
2 changes: 1 addition & 1 deletion stable_baselines3/common/on_policy_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def collect_rollouts(
# Reshape in case of discrete action
actions = actions.reshape(-1, 1)

# Handle timeout by bootstraping with value function
# Handle timeout by bootstrapping with value function
# see GitHub issue #633
for idx, done in enumerate(dones):
if (
Expand Down
2 changes: 1 addition & 1 deletion stable_baselines3/her/her_replay_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def truncate_last_trajectory(self) -> None:
"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."
)
# 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]:
# set done = True for last episodes
self.dones[self.pos - 1, env_idx] = True
Expand Down

0 comments on commit 6ad6fa5

Please sign in to comment.