Added missing metrics when logging on tensorboard (#1298)#1299
Added missing metrics when logging on tensorboard (#1298)#1299rogierz wants to merge 1 commit intoDLR-RM:masterfrom
Conversation
|
@timothe-chaumont could you review/test this one? |
Yep I'll have a look at it by the end of the week :) |
Co-authored-by: Riccardo Sepe <pastarick@users.noreply.github.com> Co-authored-by: Francesco Scalera <francescoscalera99@users.noreply.github.com>
|
Thank you @rogierz. The changes proposed in this PR follows the implementation in pytorch tensorboard writer, and if added to SB3 they would have the following impact:
Given these two side-effects, we can either:
HParam(hparam_dict, metric_list=['train/value_loss', 'custom_metric'])hence forcing users to log custom metrics separately with: logger.record("custom_metric", 1.0) |
|
@timothe-chaumont thanks for reviewing.
yes, look like a better fix, but |
Yes, I think that the value given here has no impact on the logged data so we can use 0.
I guess that some metrics (e.g. ep_len_mean) wouldn't be exactly zero at the very start of the training, but I agree that meaningful use of this value must be rare. As it might be confusing we might as well remove it :) |
|
@rogierz do you want to add this change:
Or should I do it? |
|
I think I won’t be able to do it in the near future
|


Co-authored-by: Riccardo Sepe pastarick@users.noreply.github.com
Co-authored-by: Francesco Scalera francescoscalera99@users.noreply.github.com
Added missing metrics when logging on tensorboard (#1298)
Description
Now both the hparam_dict and the metric_dict are stored on Tensorboard
Motivation and Context
Tensorboard library allows storing both hparam_dict and metric_dict, this PR changes sb3 implementation so as to be
compatible with tensorboard.
The problem is described in issue #1298.
Closes #1298.
Types of changes
Checklist
make format(required)make check-codestyleandmake lint(required)make pytestandmake typeboth pass. (required)make doc(required)Note: You can run most of the checks using
make commit-checks.Note: we are using a maximum length of 127 characters per line