A decision map for choosing an algorithm

Two questions narrow down the choice quickly. First: do you have labelled data (the right answers)? Then: are you predicting a category or a quantity, or looking for groups or a simpler view of the data?

Everyday analogy

Like a doctor's triage chart: a couple of yes/no questions send you to the right department before any detailed tests.

Example

No labels, and 500 columns of customer data too many to look at? Use dimensionality reduction (such as PCA) to squeeze them into a few meaningful ones, then cluster the customers.

Do you have labelled answers?Yes: supervisednumber → regressioncategory → classificationNo: unsupervisedgroups → clusteringfewer columns → PCARewards: reinforcementQ-learning
Two questions narrow the choice: labels or not, and what kind of answer.
Do you have labelled data?
Yes → Supervised ↓
Category or quantity?
Category ↓ClassificationLogistic regression · Decision tree · Random forest · Naive Bayes · SVM · Neural network
Quantity ↓RegressionLinear · Ridge · Lasso · Random forest · Gradient boosting · Neural network
No → Unsupervised ↓
Groups or fewer dimensions?
Groups ↓ClusteringK-means · DBSCAN · Hierarchical · Gaussian mixture
Fewer dimensions ↓Dimensionality reductionPCA · LDA · Autoencoder

Learning by trial and reward instead? That's reinforcement learning (see Q-learning below).

Try it yourself

About 10 min

Walk the decision map

  1. Pick a real problem, e.g. which customers will leave?
  2. Follow the map: labelled data? number or category?
  3. Write the algorithms the map suggests.

What you should see: The map narrows dozens of algorithms down to two or three.

Use any free AI chatbot (ChatGPT, Claude, Gemini or Copilot). Never paste private or confidential information.

Build it for real · guided projectFind customer groups with K-means clusteringAbout 45 min · Copy-paste code · step by step
Test what you learned

Take a quick quiz, or look up any word in the glossary.