Calculates the cross-entropy, or logarithmic (log), loss.
The logloss, in the context of probabilistic predictions, is defined as the negative log probability density function, \(f\), evaluated at the observed value, \(y\), $$L(f, y) = -\log(f(y))$$
Range: \([0, \infty)\)
eps parameter, see
Creates a new instance of this R6 class.
MeasureDensLogloss$new(eps = 0.000000000000001)
Very small number to set zero-valued predicted probabilities to in order to prevent errors in log(0) and 1/0 calculation.
The objects of this class are cloneable with this method.
MeasureDensLogloss$clone(deep = FALSE)
Whether to make a deep clone.