diff --git a/docs/misc/changelog.rst b/docs/misc/changelog.rst index 43f9a08..10334d4 100644 --- a/docs/misc/changelog.rst +++ b/docs/misc/changelog.rst @@ -52,6 +52,7 @@ Documentation: - Fixed typo in install doc(@jlp-ue) - Clarified and standardized verbosity documentation - Added link to a GitHub issue in the custom policy documentation (@AlexPasqua) +- Fixed typos (@Akhilez) Release 1.6.0 (2022-07-11) @@ -1040,4 +1041,4 @@ And all the contributors: @simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu @xy9485 @Gregwar @ycheng517 @quantitative-technologies @bcollazo @git-thor @TibiGG @cool-RR @MWeltevrede @Melanol @qgallouedec @francescoluciano @jlp-ue @burakdmb @timothe-chaumont @honglu2875 -@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr +@anand-bala @hughperkins @sidney-tio @AlexPasqua @dominicgkerr @Akhilez @Rocamonde diff --git a/stable_baselines3/common/on_policy_algorithm.py b/stable_baselines3/common/on_policy_algorithm.py index 4063680..0589fe1 100644 --- a/stable_baselines3/common/on_policy_algorithm.py +++ b/stable_baselines3/common/on_policy_algorithm.py @@ -143,7 +143,7 @@ class OnPolicyAlgorithm(BaseAlgorithm): :param callback: Callback that will be called at each step (and at the beginning and end of the rollout) :param rollout_buffer: Buffer to fill with rollouts - :param n_steps: Number of experiences to collect per environment + :param n_rollout_steps: Number of experiences to collect per environment :return: True if function returned with at least `n_rollout_steps` collected, False if callback terminated rollout prematurely. """ diff --git a/stable_baselines3/ppo/ppo.py b/stable_baselines3/ppo/ppo.py index d65201b..cfcdfb1 100644 --- a/stable_baselines3/ppo/ppo.py +++ b/stable_baselines3/ppo/ppo.py @@ -234,7 +234,7 @@ class PPO(OnPolicyAlgorithm): # No clipping values_pred = values else: - # Clip the different between old and new value + # Clip the difference between old and new value # NOTE: this depends on the reward scaling values_pred = rollout_data.old_values + th.clamp( values - rollout_data.old_values, -clip_range_vf, clip_range_vf