The 2x2 ML Model Taxonomy (Classification/Regression × Supervised/Unsupervised)
A simple grid for choosing the right family of model before you build anything.
- Difficulty
- Moderate
- Time to result
- ~weeks to results
- Steps
- 5
- Confidence
- 85%
Lowin offers a mental model for organizing the entire universe of machine learning approaches into a simple 2x2 grid: whether the output is discrete (classification) or continuous (regression), and whether the training process is supervised (labeled answers provided) or unsupervised (no labels, only a quality function). Populating each quadrant with familiar examples — logistic regression, neural networks, K-means clustering, decision trees and random forests — gives practitioners a quick way to reason about what kind of problem they actually have before reaching for a specific tool, preventing the common mistake of adopting a sophisticated model that doesn't match the shape of the underlying data or question.
Origin
Extracted from Invest Like the Best
Core principles
- 01Every ML problem can first be classified along two axes: output type and label availability.
- 02Match the data's natural structure to the model family (e.g., cleanly bisectable categorical data suits trees; entangled data like pixels suits neural nets).
- 03Unsupervised models can generate new features (like clusters) that then feed into supervised downstream models.
How to run it
- 1
Identify the output type
Decide whether you need a discrete answer (classification, e.g., spam or not spam) or a continuous numerical relationship (regression, e.g., a beta).
- 2
Identify label availability
Determine whether you can supply the model with correct answers during training (supervised) or whether you only have a quality function without explicit answers (unsupervised).
- 3
Place your problem in the grid
Combine the two axes to land in one of four quadrants: supervised classification, supervised regression, unsupervised classification (clustering), or unsupervised regression.
Pro tip Logistic/linear regression and neural nets typically live in the supervised quadrants; K-means lives in unsupervised classification.
- 4
Match model family to data shape
Within your quadrant, choose a specific model family based on how the data is structured — decision trees for cleanly divisible categorical data, neural nets (e.g., CNNs) for data with complex cross-dimensional interactions like image pixels.
Pro tip If in doubt, try a random forest first — it has very few hyperparameters and is described as 'set it and forget it.'
Watch out A decision tree may still produce an answer on 'inappropriate' data (like raw email text) but will lack the nuance a specialized model could offer.
- 5
Consider unsupervised pre-processing
If you have large, high-dimensional data with unclear relevance, use an unsupervised method like K-means to generate cluster centroids as new engineered features for a downstream supervised model.
In the wild
Predicting whether someone will vote based on state, age, gender, and past voting history lends itself cleanly to a decision tree because each variable can neatly split the population into branches.
→ Illustrates why categorical, cleanly-divisible data is a great match for tree-based models.
Image classification requires combining neighboring pixels into meaningful patterns, something a decision tree (which can only split once per branch) cannot do well, so convolutional neural networks are used instead.
→ Shows how data with complex interdependencies needs a fundamentally different model family than cleanly divisible data.
Common mistakes
Choosing a model before defining the problem type
Jumping to a deep neural net or other fashionable tool without first asking whether the problem is classification or regression, supervised or unsupervised, often produces a mismatched, overcomplicated solution.
Forcing tree models onto entangled data
Applying decision trees to data like raw email text or images, where relationships between inputs are complex and non-clean, will still produce an answer but lose significant accuracy and nuance.
Is it for you?
Not ideal for
Highly novel problem types that don't cleanly fit any established model family without significant custom architecture work.
From the transcript
“at a very high level, we have models that are suited to classification, which we discussed earlier is things like is this email spam or…”
“even though I don't know what the output is, I know how to tell the machine if it's doing a good job.”
“it's sometimes difficult to come up with an argument why you shouldn't just use a random forest and nothing else.”
From the episode
Jeremiah Lowin – Machine Learning in Investing – [Invest Like the Best, EP.105]