-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Metrics] AUC reorder is unstable #4237
Comments
@teddykoker mind have look? :] |
Functional metrics... cc. @justusschock @SkafteNicki |
With PyTorch it is hard to have a more stable sorting. Currently. Not sure, if we should actually implement it manually or remove it. @SkafteNicki do you think we actually need this? |
IMO we should probably remove it. Moving forward with the metrics package we should only support features that are stable. |
You can assign this to me then. Should I just straight remove it or do you want to deprecate it? |
I think rather deprecate it first and then remove it in 1.1 or 1.2 |
🐛 Bug
When
auc(x, y, reorder=True)
is called (True
is the default) it reorders the xs and ys. It usestorch.argsort
onx
internally, which is unstable and does not take the second keyy
into account when sorting. In some cases this leads to reordering that changes the order ofys
in an undesirable way resulting in incorrect metric computation.See an example colab. I'm sure there is a more minimal example possible, this is what I encountered when implementing a different issue.
Expected behavior
Either a stable way of sorting across both
x
andy
or removing thereorder
argument entirely.Environment
Colab.
The text was updated successfully, but these errors were encountered: