besskge.loss
Functions for computing the batch loss based on the scores of positive and negative samples.
Classes
|
Base class for a loss function. |
|
The log-sigmoid loss function (see [SDNT19]). |
|
Base class for margin-based loss functions. |
|
The margin ranking (or pairwise hinge) loss function. |
|
The sampled softmax cross-entropy loss (see [JCMB15] and [CJM+22]). |