compute_accuracy¶
- probly.evaluation.active_learning.compute_accuracy = <flextype.singledispatch.Flexdispatch object>¶
Compute classification accuracy.
- Parameters:
y_pred – Predicted class labels, shape (n,).
y_true – Ground-truth class labels, shape (n,).
- Returns:
Fraction of correct predictions in [0, 1].