Machine Learning Crash Course
The core of machine learning in 14 lessons: why models generalise, how linear models, trees and neural networks learn, how to evaluate them honestly, and how to design and run them in production.

- Level
- Beginner to Production
- Modules
- 5
- Lessons
- 14
- Time
- 19 h 15 min
- Quizzes
- 14
- Homework
- 14
Who it is for
- Audience
- Software engineers and data practitioners who want a solid, interview-ready grounding in machine learning. Start at the beginning, or jump to the level that matches what you already know.
- Prerequisites
- Comfortable Python, and basic probability and linear algebra (vectors, matrices, a derivative). The lessons explain the rest as they go.
What you will learn
- Frame a problem as supervised learning and diagnose bias and variance from learning curves.
- Compute a Gini split by hand and explain bagging versus boosting.
- Work backpropagation through two layers, check it with a gradient check, and explain how initialisation and activations keep gradients from vanishing or exploding.
- Choose a validation split from how rows relate (stratified, group, forward-chaining), recognise the main forms of leakage, and report a rare-class classifier with a baseline, PR-AUC or expected cost, a cost-based threshold and recalibrated probabilities.
- Frame an ML system design from a business goal, a metric and constraints, and size it with back-of-envelope capacity arithmetic and percentile latency budgets whose assumptions you state.
- ML fundamentals
- Linear models and optimisation
- Trees and ensembles
- Unsupervised learning
- Deep learning
- Transformers and LLMs
- Model evaluation
- Statistics and experimentation
- +4 more
Curriculum
ML foundations
Beginner2 quizzes2 homework tasks
- Frame a problem as supervised learning and diagnose bias and variance from learning curves.
- Derive the logistic regression gradient and explain how gradient descent and Adam optimise a loss.
- The learning problem: generalization, bias-variance and regularizationCompleted35 min
- Linear models, loss functions and gradient descentCompleted60 min
Trees, ensembles and classical models
Intermediate2 quizzes2 homework tasks
- Compute a Gini split by hand and explain bagging versus boosting.
- Run k-means and PCA step by step and say when each one fails.
- Decision trees, random forests and gradient boostingCompleted80 min
- k-NN, k-means, PCA, SVM and naive Bayes: the classical toolkitCompleted85 min
Deep learning and transformers
Intermediate4 quizzes4 homework tasks
- Work backpropagation through two layers, check it with a gradient check, and explain how initialisation and activations keep gradients from vanishing or exploding.
- Keep a deep network stable and well generalised with normalisation, regularisation, AdamW with a schedule and gradient clipping, and debug a NaN or flat loss.
- Compute CNN output shapes, parameter counts and receptive fields, and explain why skip connections and LSTM or GRU gates keep a gradient path open.
- Describe attention with tensor shapes, explain the KV cache and sampling, and choose between RAG and LoRA for a task.
- Neural networks and backpropagation: gradients, checks and initialisationCompleted60 min
- Training deep networks: normalisation, regularisation, AdamW and debuggingCompleted70 min
- CNNs, ResNets, transfer learning and recurrent networks, with RMSNorm and label smoothingCompleted75 min
- Transformers, large language models, sampling and fine-tuningCompleted90 min
Evaluation, statistics and data
Advanced3 quizzes3 homework tasks
- Choose a validation split from how rows relate (stratified, group, forward-chaining), recognise the main forms of leakage, and report a rare-class classifier with a baseline, PR-AUC or expected cost, a cost-based threshold and recalibrated probabilities.
- Put an interval on an estimate, size an A/B test from a baseline, minimum effect, alpha and power, control false positives from many comparisons and from peeking, check a sample ratio mismatch, solve a base-rate problem with Bayes' rule, compare two models on the same test items with a paired test, and read a p-value and an interval correctly.
- Encode and impute features without leaking the label or the test rows, build point-in-time features with one definition for training and serving.
- Tell data drift, label shift and concept drift apart, compute PSI by hand, monitor a model whose labels arrive late, and debug a model that fails in production in a sensible order.
- Evaluation, leakage and imbalance: validation design, metrics, thresholds and rare classesCompleted90 min
- Statistics and experimentation: intervals, tests, power, A/B tests and fair model comparisonCompleted100 min
- Data, features and production ML: preprocessing, encodings, point-in-time features, skew, drift and operationsCompleted100 min
ML systems and interviews
Production3 quizzes3 homework tasks
- Frame an ML system design from a business goal, a metric and constraints, and size it with back-of-envelope capacity arithmetic and percentile latency budgets whose assumptions you state.
- Design a retrieve, rank and re-rank system and measure each stage with recall@k and NDCG@k, serve it with caching, batching, quantisation or distillation, roll it out through shadow, canary and A/B, and monitor it for drift, feedback loops and fallbacks.
- Account for training memory at 16 bytes per parameter for mixed-precision Adam, decide whether a model fits on one device, and choose between DDP, ZeRO or FSDP sharding, and tensor and pipeline parallelism, using their memory, communication and pipeline-bubble costs.
- Scale batch size and learning rate with the linear rule and warmup, use gradient accumulation without changing the gradient (including token-level losses), and train in mixed precision with loss scaling and master weights.
- Estimate training compute with about 6ND and turn it into days, say what compute-optimal training implies for model and data size, and plan activation checkpointing, checkpoints and reproducibility for a long run.
- Answer an open ML question with the ten-step method, debug a model symptom in a sensible order, check a claim with a base rate, a baseline, a shuffled-label check and an interval, and defend a past project with measured numbers.
- ML system design: framing, budgets, two-stage retrieval, serving, rollout and monitoringCompleted100 min
- Training at scale: memory arithmetic, parallelism, mixed precision and scaling lawsCompleted120 min
- The ML interview playbook: structure, answer method, debugging procedures, estimates and project defenceCompleted90 min
Study materials
Everything below belongs to this course and lives on its own page. The numbers are counted from the course.
- Quizzes14 quizzes240 questionsCheck yourself after a lesson; every answer is explained.
- Flashcards191 cards5 module decksReview what you have read, a few cards at a time.
- Cheat sheets5 cheat sheetsOne page per module, for a quick look before you build.
- Code snippets18 code blocksEvery code block from the lessons in one place.
- Resources95 sources5 sectionsPapers, docs and tools for further reading.
- Homework14 homework tasksRuns in your browser: 14Short exercises with tests that tell you when you are done.
- Learning paths5 pathsA sensible order through the modules for your level or goal.
- Your study tools
- My notes
- My progress