In pool-based active learning the model picks which unlabeled points to send to an oracle. With posterior samples (an ensemble or MC dropout), probs has shape (S, N, C): probs[s, n] is . Let be the predictive distribution. Natural logs throughout.
acquisition_scores(probs, method) returns an array of N scores:
"entropy": (maximum-entropy sampling)."least_confident": ."bald": .top_k(scores, k): the indices of the k largest scores, best first, ties broken by the smaller index.
batch_bald_greedy(probs, k): greedy BatchBALD. Start with an empty batch . Repeat k times: add the point that maximises the joint score
where the joint predictive is , summed exactly over all label configurations. Ties go to the smaller index. Return the list of chosen indices in order.