stable-baselines3/stable_baselines3
Jan-Hendrik Ewers 4a1137ba3a
Add np.ndarray as a recognized type for TB histograms. (#1635)
* Add np.ndarray as a recognized type for TB histograms.

Torch histograms allow th.Tensor, np.ndarray, and caffe2 formatted strings. This commits expands the TensorBoardOutputFormat's capabilities to log the two former types.

* Update changelog to reflect bug fix

* fix: try/catch for if either np or torch aren't at the required versions. See https://github.com/DLR-RM/stable-baselines3/pull/1635 for more details

* fix: Add comment describing the test for when add_histogram should not have been called

* Cleanup

---------

Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
2024-08-02 11:55:27 +02:00
..
a2c Add rollout_buffer_class parameter to on-policy algorithms (#1720) 2023-10-27 17:36:24 +02:00
common Add np.ndarray as a recognized type for TB histograms. (#1635) 2024-08-02 11:55:27 +02:00
ddpg Update TD3/DDPG/DQN defaults for consistency (#1785) 2024-01-12 16:05:14 +01:00
dqn Updated DQN optimizer input to only include q_network parameters as input (#1963) 2024-07-05 19:07:55 +02:00
her Fix various typos (#1981) 2024-07-29 10:44:23 +02:00
ppo Remove unnecessary SDE resampling in PPO update (#1933) 2024-06-29 20:07:32 +02:00
sac Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
td3 Fix various typos (#1926) 2024-05-15 15:19:39 +02:00
__init__.py Add Gymnasium support (#1327) 2023-04-14 13:13:59 +02:00
py.typed Rename to stable-baselines3 2020-05-05 15:02:35 +02:00
version.txt Add np.ndarray as a recognized type for TB histograms. (#1635) 2024-08-02 11:55:27 +02:00