Function rustrees::accuracy

source ·
pub fn accuracy(x_true: &[f32], x_pred: &[f32]) -> f32
Expand description

computes the accuracy of a binary classification. Used for testing.