Skip to contents

Compute weighted log loss

Usage

ci_log_loss(truth, estimate, weights = NULL, eps = 1e-06)

Arguments

truth

Numeric or logical observed outcomes.

estimate

Numeric predicted probabilities or mean outcomes.

weights

Optional non-negative weights.

eps

Small numeric value used to keep estimates away from 0 and 1.

Value

A numeric weighted log loss. Smaller is better.