margin_score

probly.evaluation.active_learning.strategies.margin_score = <flextype.singledispatch.Flexdispatch object>

Score each sample by negative margin. Higher = smaller margin = more informative.

Parameters:

probs – Class probability matrix of shape (n_pool, n_classes).

Returns:

Per-sample scores of shape (n_pool,). Negative margin so that higher = more informative.