Machine Learning roadmap
Field 4 of 14. Work through the steps in order: each one explains an idea, points you to one thing to read and gives you a problem to build.
- Steps
- 21
- Problems
- 24
- Learn first
- Foundations, Data Science
- Leads to
- Deep Learning, Applied AI, Reinforcement Learning
Learning Basics
What learning from data means
Supervised learning maps inputs to known labels; unsupervised finds structure without labels; reinforcement learns from rewards. The goal is always to do well on data you haven't seen.
Concept · Easy · 1 problem
Loss functions & empirical risk
A loss scores how wrong a prediction is; training minimizes the average loss on the training set (empirical risk). Squared error, absolute error and log-loss each encode different beliefs about errors.
Concept · Easy · 1 problem
Gradient descent
Repeatedly step opposite the gradient of the loss. The learning rate controls step size: too small is slow, too large diverges. Stochastic GD uses mini-batches for speed.
Build · Easy · 1 problem
Regression
Linear regression
Fit a weighted sum of features to minimize squared error. Solve exactly with the normal equation or iteratively with gradient descent.
Build · Easy · 1 problem
Overfitting & the bias–variance trade-off
Expected error = bias² + variance + noise. Simple models underfit (high bias); flexible models overfit (high variance). Validation error, not training error, tells you which.
Theorem · Medium · 1 problem · case study
Regularization
Penalize large weights to trade a little bias for much less variance. Ridge (L2) shrinks weights; Lasso (L1) drives some exactly to zero.
Build · Medium · 1 problem
Classification
Logistic regression
A linear score squashed through a sigmoid into a probability, trained with log-loss. The baseline classifier for almost everything.
Build · Easy · 2 problems
Evaluation metrics
Accuracy misleads on imbalanced data. Precision, recall, F1 and ROC-AUC show different trade-offs; pick the one that matches the cost of each error.
Build · Medium · 2 problems
Cross-validation
Split data into k folds; train on k−1 and test on the rest, rotating. Gives a more reliable score and is how you tune hyperparameters without touching the test set.
Build · Easy · 1 problem
kNN & the curse of dimensionality
kNN predicts by majority vote of nearby points. In high dimensions all points become nearly equally far apart, so 'nearest' stops meaning anything.
Theorem · Medium · 1 problem
Naive Bayes
Apply Bayes' theorem assuming features are independent given the class. Wrong assumption, yet fast and strong for text.
Build · Easy · 1 problem · case study
Support vector machines & kernels
An SVM finds the separating boundary with the widest margin. The kernel trick computes similarities in a higher-dimensional space without ever building it.
Concept · Medium · 1 problem
Trees & Ensembles
Decision trees
Recursively split on the feature and threshold that best separates the labels. Easy to read, but a single deep tree overfits.
Build · Medium · 1 problem
Bagging & random forests
Average many trees trained on bootstrap samples with random feature subsets. Averaging cuts variance.
Build · Medium · 1 problem · case study
Boosting
Add small trees one at a time, each fitting the errors of the ones before. Gradient boosting (XGBoost, LightGBM) dominates tabular data.
Build · Hard · 2 problems
Unsupervised Learning
k-means clustering
Assign points to the nearest centre, move centres to their points' mean, repeat. Fast and simple, but assumes round clusters of similar size.
Build · Easy · 1 problem
Mixture models & EM
Model data as a mix of Gaussians. Expectation-Maximization alternates soft cluster assignment and refitting. Log-likelihood never decreases.
Build · Hard · 1 problem
PCA & dimensionality reduction
Project data onto the directions of greatest variance (top singular vectors). Use it to visualize, denoise and speed up models.
Build · Medium · 1 problem
Learning TheoryElective
No free lunch, PAC learning & VC dimension
No algorithm is best on all problems (no free lunch). PAC learning asks how many examples guarantee low error with high probability; VC dimension measures model capacity.
Theorem · Hard · 1 problem
Practice
Feature engineering & pipelines
Better features often beat better models. Pipelines bundle preprocessing and model so the same steps run in CV and in production.
Build · Medium · 1 problem
Applied ML case study
Put it together on a real problem: define the metric, build a baseline, iterate, and check for leakage and bias.
Apply · Medium · 1 problem · case study
Capstone project
House price predictor: from-scratch baseline, tuned gradient boosting, honest evaluation, served as an API later in MLOps