badge_embed

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

Extract embeddings for BADGE selection.

Dispatches on the estimator type. If the estimator implements BadgeEstimator, uses its embed method. Otherwise, falls back to using x_unlabeled directly with a warning.

Parameters:
  • estimator – A fitted estimator.

  • x_unlabeled – The unlabeled feature matrix (used as fallback embeddings).

Returns:

Embeddings of shape (n_pool, emb_dim).