stable-baselines3-contrib
stable-baselines3-contrib copied to clipboard
Fix `RecurrentRolloutBuffer` not taking `env_change` into account for resetting states
Description
Context
- [ ] I have raised an issue to propose this change (required)
closes #284
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)
- [ ] The functionality/performance matches that of the source (required for new training algorithms or training-related features).
- [ ] I have updated the tests accordingly (required for a bug fix or a new feature).
- [ ] I have included an example of using the feature (required for new features).
- [ ] I have included baseline results (required for new training algorithms or training-related features).
- [ ] I have updated the documentation accordingly.
- [ ] I have updated the changelog accordingly (required).
- [ ] I have reformatted the code using
make format(required) - [ ] I have checked the codestyle using
make check-codestyleandmake lint(required) - [ ] I have ensured
make pytestandmake typeboth pass. (required)
Note: we are using a maximum length of 127 characters per line