pub fn accuracy(predictions: &[usize], targets: &[usize]) -> f64
Classification accuracy: fraction of correct predictions.