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 itsembedmethod. Otherwise, falls back to usingx_unlabeleddirectly 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).