Loss functions for use in evaluating learner fits.

loss_squared_error(pred, observed)

loss_loglik_true_cat(pred, observed)

loss_loglik_binomial(pred, observed)

loss_loglik_multinomial(pred, observed)

loss_squared_error_multivariate(pred, observed)

Arguments

pred

A vector of predicted values

observed

A vector of observed values

Value

A vector of loss values

Note

Assumes predicted probabilities are "packed" into a single vector.