(v3.3.6) - Sinergym normalization fix for DRL evaluations and new Ubuntu and Python version #419
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When an experiment is conducted using the evaluation callback, the evaluations during intermediate learning processes do not use the learned calibration of normalized variables from the training and instead update on their own.
For an evaluation, the model should use the same calibration (without updating) and start from the values at the point where the training is interrupted. This patch fixes that functionality to ensure this happens.
Due to the recent update from the opyplus package, as mentioned in issue #418, this update caused an error by breaking the dependency system on internal packages. The calls to these packages with new names in Sinergym have been fixed.
Since this update made opyplus compatible with new Python versions, we have taken advantage of this update to become compatible with the new versions of Ubuntu and Python (24.04 and 3.12.3), making us officially compatible.
Fixes #418
Types of changes
Checklist:
autopep8
second level aggressive.isort
.cd docs && make spelling && make html
pass (required if documentation has been updated.)pytest tests/ -vv
pass. (required).pytype -d import-error sinergym/
pass. (required)Changelog:
EvalLoggerCallback
for deactivate normalization update and update mean and var calibration from training env automatically (when NormalizeObservation was activated)