Skip to content
Lambdian

Machine learning roadmap for beginners: what to learn, in what order

A realistic machine learning roadmap for students and beginners: the maths and Python you actually need, the algorithms to learn in order, projects to build, and how long each stage takes.

Lambdian Learn 8 min read

Machine learning looks enormous from the outside: linear algebra, statistics, dozens of algorithms, deep learning, MLOps. The good news is that you do not need all of it before you start building. This roadmap orders the topics so each one uses only what came before, with a realistic time for someone studying around college or a job (about 8 to 10 hours a week).

Stage 0: Python and the maths you really need (3 to 4 weeks)

Python: variables, functions, lists and dictionaries, loops, and then NumPy arrays (vectorised operations, shapes, broadcasting). You will use NumPy in every lesson, so it is worth getting comfortable.

Maths, only as much as needed to start:

  • Linear algebra: vectors, dot products, matrix–vector multiplication. What XwX\mathbf{w} means.
  • Calculus: what a derivative and a gradient are, and the chain rule.
  • Probability and statistics: mean, variance, the normal distribution, conditional probability and Bayes' rule.

You can deepen each of these later, when an algorithm needs it. Many people stall by trying to finish "all the maths" first; do not.

Stage 1: foundations of learning (2 weeks)

Learn the ideas that apply to every algorithm: splitting data into training and test sets, loss functions, gradient descent, overfitting and the bias–variance trade-off, cross-validation, and the evaluation metrics (accuracy, precision, recall, F1, ROC). These are what separate someone who can call a library from someone who can tell whether the result is trustworthy.

Stage 2: supervised learning (5 to 6 weeks)

Go in this order, because each builds on the last:

  1. Linear regression, then polynomial regression and ridge/lasso (regularisation).
  2. Logistic regression and softmax regression (classification, probabilities, cross-entropy).
  3. k-nearest neighbours and naive Bayes (two very different, very simple classifiers).
  4. Support vector machines and kernels.
  5. Decision trees, then random forests and gradient boosting (ensembles).
  6. The perceptron and a small neural network trained with backpropagation.

Implement at least linear regression, logistic regression and a small neural network from scratch in NumPy once. After that, use scikit-learn freely.

Stage 3: unsupervised learning (3 weeks)

k-means, hierarchical clustering and DBSCAN; Gaussian mixture models and the EM algorithm; PCA and t-SNE; anomaly detection with isolation forests. Practise on real datasets where you can check whether the clusters make sense.

Stage 4: projects (ongoing, start during Stage 2)

Projects are what you will show in interviews. Good beginner projects use real, messy data and answer a question someone cares about:

  • Predict house or used-car prices from a public dataset, and explain which features matter.
  • Classify customer churn or loan default, and choose a threshold based on the cost of mistakes.
  • Segment customers or songs with clustering and describe each segment.
  • Build a spam or sentiment classifier on text.

For each project, write up the problem, the baseline, what you tried, the final metric on held-out data, and what you would do next. That write-up matters as much as the code.

Stage 5: choose a direction (months)

After the core, specialise:

  • Deep learning: CNNs for images, RNNs and transformers for sequences and text, using PyTorch.
  • Reinforcement learning: MDPs, Q-learning, then deep RL (DQN, actor-critic, PPO).
  • ML engineering: data pipelines, model serving, monitoring, experiment tracking.
  • Data science: statistics, experimentation (A/B tests), communicating results.

Whichever you choose, keep returning to the foundations of Stage 1; they are where most real-world mistakes happen.

Learn these hands-on