Finding structure when nothing is labeled
Discover answers questions that have no outcome column. Learn which question you are asking, and what you can and can't conclude from the answer.
You will be able to
- Tell a Discover question apart from a prediction question
- Match a question to one of the seven Discover intents
- Explain why there is no test score that says an unsupervised answer is right
No outcome to predict
ReadIn Model you give the app a target and it learns to predict it. A held-out set then tells you how well that went.
Discover has no target. Unsupervised learningUnsupervised learningFinding structure in data with no outcome column to predict, so there is no answer key to score against. looks for structure in the rows or columns themselves: groups, unusual rows, a simpler way to draw the data.
That freedom has a price. No answer key exists, so an algorithm will always return something. Clusters appear even in pure noise. Your job shifts from "how accurate is it?" to "is this real, is it stable, and can I use it?"
Which question is this?
PredictPredict first
A subscription business has a churned column and wants to know which current customers are likely to leave next month. Which page fits?
Reveal
Model. The outcome is recorded, so you can train on past churn and check predictions on held-out customers. Discover would ignore the very column that answers the question. If the same business instead asked "what kinds of customers do we have?", no column holds the answer, and that is a Discover question.
Seven questions, seven intents
ReadDiscover starts from what you want to know:
| Intent | The question |
|---|---|
| Find segments | Which groups of similar rows are there? |
| Spot anomalies | Which rows don't look like the rest? |
| Map the data | What does the data look like in two dimensions? |
| Co-occurring items | Which items appear together? |
| Topics in text | What do these texts talk about? |
| Journeys & sequences | In what order do things happen? |
| Do the groups separate? | Do known groups differ across many variables at once? |
The last one is different: you already know the groups and are testing them, so it runs significance tests. The Multivariate Methods track covers it.
Choose the intent
CheckpointCheck yourself
You have 40,000 support tickets as free text and want a summary of what people complain about. Which intent fits?
Show the answer
Answer: c
Topic models work on a text column and return groups of words that occur together, along with each document's mix of topics.
Check yourself
You have no labeled fraud cases, but you want a short list of transactions worth a human look. Which intent fits?
Show the answer
Answer: b
Anomaly methods score how unusual each row is and hand you the top of the list. They find what is unusual, which may or may not be fraud, so a person still reviews the list.
Check yourself
k-means returns five tidy clusters with a clean-looking chart. What does that tell you on its own?
Show the answer
Answer: c
Tidy output is guaranteed by the algorithm. Evidence of real structure has to come from elsewhere: a tendency check, stability under resampling, and whether the groups mean something.
How you judge an answer
ReflectWithout an answer key, you collect several weaker kinds of evidence. Discover has a place for each:
- Before: the Checks step can test whether the rows clump at all.
- Internal scores: silhouetteSilhouette scoreHow well each point sits in its cluster compared with the nearest other cluster, from −1 to 1. and friends measure how compact and separated the groups are.
- Stability: do the same groups return when the data is resampled?
- Known groups: if a label exists, hold it out of the fit and compare with the adjusted Rand indexAdjusted Rand indexAgreement between two clusterings corrected for chance; 0 is random, 1 is identical..
- Usefulness: can you name the groups and act on them?
Think of a segmentation you have seen used at work. Which of these did it have?
Walk through it
In the appTry the full flow on penguins: choose features, cluster, profile the groups, then save the segments as a new dataset version. Every step happens in the real page.
Palmer penguinsThe page follows the same four steps every time: Data, Features, Method, and for some intents Checks. A run opens on a Result tab, with Code and Runs beside it.
Recap
Recap- Discover answers questions that have no outcome column; Model answers questions that do.
- Unsupervised methods always return something, so a tidy output is not evidence.
- Judge an answer from several angles: tendency, internal scores, stability, known groups and usefulness.
Concepts in this lesson