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

  1. ML foundations2 lessons · 1 h 35 min

    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.
    1. The learning problem: generalization, bias-variance and regularization35 min
    2. Linear models, loss functions and gradient descent60 min
  2. Trees, ensembles and classical models2 lessons · 2 h 45 min

    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.
    1. Decision trees, random forests and gradient boosting80 min
    2. k-NN, k-means, PCA, SVM and naive Bayes: the classical toolkit85 min
  3. Deep learning and transformers4 lessons · 4 h 55 min

    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.
    1. Neural networks and backpropagation: gradients, checks and initialisation60 min
    2. Training deep networks: normalisation, regularisation, AdamW and debugging70 min
    3. CNNs, ResNets, transfer learning and recurrent networks, with RMSNorm and label smoothing75 min
    4. Transformers, large language models, sampling and fine-tuning90 min
  4. Evaluation, statistics and data3 lessons · 4 h 50 min

    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.
    1. Evaluation, leakage and imbalance: validation design, metrics, thresholds and rare classes90 min
    2. Statistics and experimentation: intervals, tests, power, A/B tests and fair model comparison100 min
    3. Data, features and production ML: preprocessing, encodings, point-in-time features, skew, drift and operations100 min
  5. ML systems and interviews3 lessons · 5 h 10 min

    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.
    1. ML system design: framing, budgets, two-stage retrieval, serving, rollout and monitoring100 min
    2. Training at scale: memory arithmetic, parallelism, mixed precision and scaling laws120 min
    3. The ML interview playbook: structure, answer method, debugging procedures, estimates and project defence90 min

Study materials

Everything below belongs to this course and lives on its own page. The numbers are counted from the course.