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.
Environment:
LibAUC Version: 2.0.0
PyTorch Version: 2.3.1
passing
surr_loss="hinge"toPairwiseAUCLossresults in aValueError: Out of options!.Looking at
libauc/losses/surrogate.pyinside theget_surrogate_lossdispatcher, there is noelifstatement for'hinge', so it falls through to theelseblock and crashes.Environment:
LibAUC Version: 2.0.0
PyTorch Version: 2.3.1