Module dopt.nnet.losses

Contains some utilities for constructing graphs for common loss functions.

Functions

NameDescription
crossEntropy(hypothesis, groundTruth)Creates a cross entropy loss term suitable for multiclass classification problems.
squaredError(hypothesis, groundTruth)Creates a squared error loss term suitable for regression (and multi-target regression) problems.