Learn R Programming

shapr (version 1.1.0)

mse_loss: Mean Squared Error Loss

Description

Mean Squared Error Loss

Usage

mse_loss(y, pred)

Value

The mean squared error as a single numeric value.

Arguments

y

Numeric vector of true responses.

pred

Numeric vector (or scalar) of predictions.

Author

Martin Jullum