Losses

Losses

These are all the available loss functions exported by ERM. See the corresponding usage page to understand how and when to use these functions.

AbsoluteLoss() constructs the l1/absolute loss. Use with Model().

source

HingeLoss() constructs the hinge loss (i.e., for SVM). Use with Model().

source

HuberLoss() constructs Huber loss. Use with Model(). Can also invoke as HuberLoss(alpha), which allows specification of the tradeoff parameter alpha > 0. Note that HuberLoss() defaults to alpha = 1.0.

source

LogisticLoss() constructs the logistic loss for classification problems. Use with Model()

source

SigmoidLoss() constructs the sigmoid loss for classification problems. Use with Model()

source

SquareLoss() constructs the l2/squared loss. Use with Model().

source