Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Semi-supervised learning

solow-semi-supervised provides self-training around any probabilistic classifier and graph-based label propagation and label spreading for partially-labeled data.

Estimators

EstimatorWhat it does
SelfTrainingClassifierIterative self-labeling around any classifier that returns probabilities. Adds high-confidence unlabeled points to the training set each round.
LabelPropagationGraph-based label propagation with RBF or k-NN affinity graph. Hard labels.
LabelSpreadingZhou (2004) normalized-Laplacian label spreading. Softer than label propagation, robust to noisy labels.

Example

#![allow(unused)]
fn main() {
use solow_semi_supervised::SelfTrainingClassifier;

// y_partial: labeled examples have their class; unlabeled have -1.
let clf = SelfTrainingClassifier::new(base_classifier)
    .threshold(0.75)
    .max_iter(10)
    .fit(&x, &y_partial)?;
Ok::<_, solow_core::Error>(())
}

References

  • Zhou, D., Bousquet, O., Lal, T. N., Weston, J., & Schölkopf, B. (2004). Learning with local and global consistency. NIPS.