Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed missing verbose parameter passing (#1006) #1011

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

BurakDmb
Copy link
Contributor

Description

According to #1006, in the _init_callback method, the verbose parameter is not used when creating EvalCallback. Therefore I opened a PR to fix this situation.

Motivation and Context

  • I have raised an issue to propose this change (required for new features and bug fixes)

This closes #1006.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (update in the documentation)

Checklist:

  • I've read the CONTRIBUTION guide (required)
  • I have updated the changelog accordingly (required).
  • My change requires a change to the documentation.
  • I have updated the tests accordingly (required for a bug fix or a new feature).
  • I have updated the documentation accordingly.
  • I have reformatted the code using make format (required)
  • I have checked the codestyle using make check-codestyle and make lint (required)
  • I have ensured make pytest and make type both pass. (required)
  • I have checked that the documentation builds using make doc (required)

Note: You can run most of the checks using make commit-checks.

Note: we are using a maximum length of 127 characters per line

@qgallouedec
Copy link
Collaborator

Hi, thanks you for the PR.
There is the same issue in sb3-contrib, in MaskblePPO:

https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/blob/fc68af8841f172d739f42d90c4f93b4a526c7ea7/sb3_contrib/ppo_mask/ppo_mask.py#L206-L214

Can you submit a PR on this repo as well?

@BurakDmb
Copy link
Contributor Author

BurakDmb commented Aug 14, 2022

Hi, thanks you for the PR. There is the same issue in sb3-contrib, in MaskblePPO:

https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/blob/fc68af8841f172d739f42d90c4f93b4a526c7ea7/sb3_contrib/ppo_mask/ppo_mask.py#L206-L214

Can you submit a PR on this repo as well?

According to your comment, I created an issue and also a PR in the SB3 contrib repo. Could you please check if it suits the need?

Stable-Baselines-Team/stable-baselines3-contrib#97

@qgallouedec qgallouedec merged commit 792e3bc into DLR-RM:master Aug 16, 2022
@qgallouedec
Copy link
Collaborator

Merged, thank you!

honglu2875 pushed a commit to honglu2875/stable-baselines3 that referenced this pull request Aug 18, 2022
araffin added a commit that referenced this pull request Aug 23, 2022
#1004)

* include `running_mean` and `running_val` when updating target networks in DQN, SAC, TD3.

* Update stable_baselines3/common/utils.py

Co-authored-by: Antonin RAFFIN <[email protected]>

* Precompute batch norm parameters in `_setup_model` and directly copy them in the target update.

* include `running_mean` and `running_val` when updating target networks in DQN, SAC, TD3.

* Update stable_baselines3/common/utils.py

Co-authored-by: Antonin RAFFIN <[email protected]>

* Precompute batch norm parameters in `_setup_model` and directly copy them in the target update.

* Fix `DictReplayBuffer.next_observations` type (#1013)

* Fix DictReplayBuffer.next_observations type

* Update changelog

Co-authored-by: Antonin RAFFIN <[email protected]>

* Fixed missing verbose parameter passing (#1011)

Co-authored-by: Quentin Gallouédec <[email protected]>

* Support for `device=auto` buffers and set it as default value (#1009)

* Default device is "auto" for buffer + auto device support in BufferBaseClass

* Update docstring

* Update tests

* Unify tests

* Update changelog

* Fix tests on CUDA device

Co-authored-by: Antonin RAFFIN <[email protected]>
Co-authored-by: Antonin Raffin <[email protected]>

* Precompute batch norm parameters in `_setup_model` and directly copy them in the target update.

* Update test

* Add comments and update tests

* Bump version

* Remove one extra space to conform code style.

* Update docstrings

Co-authored-by: Antonin RAFFIN <[email protected]>
Co-authored-by: Quentin Gallouédec <[email protected]>
Co-authored-by: Burak Demirbilek <[email protected]>
Co-authored-by: Antonin Raffin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] _init_callback in base_class does not handle verbose parameter when creating EvalCallback
2 participants