The question you ask determines what the machine does
In Lesson 2, you learned three paradigms -- supervised, unsupervised, and reinforcement. That tells you how the machine learns.
But within supervised learning alone, there are two fundamentally different tasks. And unsupervised learning has its own. The task type determines what the model outputs, how you evaluate it, and what clinical decisions it can support.
You have a registry of 5,000 patients who underwent lower extremity bypass. Same patients. Same variables. But the question you ask completely changes the task:
Same data. Three different questions. Three different task types. The question you ask determines what the machine does -- and how you judge whether it did it well.
Every ML model does one of these three things. Tap each card for details.
Classification and regression are both supervised -- they need labeled outcomes. The difference is whether that outcome is a category or a number. Clustering is unsupervised -- no outcome column at all.
Lesson 2 told you how the machine learns. This lesson tells you what the machine outputs.
The task type determines how you judge whether the model is any good.
| Classification | Regression | Clustering | |
|---|---|---|---|
| Output | Category | Number | Group assignment |
| Paradigm | Supervised | Supervised | Unsupervised |
| Key metrics | AUC, sensitivity, PPV | MAE, RMSE, R² | Silhouette, clinical validity |
| Clinical question | "What will happen?" | "How much / how long?" | "What types exist?" |
| Traditional equivalent | Logistic regression | Linear regression | Phenotyping (informal) |
Continuing from Lesson 1 -- here is how to decode the methods section through the lens of task types.
Some authors take a continuous outcome and chop it into categories. "Prolonged length of stay (>7 days) -- yes or no" turns a regression problem into a classification problem. This can be valid (clinically, you may care more about "prolonged vs. not" than the exact number), but it also throws away information. When you see this, ask: did they choose the cutoff based on clinical relevance, or did they just pick the median?
A common two-step approach: first cluster patients (unsupervised), then predict outcomes within clusters (supervised). The overall paper uses both task types. The question is which step answers the primary research question -- discovery of subgroups (clustering) or prediction of outcomes (classification/regression). If they skip straight to reporting cluster-specific survival curves without validating the clusters themselves, the discovery step was never properly evaluated.
The first question when reading any ML paper: is the model predicting a category, predicting a number, or finding groups? This tells you which metrics to look for and what kind of validation to expect.
Read the study description. Identify the task type: classification, regression, or clustering.
Module 1 - Lesson 3 complete
You now have two layers of ML literacy. Lesson 2: how does the machine learn? (supervised, unsupervised, reinforcement). This lesson: what does the machine output? (category, number, group). Next up -- what goes into the machine.