From 6ad6fa55b6e38c8456dd333f71fe45373f66fe90 Mon Sep 17 00:00:00 2001 From: Chris Schindlbeck Date: Mon, 29 Jul 2024 10:44:23 +0200 Subject: [PATCH] Fix various typos (#1981) --- CODE_OF_CONDUCT.md | 2 +- stable_baselines3/common/on_policy_algorithm.py | 2 +- stable_baselines3/her/her_replay_buffer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 137c957..0ca0338 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -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. diff --git a/stable_baselines3/common/on_policy_algorithm.py b/stable_baselines3/common/on_policy_algorithm.py index 1ba36d5..2624537 100644 --- a/stable_baselines3/common/on_policy_algorithm.py +++ b/stable_baselines3/common/on_policy_algorithm.py @@ -208,7 +208,7 @@ class OnPolicyAlgorithm(BaseAlgorithm): # 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 ( diff --git a/stable_baselines3/her/her_replay_buffer.py b/stable_baselines3/her/her_replay_buffer.py index 579c6eb..20214e7 100644 --- a/stable_baselines3/her/her_replay_buffer.py +++ b/stable_baselines3/her/her_replay_buffer.py @@ -396,7 +396,7 @@ class HerReplayBuffer(DictReplayBuffer): "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