Skip to content
New
Latest News || 27 October 2026: Dr Soumava Mukherjee's invited talk at Queen's University Belfast joined device-level hardware innovation with channel-level control. || 22 October 2026: I received a Certificate of Appreciation for serving as a reviewer for IEEE IMAS 2026. || 15 October 2026: I presented a poster on beam-domain ML fingerprinting for RIS-aided mmWave localisation at the Centre for Wireless Innovation's annual symposium. || 15 October 2026: CWI's annual symposium brought research and industry perspectives on 6G, ISAC, optical wireless, AI, and future networks to Queen's University Belfast. || 14 October 2026: Erik Nordell of Ericsson visited our Keysight Lab for a live RIS-assisted video streaming demonstration.
Knowledge Hubmachine learning2. Learning Paradigms

machine learning learning note

2. Learning Paradigms

A practical guide to the main ways machines learn from labeled, unlabeled, and partly labeled data.

At a glance

  • Choose by available feedbackKnown targets suggest supervised learning; unlabelled structure suggests unsupervised learning.
  • Clusters are not class labelsK-means minimizes geometric squared distances. Its cluster numbers need a separate task interpretation.
  • Combine feedback carefullySemi-supervised learning mixes labelled and unlabelled data; self-supervision creates targets; RL learns from rewards.

Group learning methods by what feedback is available:

  • Known answers: supervised learning.
  • No labels: unsupervised or self-supervised objectives, depending on how targets are built.
  • Some labels: semi-supervised learning.
  • Actions and rewards: reinforcement learning.

The main learning paradigms are:

  • Supervised learning: Learn from examples with correct answers.
  • Unsupervised learning: Find structure in data without correct answers.
  • Semi-supervised learning: Combine a small labeled dataset with a larger unlabeled dataset.
  • Self-supervised learning: Create training signals from the data itself.
  • Reinforcement learning: Learn actions by trial, error, and reward.

This page focuses mainly on the first three because they are the foundation of most applied ML workflows.

1. Supervised Learning

Supervised learning is used when each training example has an input and a known output.

Example:

  • Input: features extracted from an email.
  • Label: spam or not spam.

The algorithm learns a mapping from input X to output Y.

References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Two Main Supervised Tasks

Classification predicts a category.

Examples:

  • Is this signal line-of-sight or non-line-of-sight?
  • Is this image a cat, dog, or bird?
  • Is this transaction fraudulent?

Regression predicts a continuous number.

Examples:

  • Predict house price.
  • Predict channel gain.
  • Predict temperature.
  • Predict battery lifetime.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Strengths

  • Usually easy to evaluate because correct answers exist.
  • Often achieves high accuracy when labels are reliable.
  • Many mature algorithms and tools are available.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Limitations

  • Labeled data can be expensive.
  • Labels may be noisy or subjective.
  • The model may fail when the deployment data differs from the training data.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

2. Unsupervised Learning

Unsupervised learning is used when data has no labels. The goal is not to predict a known answer, but to discover structure.

Example:

  • Input: customer purchase histories.
  • Output: natural customer groups discovered by the algorithm.

Do geometric clusters automatically become meaningful classes?

1. Formula and symbols
ci=arg⁡min⁡j∥xi−μj∥2c_i=\arg\min_j\lVert x_i-\mu_j\rVert^2
μj=1∣Cj∣∑i∈Cjxi,J=∑i∥xi−μci∥2\mu_j=\frac1{|C_j|}\sum_{i\in C_j}x_i,\quad J=\sum_i\lVert x_i-\mu_{c_i}\rVert^2
  • xix_i: feature vector
  • μj\mu_j: centre j
  • cic_i: assigned cluster
  • CjC_j: examples assigned to j
  • JJ: inertia

Alternate assignment and centre averaging

the lab retains an old centre if a cluster is empty.

C1C2Shapes: assigned clusters · Crosses: learned centresSynthetic x/y · C1 ○ · C2 □ · C3 △ · C4 ◇
Chosen cluster count K
2. Work with the current inputs
ci=arg⁡min⁡j∥xi−μj∥2,μj=1∣Cj∣∑i∈Cjxic_i=\arg\min_j\|x_i-\mu_j\|^2,\quad\mu_j=\frac1{|C_j|}\sum_{i\in C_j}x_i
J=∑i=148∥xi−μci∥2=4.334,K=2J=\sum_{i=1}^{48}\|x_i-\mu_{c_i}\|^2=4.334,\quad K=2
3. Result
Within-cluster squared-distance sum4.334
Assigned cluster sizes24 / 24
Lloyd K-means on 48 deterministic unlabelled points with fixed initial centres and Euclidean distance. Each iteration assigns nearest centres, then averages assigned points; an empty cluster keeps its centre. Cluster numbers have no semantic class labels. More clusters can reduce inertia without making a better task model.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Common Unsupervised Tasks

Clustering: Group similar examples together.

Examples:

  • Group wireless users by mobility pattern.
  • Group customers by buying behavior.
  • Group documents by topic.

Dimensionality reduction: Compress data while preserving important information.

Examples:

  • Reduce hundreds of sensor features to two or three visualization axes.
  • Remove redundant features before classification.
  • Build compact embeddings for images or text.

Anomaly detection: Identify rare or unusual patterns.

Examples:

  • Detect abnormal network traffic.
  • Identify faulty sensor readings.
  • Flag unusual medical measurements.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Strengths

  • Useful when labels are unavailable.
  • Can reveal hidden patterns.
  • Helpful for exploration and visualization.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Limitations

  • Evaluation is harder because there is no single correct answer.
  • Clusters may not match human categories.
  • Results can change depending on scaling, distance metric, and hyperparameters.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

3. Semi-Supervised Learning

  • Semi-supervised setting: a small labelled set plus many unlabelled examples.
  • Where it helps: wireless measurements, imaging, remote sensing, or speech when careful labels are costly.

How do a few labels spread through unlabelled data?

1. Formula and symbols
Wij=e−∥xi−xj∥2/2σ2 if j is among the 6 nearest of i (or vice versa)W_{ij}=e^{-\lVert x_i-x_j\rVert^2/2\sigma^2}\ \text{if }j\text{ is among the 6 nearest of }i\text{ (or vice versa)}
S=D−1/2WD−1/2,F(t+1)=αSF(t)+(1−α)YS=D^{-1/2}WD^{-1/2},\qquad F^{(t+1)}=\alpha SF^{(t)}+(1-\alpha)Y
  • WijW_{ij}: Similarity edge between points i and j
  • σ\sigma: Similarity width (0.2 in normalised units)
  • DD: Diagonal matrix of node degrees, D_ii = Σ_j W_ij
  • SS: Normalised graph
  • YY: Known labels: one-hot rows for labelled points, zeros otherwise
  • F(t)F^{(t)}: Class scores after t spreading steps
  • α\alpha: How much each step trusts neighbours versus the original labels

Each point takes the class with the larger score in F. Grey points have not been reached yet: each iteration moves labels one graph hop.

Ringed: given label · △/○: spread label · grey: not reached · lines: neighbour graph1 reached point(s) got the wrong label
2. Work with the current inputs
∣labelled∣=4,∣unlabelled∣=76,t=4,α=0.9|\text{labelled}|=4,\quad|\text{unlabelled}|=76,\quad t=4,\quad\alpha=0.9
reached=67/76,correct among reached=66/67\text{reached}=67/76,\quad\text{correct among reached}=66/67
3. Result
Unlabelled points reached67 / 76
Accuracy on reached points98.5%
Labels used4 of 80
Eighty points from two moons, but only a handful carry labels (large ringed marks). Thin lines are the nearest-neighbour graph. Each iteration passes class scores one hop along the graph, so labels flow along each moon before they jump the gap. This works because the clusters follow the classes; if they did not, spreading would confidently spread the wrong labels.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Why It Works

  • Unlabelled data: can reveal clusters or other structure.
  • Labels: tell the model what some of that structure means.
  • Risk: wrong assumptions about unlabelled structure can hurt rather than help.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Common Semi-Supervised Techniques

  • Pseudo-labeling: Train a model on labeled data, use it to label unlabeled data, then train again using confident predictions.
  • Consistency regularization: Make the model produce similar predictions when the same input is slightly modified.
  • Graph-based methods: Treat data points as nodes in a graph and spread labels through nearby points.
  • Teacher-student models: A teacher model generates targets for a student model, often with confidence filtering.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

When It Helps

Semi-supervised learning is most useful when:

  • Labels are expensive.
  • Unlabeled data is abundant.
  • The unlabeled data comes from the same distribution as the labeled data.
  • The task has natural structure that unlabeled examples can reveal.
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

4. Self-Supervised Learning

Self-supervised learning creates labels from the data itself. It is widely used in modern deep learning.

Examples:

  • Predict a missing word in a sentence.
  • Predict the next frame in a video.
  • Learn image representations by matching two augmented views of the same image.

The key idea is that the model learns useful representations before seeing task-specific labels. After that, it can be fine-tuned with fewer labeled examples.

References for this section3
  • Scikit-learn documentation, "Supervised learning".
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

5. Reinforcement Learning

Reinforcement learning is different because the model learns by interacting with an environment. It takes actions and receives rewards.

Examples:

  • A robot learns to walk.
  • A radio controller learns a resource-allocation policy.
  • A game-playing agent learns strategies through self-play.

Unlike supervised learning, the agent is not told the correct action at every step. It must discover which actions produce good long-term outcomes.

References for this section3
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".

Choosing the Right Paradigm

SituationGood starting point
You have many labeled examplesSupervised learning
You have no labels and want patternsUnsupervised learning
You have few labels and many unlabeled examplesSemi-supervised learning
You have huge raw data and want reusable featuresSelf-supervised learning
You need sequential decisions and rewardsReinforcement learning
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
  • Scikit-learn documentation, "Supervised learning".

Python Examples for Each Paradigm

References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Supervised Learning: Classifier

from sklearn.datasets import load_breast_cancer
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import classification_report

X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.2, random_state=42, stratify=y
)

clf = RandomForestClassifier(n_estimators=200, random_state=42)
clf.fit(X_train, y_train)

print(classification_report(y_test, clf.predict(X_test)))
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Supervised Learning: Regressor

from sklearn.datasets import fetch_california_housing
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_absolute_error

X, y = fetch_california_housing(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.2, random_state=42
)

reg = RandomForestRegressor(n_estimators=200, random_state=42)
reg.fit(X_train, y_train)

pred = reg.predict(X_test)
print("MAE:", mean_absolute_error(y_test, pred))
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Unsupervised Learning: Clustering

from sklearn.datasets import load_iris
from sklearn.preprocessing import StandardScaler
from sklearn.cluster import KMeans

X, _ = load_iris(return_X_y=True)
X_scaled = StandardScaler().fit_transform(X)

kmeans = KMeans(n_clusters=3, random_state=42, n_init="auto")
cluster_id = kmeans.fit_predict(X_scaled)

print(cluster_id[:10])
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.

Semi-Supervised Learning: Label Spreading

import numpy as np
from sklearn.datasets import load_iris
from sklearn.semi_supervised import LabelSpreading

X, y = load_iris(return_X_y=True)
rng = np.random.default_rng(42)

y_partial = np.full_like(y, fill_value=-1)
labeled_indices = rng.choice(len(y), size=20, replace=False)
y_partial[labeled_indices] = y[labeled_indices]

model = LabelSpreading()
model.fit(X, y_partial)

print(model.transduction_[:10])
References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • Scikit-learn documentation, "Supervised learning".
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.

Takeaway

  • Choose by feedback: labels, no labels, partial labels, or rewards.
  • Modern systems: may combine self-supervised pretraining with later supervised or reinforcement-learning stages.

Continue with Parameters, Training and Generalization to build on this note.

References for this section3
  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
  • Scikit-learn documentation, "Supervised learning".

Check your understanding

0 of 4 answered

  1. A model learns from 500 examples with known numeric targets. Which setting is this?

  2. Four points have squared distances 1, 4, 1 and 2 to their assigned centres. What is K-means inertia?

  3. What does cluster label 2 mean without additional labels?

  4. You have 20 labelled and 980 unlabelled examples from a relevant distribution. Which approach can use both?

Complete references and further reading

  • O. Chapelle, B. Scholkopf, and A. Zien, Semi-Supervised Learning, MIT Press, 2006.
  • I. Goodfellow, Y. Bengio, and A. Courville, Deep Learning, MIT Press, 2016.
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
  • Tpoint Tech/Javatpoint, "Machine Learning Tutorial".
  • Scikit-learn documentation, "Supervised learning".