HingeLoss#
- class pyqit.core.HingeLoss(backend=None)[source]#
Bases:
BaseLossHinge loss for binary labels encoded as 0/1.
Select it with
Trainer(loss_fn="hinge"). Models emit class-1 probabilities, so both the probability and the label are mapped onto[-1, 1]before the margin is taken. A confident correct prediction reaches zero loss.- classmethod get_test_params()#
List constructor kwargs used to parametrize this class in the test suite.