square_loss: Square loss

View source: R/accuracy_metrics.R

square_lossR Documentation

Square loss

Description

Square loss

Usage

square_loss(y, y_hat)

Arguments

y

Vector of observations or ground-truths.

y_hat

Vector of predictions.

Value

The vector of square errors between y and y_hat.

Examples

square_loss(c(2.3, 4.2, 1.8), c(2.2, 4.6, 1.7))

EQRN documentation built on April 4, 2025, 12:45 a.m.