Skip to main content

mape

Function mape 

Source
pub fn mape(predictions: &[f32], targets: &[f32]) -> Result<f32, EvalError>
Expand description

Mean absolute percentage error, skipping pairs where the target is zero.

Returns 0.0 for empty inputs or when all targets are zero.