Skip to main content

mae

Function mae 

Source
pub fn mae(preds: &[u64], actuals: &[u64]) -> f64
Expand description

Mean absolute error between predictions and actuals.

Lengths must match. The empty case returns 0. The sums accumulate in u128 so near-u64 values cannot overflow.