-
Notifications
You must be signed in to change notification settings - Fork 425
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
Forward metric name to update_metric
#2623
Comments
@mvpatel2000 is it a feature you would consider or it's considered an unnecessary breaking change? Happy to look into implementing it. |
@antoinebrl apologies for delay, I missed this issue. Let me pass it around internally. I'll get back to you soon! |
@antoinebrl do you have a use case in mind that would require this breaking change? |
Hi @mvpatel2000 ! We are doing multi-head training where we have, for example 2 classification heads that we train jointly. The metrics associated to the heads have the same type (ie |
Got it, thanks! That's very helpful. The whole way we do metrics seems unideal... I have a rough design in mind that I need to flesh out which would revamp this. It is one of the major points I wish to revamp (along with checkpointing) ahead of 1.0. Unfortunately, this would take a bit of time since it is breaking. As a short-term unblock, one trick you can do is attach name to |
Thanks for considering this feature request! We went with something fairly similar to your suggestion. We created a metric wrapper to be able to attach a name to any metric. I'm happy to provide a fresh perspective on your refactoring around the metrics. I'm also curious to know what you have in mind regarding checkpointing. |
We can send out a RFC when we're ready for it :) |
🚀 Feature Request
Motivation
get_metrics
returns a mapping between strings andMetric
s. However the name isn't available in theupdate_metric
. Checking for types might not be sufficient to uniquely characteristic a metric.Implementation
The proposed new signature for the
update_metric
method of theComposerModel
:The text was updated successfully, but these errors were encountered: