-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added missing metrics when logging on tensorboard (#1298) #1299
base: master
Are you sure you want to change the base?
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 <[email protected]> Co-authored-by: Francesco Scalera <[email protected]>
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 [email protected]
Co-authored-by: Francesco Scalera [email protected]
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-codestyle
andmake lint
(required)make pytest
andmake type
both 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