badge_select

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

Select n indices via BADGE gradient embedding k-means++.

Parameters:
  • embeddings – Feature embeddings of shape (n_pool, emb_dim).

  • probs – Predicted class probabilities of shape (n_pool, n_classes).

  • n – Number of indices to select.

  • seed – Seed for the random number generator.

Returns:

Array of n integer indices.