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].

Examples using probly.evaluation.active_learning.compute_accuracy

Active Learning with sklearn - Margin vs Random

Active Learning with sklearn - Margin vs Random

Active Learning with PyTorch - BADGE Selection

Active Learning with PyTorch - BADGE Selection