Skip to content
30 November 2026 An independent technology publication
Guide

Machine learning roadmap 2026: 9 proven steps from zero to job-ready

A practical machine learning roadmap for 2026: 9 steps from Python to deployment, a month-by-month plan, a real first project with code, and mistakes to avoid

Machine learning roadmap 2026: 9 proven steps from zero to job-ready, DevQuarry featured image

A machine learning roadmap is an ordered plan for learning the field, so each skill builds on the one before it. For 2026, the order that works best is: Python and data handling, the core maths, classic machine learning with scikit-learn, honest evaluation, a first end-to-end project, gradient boosting, deep learning with PyTorch, large language models, and finally deployment and MLOps.

At about 10 hours a week, that plan takes roughly a year. For each step, this guide lists what to learn and gives a milestone project that proves you can do it. It also includes a complete first project that I ran on real census data, so you can see what “step 5” looks like in practice.

Machine learning roadmap 2026 in 9 steps, DevQuarry featured image

Key takeaways

  • Learn in this order: Python, maths, scikit-learn, evaluation, a first project, gradient boosting, PyTorch, LLMs, then MLOps.
  • Evaluation comes before advanced models. Most beginner projects fail because of leaky splits, not weak algorithms.
  • Tabular data and gradient boosting still pay the bills in industry, so do not skip them for deep learning.
  • LLM skills now belong on every machine learning roadmap, but as step 8, after the fundamentals.
  • Finish with three to five portfolio projects that each solve a real problem end to end.

Why follow a machine learning roadmap in 2026?

Demand for the skill is still rising. The World Economic Forum’s Future of Jobs Report 2025, based on a survey of more than 1,000 companies employing over 14 million workers, ranked AI and machine learning specialists third among the fastest-growing jobs, behind big data specialists and fintech engineers. The same report said 86% of employers expect AI and information processing technologies to transform their business by 2030.

The field is also wider and noisier than it was a few years ago. A beginner today faces a long list of frameworks and APIs, plus a new tool every week. Without a plan, it is easy to spend months on tutorials that never add up to a skill an employer can use. A machine learning roadmap fixes the order so each step builds on the last.

The machine learning roadmap at a glance

StepWhat you learnTime at ~10 h/weekProof you can do it 
1. Python and dataPython, NumPy, pandas, plotting6 weeksclean and summarise a messy CSV
2. Core mathslinear algebra, probability, calculus basics4 weeks, then ongoingexplain gradient descent on paper
3. Classic MLscikit-learn, regression, trees, clustering6 weekstrain five model types on one dataset
4. Evaluationsplits, metrics, cross-validation, leakage3 weeksfind the leak in a broken notebook
5. First projectan end-to-end pipeline3 weeksa GitHub repo with a README and results
6. Gradient boostingXGBoost, LightGBM, CatBoost4 weeksbeat your step 5 baseline honestly
7. Deep learningPyTorch, CNNs, transformers8 weekstrain an image or text classifier
8. LLMsprompting, embeddings, RAG, fine-tuning basics6 weeksa retrieval app with an evaluation set
9. MLOpspackaging, serving, monitoring5 weeksa deployed model with a health check

The times are my suggestion for someone learning part-time with some programming background. If you are starting from zero code, add a month to step 1. If you already work as a software engineer, you can move faster through steps 1 and 9.

Machine learning roadmap 2026 timeline: nine steps over about twelve months

Step 1: Python and data handling

Every later step on this machine learning roadmap assumes you can load and clean data without looking up basic syntax. Python is the default language of the field, and three libraries do most of the work.

What to learn:

  • Python basics: functions, lists and dictionaries, comprehensions, classes, virtual environments
  • NumPy: arrays, broadcasting, vectorised maths
  • pandas: reading files, filtering, groupby, joins, handling missing values, dates
  • Plotting with matplotlib or seaborn: histograms, scatter plots, line charts
  • Jupyter notebooks for exploration, plain .py files for anything you rerun

A typical first exercise looks like this:

bash
import pandas as pd

df = pd.read_csv("sales.csv", parse_dates=["order_date"])
print(df.isna().mean().sort_values(ascending=False).head())    # share of missing values per column
monthly = (df.dropna(subset=["amount"])
             .groupby(df["order_date"].dt.to_period("M"))["amount"]
             .agg(["count", "sum", "mean"]))
print(monthly.tail(6))

What to skip for now: design patterns and web frameworks. You will pick up what you need later.

Milestone: clean a messy public dataset, documenting every step, then answer a question someone really asked with a few clear charts.

Step 2: The maths you need

You do not need a maths degree to use machine learning well. You do need enough to understand what a model is optimising and why it fails. On this machine learning roadmap, learn these topics alongside steps 3 and 4 rather than as a separate semester.

TopicWhat to knowWhere it shows up 
Linear algebravectors, matrices, dot products, matrix multiplicationevery model’s inputs and weights, embeddings
Calculusderivatives, the chain rule, gradientsgradient descent, backpropagation
Probabilitydistributions, conditional probability, Bayes’ ruleclassification outputs, uncertainty, Naive Bayes
Statisticsmean, variance, sampling, confidence intervals, hypothesis testsevaluation, A/B tests, comparing models
Optimisationloss functions, learning rates, local minimatraining any model

A good test of understanding: can you explain, without code, why a learning rate that is too high makes training diverge? If yes, you know enough calculus for now.

Milestone: implement linear regression with gradient descent in NumPy, then check your answer against scikit-learn’s LinearRegression.

Step 3: Classic machine learning with scikit-learn

scikit-learn is the best place to learn machine learning because every model shares the same fit and predict interface. Once you know one, you know the pattern for all of them.

Learn these model families, roughly in this order:

  1. Linear and logistic regression
  2. k-nearest neighbours
  3. Decision trees
  4. Random forests
  5. Support vector machines (enough to know when they fit)
  6. k-means clustering and PCA for unsupervised work

For each one, learn what it assumes, what its main hyperparameters do, and what kind of data breaks it. You will use pipelines (Pipeline, ColumnTransformer) from the first week, because they are how you avoid most evaluation bugs later.

The current release, scikit-learn 1.9 (June 2026), is a good version to learn on. According to the release highlights, it shows fitted attributes in the HTML display of an estimator, adds experimental callbacks for monitoring training, and extends array API support so some estimators and metrics can run on a GPU. None of that changes the basics, but the HTML display is genuinely useful when you are learning what a fitted model contains.

Milestone: train at least five model types on the same dataset with the same split, and write one paragraph per model on why it did better or worse.

Step 4: Evaluation and data leakage

This is the step most machine learning roadmaps rush, and it is the one that separates people who can build models from people who can build models that work. Put it before any advanced algorithm.

What to learn:

  • Train, validation and test splits, and why the test set is used once
  • Cross-validation, including StratifiedKFold, GroupKFold and TimeSeriesSplit
  • Metrics for classification: precision, recall, F1, ROC-AUC, PR-AUC
  • Metrics for regression: MAE, RMSE, R²
  • Baselines: always compare against the simplest possible model
  • Data leakage: preprocessing outside the pipeline, target leakage, duplicates, time leaks

Pick the metric to match the problem:

ProblemStart withAvoid as the main metric 
Balanced classificationROC-AUC, accuracy
Rare positive class (fraud, disease)PR-AUC, recall at a fixed precisionaccuracy
Regression with outliersMAERMSE alone
Ranking or recommendationsprecision at k, NDCGaccuracy
Business decisionexpected cost or profitany metric without costs

Our data leakage guide reproduces six common leaks in Python. In one of them, choosing features before cross-validation turned coin-flip labels into 85% accuracy. Working through those examples is the fastest way to learn what a trustworthy score looks like.

Milestone: take a notebook with a suspiciously high score (Kaggle has many), find and fix the leak, then report the honest number.

Step 5: Build your first end-to-end project

Now put the first four steps of the machine learning roadmap together. A first project should be small enough to finish in a few weeks and complete enough to show every stage, from raw data to a written result.

Here is a complete example on the UCI adult census dataset (48,842 people), predicting whether income is above $50,000. I ran it with scikit-learn 1.9.1 on a 2-core machine; it finishes in about 10 seconds.

bash
"""A first end-to-end machine learning project: predict whether income is above $50K."""
import sys
import pandas as pd
from sklearn.compose import make_column_transformer
from sklearn.ensemble import HistGradientBoostingClassifier
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report, roc_auc_score
from sklearn.model_selection import StratifiedKFold, cross_val_score, train_test_split
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import OneHotEncoder, StandardScaler

cols = ["age", "workclass", "fnlwgt", "education", "education_num", "marital_status", "occupation",
        "relationship", "race", "sex", "capital_gain", "capital_loss", "hours_per_week",
        "native_country", "income"]
df = pd.read_csv(sys.argv[1] if len(sys.argv) > 1 else "adult-all.csv", header=None, names=cols, na_values="?")
y = (df.pop("income") == ">50K").astype(int)
df = df.drop(columns=["fnlwgt", "education"])            # a sampling weight and a duplicate of education_num
cats = [c for c in df.columns if not pd.api.types.is_numeric_dtype(df[c])]
nums = [c for c in df.columns if c not in cats]
print(f"{len(df):,} rows, {len(nums)} numeric and {len(cats)} categorical features, {y.mean():.1%} earn >50K")

# 1. Hold out a test set first and do not touch it until the end
X_train, X_test, y_train, y_test = train_test_split(df, y, test_size=0.2, random_state=42, stratify=y)

# 2. Preprocessing lives inside the pipeline, so cross-validation cannot leak
prep = make_column_transformer(
    (make_pipeline(SimpleImputer(strategy="most_frequent"), OneHotEncoder(handle_unknown="ignore")), cats),
    (StandardScaler(), nums))
candidates = {
    "Logistic regression": make_pipeline(prep, LogisticRegression(max_iter=2000)),
    "Gradient boosting": make_pipeline(
        make_column_transformer((OneHotEncoder(handle_unknown="ignore", sparse_output=False), cats),
                                ("passthrough", nums)),
        HistGradientBoostingClassifier(random_state=42)),
}

# 3. Compare models with 5-fold cross-validation on the training set only
cv = StratifiedKFold(n_splits=5, shuffle=True, random_state=42)
for name, model in candidates.items():
    s = cross_val_score(model, X_train, y_train, cv=cv, scoring="roc_auc")
    print(f"{name:<20} CV ROC-AUC {s.mean():.3f} ± {s.std():.3f}")

# 4. Fit the winner on all training data and score the untouched test set once
best = candidates["Gradient boosting"].fit(X_train, y_train)
proba = best.predict_proba(X_test)[:, 1]
print(f"\nTest ROC-AUC: {roc_auc_score(y_test, proba):.3f}\n")
print(classification_report(y_test, proba >= 0.5, target_names=["<=50K", ">50K"], digits=3))


Output:
48,842 rows, 5 numeric and 7 categorical features, 23.9% earn >50K
Logistic regression  CV ROC-AUC 0.905 ± 0.002
Gradient boosting    CV ROC-AUC 0.928 ± 0.001

Test ROC-AUC: 0.931

              precision    recall  f1-score   support

       <=50K      0.899     0.943     0.920      7431
        >50K      0.785     0.662     0.718      2338

    accuracy                          0.876      9769
   macro avg      0.842     0.803     0.819      9769
weighted avg      0.872     0.876     0.872      9769

What to notice in this project:

  • The test set is split off first and used exactly once, at the end.
  • All preprocessing happens inside pipelines, so cross-validation never sees test-fold statistics.
  • Two models are compared on cross-validation, not on the test set. Gradient boosting wins by 0.023 ROC-AUC.
  • The test score (0.931) is close to the cross-validation score (0.928), a good sign that the evaluation is honest.
  • Accuracy is 87.6%, but recall for the high-income class is only 66.2%. A single headline number would hide that.

To turn this into a portfolio piece, add a README that explains the question and the data, then ends with a results table and your ideas for next steps.

Milestone: a public repository that someone else can clone and reproduce, with pinned library versions.

Step 6: Gradient boosting and modern tabular models

Most business data lives in tables: customers, transactions, sensors, claims. On that kind of data, gradient boosted trees are still the workhorse, and a machine learning roadmap that jumps straight from scikit-learn to neural networks leaves a gap employers notice.

Learn XGBoost, LightGBM and CatBoost well enough to:

  • Train with early stopping on a validation set
  • Handle categorical features in each library
  • Deal with class imbalance without breaking the model
  • Read feature importance and per-row SHAP values
  • Know which one to try first for a given dataset

Our XGBoost vs LightGBM vs CatBoost benchmark compares all three on three real datasets. The main lessons there are useful at this step: on clean data the three are almost tied, LightGBM’s defaults can fail on extremely imbalanced data, and CatBoost gives the best results with the least tuning at the cost of slower training.

Also learn what a tabular foundation model is. TabPFN predicts on small tables without any training on your data and tops current benchmarks. Its licence and hardware needs still limit where you can use it. Knowing when it fits is a 2026 skill that few roadmaps cover yet.

Milestone: rebuild your step 5 project with all three boosting libraries and report whether any of them beats your baseline by more than the variation between random seeds.

Step 7: Deep learning with PyTorch

PyTorch is now the main framework for deep learning in research and much of industry. One sign of the shift: Aurélien Géron’s long-running textbook, previously built on TensorFlow, came out in an October 2025 edition titled Hands-On Machine Learning with Scikit-Learn and PyTorch.

On this machine learning roadmap, learn deep learning in this order:

  1. Tensors, autograd and a training loop written by hand
  2. Fully connected networks on tabular data (and see that boosting usually beats them there)
  3. Convolutional networks for images, then transfer learning from a pre-trained model
  4. Sequence models and embeddings for text
  5. The transformer architecture: attention, positional encoding, encoder and decoder
  6. Training practice: learning-rate schedules, regularisation, mixed precision, checkpoints

A minimal PyTorch training loop is worth writing from scratch at least once:

bash
import torch
from torch import nn

model = nn.Sequential(nn.Linear(20, 64), nn.ReLU(), nn.Linear(64, 1))
loss_fn = nn.BCEWithLogitsLoss()
optimizer = torch.optim.AdamW(model.parameters(), lr=1e-3)

for epoch in range(10):
    model.train()
    for X_batch, y_batch in train_loader:              # a DataLoader you built from your dataset
        optimizer.zero_grad()
        loss = loss_fn(model(X_batch).squeeze(1), y_batch.float())
        loss.backward()
        optimizer.step()

Every larger framework you meet later wraps this same loop. If you understand it, you can debug them.

Milestone: fine-tune a pre-trained image or text model on a small dataset of your own and compare it with a model trained from scratch.

Step 8: Large language models and foundation models

LLMs belong on any 2026 machine learning roadmap, but they make far more sense after steps 1 to 7. By then you can evaluate them properly and recognise when a classic model is the better tool.

What to learn:

  • How LLMs are trained, at the level of pre-training, instruction tuning and preference tuning
  • Prompting and tool calling through an API, with structured outputs
  • Embeddings and vector search
  • Retrieval-augmented generation (RAG), including how to evaluate it
  • Fine-tuning basics, including parameter-efficient methods such as LoRA
  • Model licences: what “open weights” allows and forbids
  • Security, starting with prompt injection and output validation

Several earlier DevQuarry articles go deeper on topics from this step. LLM distillation explains how smaller models learn from larger ones, prompt injection covers the main security risk of LLM apps, and our open-weight vs open-source guide explains licence terms you will meet when choosing a model.

The skill employers look for here is evaluation. Anyone can call an API. Fewer people can build a test set, measure a RAG system’s answer quality and show that a change made it better.

Milestone: a small RAG application over documents you care about, with a test set of at least 30 questions and a measured score before and after one improvement.

Step 9: MLOps and deployment

A model that lives in a notebook helps nobody. The last step of the machine learning roadmap is getting models into use and keeping them healthy.

AreaWhat to learnCommon tools 
Packagingreproducible environments, pinned versionspip, uv, Docker
Experiment trackinglogging parameters, metrics and artefactsMLflow, Weights & Biases
Servingwrapping a model in an APIFastAPI, BentoML
Data and model versioningknowing which data trained which modelDVC, model registries
Monitoringinput drift, prediction drift, live performanceEvidently, custom dashboards
Automationretraining and testing pipelinesGitHub Actions, Airflow, Prefect

Start simple: a FastAPI endpoint that loads a saved scikit-learn pipeline and returns a prediction, packaged in a Docker image, with a health-check route. Add tracking and monitoring once that works.

Milestone: deploy your step 6 model behind an API that logs every prediction. Then write a short note on how you would detect drift.

A month-by-month plan for 2026

Here is the same machine learning roadmap laid out over twelve months at about 10 hours a week:

MonthFocusOutput by the end of the month 
1Python, NumPy20 small exercises solved without looking up syntax
2pandas, plotting, maths basicsa cleaned dataset with an exploratory report
3scikit-learn modelsfive models compared on one dataset
4evaluation, leakagea fixed leaky notebook with an honest score
5first projecta public repo with README and results
6gradient boostingyour project rebuilt with three boosting libraries
7PyTorch basicsa hand-written training loop on tabular data
8CNNs and transfer learningan image classifier fine-tuned on your own data
9transformers, embeddingsa text classifier and an embedding search demo
10LLMs and RAGa RAG app with an evaluation set
11MLOpsa deployed model with logging and a health check
12portfolio and applicationsthree to five polished projects and a short write-up of each

Expect some months to run long. The order matters more than the dates.

How to adapt the machine learning roadmap to your background

The plan above assumes some programming and little machine learning. Adjust it to where you start:

Your backgroundMove faster throughSpend extra time on 
Software engineersteps 1 and 9steps 2 and 4: maths and evaluation
Data analyststeps 1 and 2steps 7 and 9: PyTorch and deployment
Student in a quantitative subjectstep 2steps 5 and 9: finished projects and deployment
Researcher in another sciencesteps 2 and 4steps 6 and 9: tabular tools and engineering habits
Complete beginnernothing yetstep 1, with an extra month of Python

Two rules apply to everyone. Do not skip step 4, whatever your background; evaluation mistakes are just as common among experienced engineers. And keep building: a machine learning roadmap you only read is a reading list.

If you already work in software, the fastest win is usually to pair this roadmap with a real problem at your job. A model that predicts something your team needs teaches more than any course, as long as you evaluate it with the same care as step 4.

Portfolio projects for your machine learning roadmap

Hiring managers see the same Titanic and MNIST notebooks every day. Projects stand out when they answer a real question with an honest evaluation. Some ideas, each tied to a step above:

ProjectSteps it provesWhat makes it strong 
Fraud detection on transaction data4, 5, 6time-based split, PR-AUC, cost-based threshold
Demand forecasting for a local business or public dataset3, 4, 9TimeSeriesSplit, a baseline, a deployed forecast
Image classifier for something you collected yourself7your own data, transfer learning, error analysis
RAG assistant over a niche document set8an evaluation set and measured improvements
Leakage audit of a public notebook4a clear before-and-after with explanation

Our fraud detection tutorial is a complete worked example of the first project, from time-based splitting to choosing a threshold with money in mind.

Common mistakes on a machine learning roadmap

  • Jumping to deep learning or LLMs before you can evaluate a logistic regression honestly.
  • Watching courses without building anything. Aim for at least one small project a month.
  • Spending months on maths before touching data. Learn maths alongside models.
  • Reporting accuracy on imbalanced data, or tuning on the test set.
  • Copying a Kaggle notebook without understanding its split. Some popular public notebooks leak.
  • Ignoring tabular data and gradient boosting, which still cover a large share of industry work.
  • Collecting certificates instead of projects. A repo with a clear README says more than a badge.
  • Trying to learn every new tool. Learn one per category and understand why it exists.

FAQ

How long does it take to learn machine learning?

With about 10 hours a week and some programming background, this roadmap takes around a year to reach a level where you can take a model from raw data to deployment on your own. At 40 hours a week, the same plan compresses to roughly three or four months. Learning never really stops, because the field keeps moving.

Do I need a degree to follow a machine learning roadmap?

No. Many people working in machine learning learned it through self-study and projects. A degree in a quantitative subject helps with the maths and with some employers, but a strong portfolio of honest, well-documented projects matters more for most applied roles.

Is this machine learning roadmap good for complete beginners?

Yes, with one change: add an extra month of Python at the start, and do not move to step 3 until you can write small programs without copying code. The later steps assume you can read errors and debug on your own.

Should I learn TensorFlow or PyTorch in 2026?

Start with PyTorch. It is the main framework in research and widely used in industry, and major textbooks such as Géron’s latest edition now teach it. If a job requires TensorFlow, the concepts transfer quickly.

Do I still need classic machine learning if I want to work with LLMs?

Yes. Evaluation habits such as honest splits, baselines and leakage checks come from classic machine learning and apply directly to LLM systems. Many real problems are also solved better and more cheaply by a gradient boosting model than by an LLM.

What is the best first machine learning project?

Pick a question you care about with a public tabular dataset, such as predicting income, prices or churn. Build it end to end with a held-out test set and a written results section, like the census example in step 5.

Start with step one this week

The best machine learning roadmap is the one you follow in order and finish. Start with Python and data this week, put evaluation before fancy models, and build something real at the end of each step. A year from now, your portfolio will show more than any certificate could.

If you want a first deep project after step 5, the fraud detection tutorial walks through one from start to finish.

About the author Aradhya Chaudhary

Data Scientist | Freelancer | Speaker & Writer skilled in programming, development and building AI/ML backed systems.

More from Aradhya
Keep reading

More in AI & ML

All of AI & ML →