[proposal] Public `VecNormalize._normalize_observation`
See original GitHub issueI have saved demonstrations from a particular environment, and also a PPO2 policy trained on a normalized version of the same environment.
To properly compare the unnormalized observations in the demonstration against the PPO2 policy I am using VecNormalize._normalize_observation(obs_demo)
. For ease of use, I’m wondering if the maintainers would be fine with:
- Rename
_normalize_obs
tonormalize_obs
so that it is a “public” method. - Add
training
param tonormalize_obs()
so that we can call thenormalize_obs
without changing normalizing statistics.VecNormalize.step()
would callself.normalize_obs(obs, training=self.training)
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Vectorized Environments - Stable Baselines3 - Read the Docs
Loads a saved VecNormalize object. Parameters. load_path ( str ) – the path to load from. venv ( VecEnv ) – the VecEnv...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
only the first one (the 2nd one would break some code and is maybe too long), and it would be singular i think (but it does not really matter)
Good point, i think this is also a good moment to rename
rew
toreward