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
{{ message }}
Repository navigation
ValueError: Out of options! when passing surr_loss='hinge' to PairwiseAUCLoss #73
passing surr_loss="hinge" to PairwiseAUCLoss results in a ValueError: Out of options!.
Looking at libauc/losses/surrogate.py inside the get_surrogate_loss dispatcher, there is no elif statement for 'hinge', so it falls through to the else block and crashes.
Thanks for the report! hinge_loss was defined and listed in __all__ but accidentally omitted from the get_surrogate_loss dispatcher, so it passed the assert check but hit the ValueError. Fixed in surrogate.py#L85-L86
Activity
PenGuln commentedon Jun 24, 2026
Thanks for the report! hinge_loss was defined and listed in
__all__but accidentally omitted from theget_surrogate_lossdispatcher, so it passed the assert check but hit the ValueError. Fixed in surrogate.py#L85-L86AmanKashyap0807 commentedon Jun 24, 2026
@PenGuln Thank you so much for correcting f_ns and f_ps, you can also correct it from documentation on https://docs.libauc.org/_modules/libauc/losses/auc.html#PairwiseAUCLoss
PenGuln commentedon Jun 25, 2026
Thanks for the heads-up — the documentation has been updated as well. Please let us know if you run into any further issues!