Function to calculate the log loss evaluation metric.

Evaluation.log_loss(data.observed, data.predicted,
  eps = 0.000000000000001)

Arguments

data.observed

the true data (Y).

data.predicted

the Y outcome from the estimator.

eps

is a small offset to let the log not go to Inf.

Value

double the calculated log loss.