Skip to content

ValueError: Out of options! when passing surr_loss='hinge' to PairwiseAUCLoss #73

Description

@AmanKashyap0807

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions