stable-baselines3/stable_baselines3/common
npit 4232f9daa9
Rename the observations variable in the evaluation util to avoid shadowing (#1288)
* Rename the observations variable in the evaluation util to avoid shadowing

This enables a callback in evaluate_policy to have access to the
observation vector that is fed to the environment step function,
which is currently shadowed by the output observation.

* Update changelog

* Add test

* Move assignment outside of the loop

---------

Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
Co-authored-by: Antonin Raffin <antonin.raffin@dlr.de>
2023-04-11 18:00:33 +02:00
..
envs Downgrade sphinx-autodoc-typehints (#1291) 2023-01-23 10:56:45 +01:00
sb2_compat Upgrade code to Python 3.7+ syntax using pyupgrade (#887) 2022-04-25 13:01:38 +03:00
vec_env Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
__init__.py Update docs (custom policy, type hints) (#167) 2020-09-29 20:41:14 +03:00
atari_wrappers.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
base_class.py Add stats window argument (#1424) 2023-04-05 11:33:26 +02:00
buffers.py Fix: Reshape action in DictRolloutBuffer (#1395) 2023-03-29 16:25:05 +02:00
callbacks.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
distributions.py Update changelog and cleanup (#1434) 2023-04-08 15:36:55 +02:00
env_checker.py Make check_env assertions in regards to observation_space more actionable (#1400) 2023-03-29 15:26:03 +02:00
env_util.py Fix stable_baselines3/common/env_util.py type hint (#1192) 2022-11-29 15:36:55 +01:00
evaluation.py Rename the observations variable in the evaluation util to avoid shadowing (#1288) 2023-04-11 18:00:33 +02:00
logger.py Switch to pyproject.toml and ruff (#1361) 2023-03-11 22:15:26 +01:00
monitor.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
noise.py Add the argument dtype (default to float32) to the noise (#1301) 2023-02-07 13:42:14 +01:00
off_policy_algorithm.py Add stats window argument (#1424) 2023-04-05 11:33:26 +02:00
on_policy_algorithm.py Add stats window argument (#1424) 2023-04-05 11:33:26 +02:00
policies.py Update changelog and cleanup (#1434) 2023-04-08 15:36:55 +02:00
preprocessing.py Fix support of image like normalized inputs (#1214) 2022-12-20 13:18:28 +01:00
results_plotter.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
running_mean_std.py Fix test_vec_normalize.py, test_tensorboard.py and common/monitor.py type hint (#1194) 2023-01-13 18:28:22 +01:00
save_util.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
torch_layers.py Removed shared layers in mlp_extractor (#1292) 2023-01-23 14:55:19 +01:00
type_aliases.py Fix stable_baselines3/common/type_aliases.py type hint (#1189) 2022-11-29 12:26:16 +01:00
utils.py Fix image-based normalized env loading (#1321) 2023-02-15 14:17:18 +01:00