Calculates the cross-entropy, or logarithmic (log), loss.
Details
The Log Loss, 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))$$
Parameter details
eps
(numeric(1)
)
Very small number to substitute zero values in order to prevent errors in e.g. log(0) and/or division-by-zero calculations. Default value is 1e-15.
Super classes
mlr3::Measure
-> mlr3::MeasureRegr
-> MeasureRegrLogloss