class usencrypt.ai.losses.Loss(_objective, _objective_prime)#

Base class for neural network loss functions.

Loss objects define the loss function to be minimized during the training of a usencrypt.ai.nn.NeuralNetwork model with its associated compile() method.


This is a base class and it is not intended to be called directly. Users are expected to instantiate each of its subclasses directly.

Available Loss Functions

For examples on how to work with the neural network model, please refer to our corresponding tutorials.