stable-baselines3/tests
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
..
__init__.py Init: TD3 2019-09-05 17:29:41 +02:00
test_buffers.py Fix: Reshape action in DictRolloutBuffer (#1395) 2023-03-29 16:25:05 +02:00
test_callbacks.py Multiprocessing support for HerReplayBuffer (#704) 2023-03-20 12:03:57 +01:00
test_cnn.py Modified ActorCriticPolicy to support non-shared features extractor (#1148) 2022-12-20 15:12:05 +01:00
test_custom_policy.py Removed shared layers in mlp_extractor (#1292) 2023-01-23 14:55:19 +01:00
test_deterministic.py Add the argument dtype (default to float32) to the noise (#1301) 2023-02-07 13:42:14 +01:00
test_dict_env.py Fix support of image like normalized inputs (#1214) 2022-12-20 13:18:28 +01:00
test_distributions.py Fix tests/test_distributions.py type hint (#1186) 2022-11-29 11:27:59 +01:00
test_env_checker.py Make check_env assertions in regards to observation_space more actionable (#1400) 2023-03-29 15:26:03 +02:00
test_envs.py Drop gym.GoalEnv and other minor changes initally from #780 (#1184) 2022-11-28 18:22:31 +01:00
test_gae.py Standardize the use of from gym import spaces (#1240) 2023-01-02 14:51:11 +01:00
test_her.py Update changelog and cleanup (#1434) 2023-04-08 15:36:55 +02:00
test_identity.py Removed shared layers in mlp_extractor (#1292) 2023-01-23 14:55:19 +01:00
test_logger.py Add stats window argument (#1424) 2023-04-05 11:33:26 +02:00
test_monitor.py Automatically create missing directories of `filenames passed to ResultsWriter` (#1072) 2022-09-21 13:14:38 +02:00
test_predict.py Standardize the use of from gym import spaces (#1240) 2023-01-02 14:51:11 +01:00
test_preprocessing.py Add support for multidimensional spaces.MultiBinary observations (#1179) 2022-12-08 18:46:41 +01:00
test_run.py Upgrade black formatting (#1310) 2023-02-02 11:58:41 +01:00
test_save_load.py Upgrade black formatting (#1310) 2023-02-02 11:58:41 +01:00
test_sde.py Remove deprecated features and attributes (#1104) 2022-10-11 10:55:16 +02:00
test_spaces.py Standardize the use of from gym import spaces (#1240) 2023-01-02 14:51:11 +01:00
test_tensorboard.py Fix test_vec_normalize.py, test_tensorboard.py and common/monitor.py type hint (#1194) 2023-01-13 18:28:22 +01:00
test_train_eval_mode.py Remove deprecated features and attributes (#1104) 2022-10-11 10:55:16 +02:00
test_utils.py Rename the observations variable in the evaluation util to avoid shadowing (#1288) 2023-04-11 18:00:33 +02:00
test_vec_check_nan.py Upgrade code to Python 3.7+ syntax using pyupgrade (#887) 2022-04-25 13:01:38 +03:00
test_vec_envs.py Fix Atari Roms download, enable RUF linting (#1379) 2023-03-12 18:47:52 +01:00
test_vec_extract_dict_obs.py Support for VecMonitor for gym3-style environments (#311) 2021-04-13 18:09:31 +02:00
test_vec_monitor.py Drop gym.GoalEnv and other minor changes initally from #780 (#1184) 2022-11-28 18:22:31 +01:00
test_vec_normalize.py Multiprocessing support for HerReplayBuffer (#704) 2023-03-20 12:03:57 +01:00
test_vec_stacked_obs.py Refactor observation stacking (#1238) 2023-02-06 22:41:59 +01:00