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
Track this field on the map

Learning Basics

  1. 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

  2. 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

  3. 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

  1. 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

  2. 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

  3. 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

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  1. 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

  2. Bagging & random forests

    Average many trees trained on bootstrap samples with random feature subsets. Averaging cuts variance.

    Build · Medium · 1 problem · case study

  3. 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

  1. 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

  2. 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

  3. 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

  1. 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

  1. 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

  2. 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