# Loss Functions¶

class slugnet.loss.Objective[source]

Bases: object

An objective function (or loss function, or optimization score function) is one of the two parameters required to compile a model.

backward(outputs, targets)[source]

Backward function.

outputs, targets : numpy.array
The arrays to compute the derivatives of them.
numpy.array
An array of derivative.
class slugnet.loss.BinaryCrossEntropy(epsilon=1e-11)[source]

Standard binary cross-entropy loss function.

Binary cross-entropy is given by