elmo

Some courses from the catalogue

Taught in English

Machine Learning, Verified: scikit-learn and PyTorch

Machine learning from a first regression to a fine-tuned transformer, where every printed result is the real output of the code on the page.

Duration
an estimated 9.5 hours of reading, plus the labs
Lessons
61 in 7 parts
Questions
230, incl. a 50-question final
Diagrams
55
Format
Self-paced: read in the browser, run the labs in Google Colab or local Python

A working course in machine learning with scikit-learn and PyTorch, in which every lesson ends in code you run. It follows the syllabus of Aurélien Géron's book Hands-On Machine Learning with Scikit-Learn and PyTorch (O'Reilly, 2025): the book sets the order of topics, while every page, code sample, exercise and question here is written from scratch, and the course is neither affiliated with nor endorsed by the author or the publisher. What sets it apart is one rule: printed output is real output. Every Output block was produced by running the code above it, and every lab is run again to check that it still is. Where a measurement contradicted what a lesson set out to show, the lesson was rewritten around the measurement. Transfer learning, for example, is scored against a randomly initialised control rather than against chance.

One animation from the material

Measured against the right baseline

Measured against the right baselineWhat did ImageNet pretraining actually buy?Lesson 36 · ResNet-18 · 2,000 Fashion-MNIST training images · test accuracy on 1,000Outputreal output of the code above itHow every Output block is kept true1the code on the page is the code that was run2every lab is run again and its output captured3a changed result fails the check (timings excepted)Train all 11,181,642 weights for 5 epochsFreeze the backbone, train a 5,130-parameter headchance: 10%100%ResNet-18 from scratch, 5 epochs0.4620from scratch0.4620pretrained, fine-tune all, 5 epochs0.8590ImageNet weights0.8590randomly initialised backbone0.7100random weights: the control0.7100ImageNet-pretrained backbone0.8480ImageNet weights0.8480the naive comparison84.80% against 10% chancethe honest comparison84.80% against 71.00%: a gain of 13.8 pointsSame head, same training: only the frozen backbone's weights differ.The lesson reports this gain, not the gain against chance.

Made for this page from lesson 36, Transfer Learning. The lab trains ResNet-18 on 2,000 Fashion-MNIST images and prints four test accuracies; the bars are drawn from exactly those printed numbers. Against 10% chance, a frozen ImageNet backbone looks like a leap. The lesson adds the row most demonstrations leave out — the same frozen network with random weights, which already reaches 71.00% — and reports the honest gain: 13.8 points. Like every Output block in the course, these rows are checked by running the lab again; only wall-clock timings are exempt.

Who it is for

  • Software developers who are comfortable in Python and want a working grasp of machine learning, from scikit-learn to PyTorch
  • Data analysts who already write Python and now need to build models and check them, not only read about them
  • Engineers about to fine-tune a pretrained vision or language model, who need to know when that is the wrong call
  • Technical leads who review model results and want to know which numbers deserve suspicion

Before you start

  • Comfortable writing Python: functions, classes, list comprehensions and NumPy arrays.
  • No prior machine learning and no university mathematics. The course derives what it uses in plain notation, and an appendix refreshes the linear algebra, calculus and probability.
  • Google Colab in a browser (it needs a Google account), or a local Python 3.10+ environment. A few lessons are GPU-specific; Colab provides a GPU on request.
  • Comfortable reading in English. The course exists in English only.

What you will be able to do

  1. Turn a business question into a supervised, unsupervised or reinforcement-learning problem, and pick a metric a stakeholder can act on.
  2. Run a project end to end in scikit-learn: explore, split, clean, build a pipeline, cross-validate, tune, and evaluate once on a test set.
  3. Read a confusion matrix, a precision/recall curve and an ROC curve, and say which one to trust when the classes are imbalanced.
  4. Build, train, debug and save neural networks in PyTorch, and recognise vanishing gradients, a learning rate that is off by an order of magnitude, and a model that memorised its training set.
  5. Fine-tune a pretrained CNN and a pretrained transformer instead of training from scratch, and know when that is the wrong call.
  6. Explain, with the arithmetic, what attention costs, and what KV caching, quantization and speculative decoding actually buy.
  7. Report a result against the right baseline and beside its run-to-run spread, rather than as a single flattering number.

Curriculum

Part and lesson titles appear exactly as they do in the course, in the course's own language; the line under each part is the question it answers.

Part 1 — Foundations

What is machine learning, where does it go wrong, and what does a whole project look like from question to shipped model?

  1. 1. What Machine Learning Is
  2. 2. Types of ML Systems
  3. 3. What Goes Wrong, and How You Find Out
  4. 4. Framing a Real Problem
  5. 5. Getting and Exploring the Data
  6. 6. Preparing Data with Pipelines
  7. 7. Train, Tune and Ship

Part 2 — Supervised Learning

How do you measure a classifier honestly, and what do linear models, trees and ensembles each buy you?

  1. 8. Classification Basics
  2. 9. Precision, Recall and ROC
  3. 10. Multiclass and Error Analysis
  4. 11. Linear Regression and Gradient Descent
  5. 12. Polynomial Models and Learning Curves
  6. 13. Regularized Linear Models
  7. 14. Logistic and Softmax Regression
  8. 15. Decision Trees
  9. 16. Tree Regularization and Limits
  10. 17. Voting, Bagging and Random Forests
  11. 18. Boosting
  12. 19. Stacking and Choosing an Ensemble

Part 3 — Unsupervised Learning

What can you learn from data that has no labels, and how do you spot what does not belong?

  1. 20. The Curse of Dimensionality
  2. 21. PCA
  3. 22. Random Projection and Manifold Learning
  4. 23. k-Means
  5. 24. DBSCAN and Other Clustering
  6. 25. Gaussian Mixtures and Anomaly Detection

Part 4 — Neural Networks with PyTorch

How do you build a neural network in PyTorch, and what does it take to make one actually train?

  1. 26. From Neurons to MLPs
  2. 27. MLPs with Scikit-Learn
  3. 28. Hyperparameter Guidelines
  4. 29. PyTorch Tensors and Autograd
  5. 30. Your First PyTorch Models
  6. 31. Datasets, DataLoaders and Training Loops
  7. 32. Custom Modules and Image Classification
  8. 33. Vanishing Gradients and Normalization
  9. 34. Optimizers and Learning Rate Schedules
  10. 35. Regularization in Deep Nets
  11. 36. Transfer Learning

Part 5 — Vision and Sequences

How do networks see images and follow a sequence through time?

  1. 37. Convolutional Layers
  2. 38. CNN Architectures
  3. 39. Training a CNN in PyTorch
  4. 40. Object Detection and Segmentation
  5. 41. Recurrent Neural Networks
  6. 42. Forecasting Time Series
  7. 43. LSTM, GRU and Long Sequences

Part 6 — NLP, Transformers and Multimodal

How do attention and transformers work, and what does it cost to run them?

  1. 44. Char-RNNs and Embeddings
  2. 45. Tokenization and the HF Pipeline
  3. 46. Encoder–Decoder and Attention
  4. 47. The Transformer Architecture
  5. 48. Encoder-Only Models (BERT)
  6. 49. Decoder-Only Models (GPT)
  7. 50. From an LLM to a Chatbot
  8. 51. Vision Transformers
  9. 52. Multimodal Transformers
  10. 53. Explainability and Model Choice
  11. 54. Speeding Up Inference
  12. 55. Efficient Attention and Serving

Part 7 — Generative Models and RL

How does a model generate new data, and how does an agent learn from reward alone?

  1. 56. Autoencoders
  2. 57. VAEs and GANs
  3. 58. Diffusion Models
  4. 59. Reinforcement Learning Foundations
  5. 60. Policy Gradients
  6. 61. Q-Learning and Deep RL

Appendices

  1. A. Autodiff
  2. B. Mixed Precision and Quantization
  3. C. Running the Labs in Colab
  4. D. Math and Notation Refresher
  5. E. Glossary

Assessment

230 questions in all: ten-question knowledge checks at the end of the chapters, and a 50-question final exam covering the whole course. They are scenario questions, not recall: you are shown a situation and asked what it means or what to do next, and every answer comes with its explanation. Questions and options are shuffled on every attempt, and attempts are recorded, so a learner can see which chapters to revisit. Each lesson also ends with open “Check yourself” questions that have no single right answer.

Sample pages

Captured from the course's own build. The platform's sign-in controls and the learner's personal panels are left out of the frame; everything else is the page as a learner sees it.

Lesson 36's lab and its Output block: four test accuracies printed by the code above them — 0.4620 trained from scratch, 0.8590 fine-tuned from ImageNet weights, 0.7100 and 0.8480 for a frozen random and a frozen pretrained backbone — followed by the analysis heading that quotes them.
Lesson 36's lab and its Output block: four test accuracies printed by the code above them — 0.4620 trained from scratch, 0.8590 fine-tuned from ImageNet weights, 0.7100 and 0.8480 for a frozen random and a frozen pretrained backbone — followed by the analysis heading that quotes them.
Lesson 12's decision diagram for learning curves: both errors high and converged means underfitting, where more data will not help; low training error with a big persistent gap means overfitting, where it will.
Lesson 12's decision diagram for learning curves: both errors high and converged means underfitting, where more data will not help; low training error with a big persistent gap means overfitting, where it will.
Lesson 61 reading its own results: the target network's gap of over 200 points is decisive against an SD of 0.1, while the replay buffer's gap of about 50 points is smaller than its own spread of around 110, so the lesson says exactly that instead of repeating the textbook conclusion.
Lesson 61 reading its own results: the target network's gap of over 200 points is decisive against an SD of 0.1, while the replay buffer's gap of about 50 points is smaller than its own spread of around 110, so the lesson says exactly that instead of repeating the textbook conclusion.
The chapter 1 knowledge check at the end of lesson 3, answered: choosing the best of 40 models by their test-set score makes the reported score optimistic, and the explanation says why.
The chapter 1 knowledge check at the end of lesson 3, answered: choosing the best of 40 models by their test-set score makes the reported score optimistic, and the explanation says why.

The 9.5 hours are an estimate made from the course itself: its text read at 200 words a minute, plus a minute for each diagram and 45 seconds for each quiz question. They do not include the labs. Every lesson ends in code you paste into Colab or run locally; most labs finish in seconds, some take minutes, and a CPU-only runtime is slower still, so plan beyond the reading time. The platform records each learner's actual engaged time.

Run this course for your people

In a pilot the course runs on elmo beside your own material, and for every learner the platform records enrolment, progress through each page and engaged time, whatever the course's own format.

Request a pilotTalk to us