Skip to main content

accuracy

Function accuracy 

Source
pub fn accuracy(y_true: &[usize], y_pred: &[usize]) -> Option<f64>
Expand description

Fraction of exact matches between predicted and true class labels. None if lengths differ or are empty.