Skip to content

The DS and ML matrix

Six kinds of question, four eras of method. Read the matrix, filter it by your data's traits, and start at the left before moving right.

Introductory ~9 min8 steps

You will be able to

  • Name the five workflow steps and six question types in the DS and ML guide
  • Filter methods by your data's size, type and labels
  • Explain why you start with traditional methods and move right only for a reason
01

From question to answer

Read

The DS and ML guide opens with a five-step workflow.

  1. Start with a question. What do you want to know or achieve?
  2. Understand your data. Size, type, labels, dimensionality, structure, requirements.
  3. Choose an approach. Find suitable methods in the matrix.
  4. Validate and iterate. Check, evaluate and compare honestly.
  5. Deploy and monitor. Use it, and notice when it stops being trustworthy.

Step 3 is the part people rush to. The other four decide whether it works.

02

Six questions, four eras

Read

Each row of the matrix is a question: Describe, Discover, Predict, Explain, Optimize, Generate. Each column is an era of methods.

EraWhat it brings
Traditional statisticsInterpretable models with known assumptions
Modern machine learningFlexible learners, honest validation
Deep learningRepresentations learned from raw data
Generative AIFoundation models and LLMs

Moving right usually buys flexibility, and costs data, compute and interpretability. A cell further right isn't a better answer by default.

03

Where would you start?

Predict

Predict first

You have 800 rows of tabular customer data with 15 columns, and need to predict churn. Which column should you start from?

Traditional statisticsModern MLDeep learning
Reveal

Traditional statistics: a logistic regression. It gives you a baseline, and it shows whether a flexible learner earns its complexity. On small tabular data the gap is often small, and you won't know that unless you built the baseline.

04

What flexibility looks like

Explore

Change the model and its flexibility, then raise the noise. Watch training accuracy climb while the boundary starts tracing noise. Compare a linear boundary with a tree and with a flexible model at low and high flexibility.

DExplorable · Decision boundary zoo

What shapes of boundary can each kind of model draw?

Which model will score highest on new data from this shape?

How sure?

Data

Model

5

k for neighbors, depth for trees, γ × 2 for the kernel, hidden units for the network.

0.20
150
Simulating…

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

05

Let your data narrow it

Read

Key traits rule cells out before you look at any method.

  • Size. Small data favors simple, regularized models.
  • Type. Text and images need representations; sequences need order respected.
  • Labels. Without a known outcome you can discover structure, but you can't train a predictor.
  • Structure. Grouped or time-ordered rows change both the model and the validation.
  • Requirements. An explanation, a fast score or honest uncertainty often outrank a last point of accuracy.
06

Check your understanding

Checkpoint

Check yourself

A retailer wants groups of customers with similar habits, and has no predefined segments. Which row?

Show the answer

Answer: c

No known outcome, and the aim is to find structure. Which of its cells you use depends on the data's type and size.

Check yourself

You have 2 million support tickets, 200 of them labeled by topic. Which is the most sensible direction?

Show the answer

Answer: b

Labels are the constraint, not rows. Partly labeled data opens up methods that lean on the unlabeled text, with the 200 as a check.

Check yourself

Put the workflow in order.

  1. 1Start with a question
  2. 2Validate and iterate
  3. 3Deploy and monitor
  4. 4Understand your data
  5. 5Choose an approach

Show the answer

The order:

  1. Start with a question
  2. Understand your data
  3. Choose an approach
  4. Validate and iterate
  5. Deploy and monitor

Choosing a method comes third. Validation comes after it, and monitoring never really ends.

Check yourself

A lender must explain each decision to the applicant. What does that requirement do?

Show the answer

Answer: b

Requirements are part of choosing. A slightly less accurate model you can explain may be the only one you can deploy.

07

Open the Atlas

In the app

Open Academy → Atlas. Set the data traits to your situation, and watch ineligible cells dim with the reason. Dots show what is available: Runs in CodeSplash, Partly, or an app feature, or Explained here only. Open a cell to see when to use it, how to measure it and what you trade off.

08

Recap

Recap
  • Question, data, approach, validation, deployment: choosing the method is only the third step.
  • The matrix crosses six question types with four eras, and moving right costs data and interpretability.
  • Filter by your data's traits, start simple, and move right for a reason.