pub fn accuracy(x_true: &[f32], x_pred: &[f32]) -> f32
computes the accuracy of a binary classification. Used for testing.