mlr_measures_regr.logloss: Log Loss Regression Measure

mlr_measures_regr.loglossR Documentation

Log Loss Regression Measure

Description

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))

Parameters

Id Type Default Range
eps numeric 1e-15 [0, 1]

Meta Information

  • Type: "regr"

  • Range: [0, \infty)

  • Minimize: TRUE

  • Required prediction: distr

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

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
MeasureRegrLogloss$new()

Method clone()

The objects of this class are cloneable with this method.

Usage
MeasureRegrLogloss$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


mlr-org/mlr3proba documentation built on April 12, 2025, 4:38 p.m.