Open shimonShouei opened 2 months ago
Hello,
what you are proposing only works for tensorboard logger, right? what do you propose as behavior for the other loggers?
Getting through the SummaryWriter to the writer
Sounds like a simple enough alternative? (3 lines change: https://stable-baselines3.readthedocs.io/en/master/guide/tensorboard.html#directly-accessing-the-summary-writer)
What you are proposing only works for tensorboard logger, right? what do you propose as behavior for the other loggers?
It works for me in stdout too. I don't use the others.
Sounds like a simple enough alternative?
The Record func is very convenient and powerful and I would rather use it than involve the writer. though, even that solution isn't good enough for my problem because it doesn't dump them (the scalars) under the same run.
🚀 Feature
Add support for multi-variable logging in the logger module using add_scalars. Enable the logger to record and visualize multiple related scalar values simultaneously using a single record call. For example:
Motivation
Currently, the logger module only supports recording single scalar values per call. When working with complex experiments where multiple related metrics need to be tracked and compared, the lack of multi-variable logging can be limiting. Allowing multi-variable logging would provide a clearer, more organized way to monitor and visualize these metrics, enhancing the experiment analysis process.
Pitch
Introduce an option in the logger module to use the add_scalars function, enabling the recording of multiple related scalar values with a single record call. This feature will simplify the process of logging and visualizing multiple metrics in TensorBoard or similar tools, improving the monitoring and analysis of DRL experiments. To implement this, add the following code to the writer method in the TensorBoardOutputFormat class within the logger module:
Alternatives
Getting through the SummaryWriter to the writer
Additional context
Including this feature would help users who track multiple metrics to maintain cleaner and more organized logs. It would also align the logger module with the capabilities of TensorBoard's add_scalars function, offering a more consistent user experience.
Checklist