pub fn accuracy(truth: &[usize], predicted: &[usize]) -> Result<f64, ErrorsJSL>
The fraction of labels predicted correctly.