You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When auc(x, y, reorder=True) is called (True is the default) it reorders the xs and ys. It uses torch.argsort on x internally, which is unstable and does not take the second key y into account when sorting. In some cases this leads to reordering that changes the order of ys in an undesirable way resulting in incorrect metric computation.
馃悰 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: