log_loss: Log Loss

Description Usage Arguments Value Examples

Description

An implementation of the Log-Loss function for the binomial case

Usage

1
log_loss(Y, p, eps = 1e-10, verb = TRUE)

Arguments

p

Vector of fitted probabilities for each Y.

eps

Machine error to hanlde limit cases on the logarithm function

Value

The value of the Log Loss function (numeric). The smaller, the better

Examples

1
2
3
log_loss(true_values, fitted probabilities)
log_loss(true_values, fitted probabilities)
log_loss(true_values, fitted probabilities, 1e-30, FALSE)

PaoloLuciano/bpwpm2 documentation built on June 6, 2019, 5:47 p.m.