[Feature Request] add_scalars to wirte func in TensorBoardOutputFormat in logger #1994
Open
2 tasks done
Labels
enhancement
New feature or request
🚀 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
The text was updated successfully, but these errors were encountered: