metrics.logloss.unsafe: Logarithmic Loss (logloss)

Description Usage Arguments Value Examples

View source: R/metrics.logloss.unsafe.R

Description

This function computes the Logarithmic loss without shrinking predictions (you may encounter infinite predictions).

Usage

1
metrics.logloss.unsafe(preds, labels, eps = 1e-15)

Arguments

preds

Type: numeric. The predictions.

labels

Type: numeric. The labels (0, 1).

eps

Type: numeric. The shrinkage between the 0 and 1's bounds.

Value

The Logarithmic loss.

Examples

1
2
set.seed(11111)
metrics.logloss.unsafe(preds = runif(10000, 0, 1), labels = round(runif(10000, 1)))

Laurae2/LauraeDS documentation built on May 29, 2019, 2:25 p.m.