Co-training (Blum and Mitchell, 1998) trains two classifiers on two feature views of the same examples. Each classifier labels the unlabeled points it is confident about, and those labels become training data for the other. This question covers only the selection step.
Implement pick_pseudo_labels(conf_a, pred_a, conf_b, pred_b, threshold).
N. conf_* holds each view's confidence in [0, 1], and pred_* holds its predicted class.threshold.(indices, labels): the selected indices in increasing order, and their labels.ValueError.threshold must be in (0, 1]. Otherwise raise ValueError.[0, 1]. Otherwise raise ValueError.Build two boolean masks, one per view, then combine them with np.where or explicit conditions. Skipping conflicts is a deliberate choice.
No results yet
Run your code to check it against the examples, or submit to run every test.