mlr_measures_dens.logloss | R Documentation |
Calculates the cross-entropy, or logarithmic (log), loss.
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))
This Measure can be instantiated via the dictionary mlr_measures or with the associated sugar function msr():
MeasureDensLogloss$new() mlr_measures$get("dens.logloss") msr("dens.logloss")
Id | Type | Default | Range |
eps | numeric | 1e-15 | [0, 1] |
Type: "density"
Range: [0, \infty)
Minimize: TRUE
Required prediction: pdf
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.
mlr3::Measure
-> mlr3proba::MeasureDens
-> MeasureDensLogloss
new()
Creates a new instance of this R6 class.
MeasureDensLogloss$new()
clone()
The objects of this class are cloneable with this method.
MeasureDensLogloss$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.