Skip to main content

max_error

Function max_error 

Source
pub fn max_error(y_true: &[f32], y_pred: &[f32]) -> f32
Expand description

Maximum residual error max|yᵢ − ŷᵢ|, matching sklearn.metrics.max_error.

§Panics

Panics if y_true and y_pred differ in length.