Loss¶ class Loss[fuente]¶ Bases: ABC Abstract base class for computing Loss. Methods evaluate(predict, target) An abstract method for evaluating the loss function. gradient(predict, target) An abstract method for computing the gradient.