Skip to contents

Mean absolute error loss function

Usage

loss_mae(y_hat, y, ...)

Arguments

y_hat

A numeric vector representing predictions

y

A numeric vector representing observations

...

Additional arguments passed from other functions; ignored

Value

A scalar value