Labels you can trust: label issues and which rows to label next
Some labels in every real dataset are wrong. Find the rows a model confidently disagrees with, review them yourself, and spend new labeling effort on the rows that teach the model most.
You will be able to
- Explain why label issues come from out-of-fold probabilities, never from training predictions or the test set
- Read a flagged row's self-confidence, the model's guess and the per-class estimate
- Decide keep, relabel or drop for a flagged row, and know what Apply changes
- Explain how BADGE picks a batch of unlabeled rows that is both uncertain and varied
Read first
Wrong labels are normal
ReadA customer marked "churned" who renewed a week later. A ticket filed under "billing" that was a login problem. A scan labeled "benign" by a tired reviewer. Real labels carry mistakes, often a few percent of rows, and a model learns them as faithfully as it learns the truth.
You can't fix what you can't find, and reading every row isn't practical. Confident learning narrows the search to the rows most likely to be wrong.
Where the probabilities come from
ReadStart from probabilities the model gave each row without having trained on it: the out-of-fold predictions from cross-validation. Predictions on training rows are useless here, because a flexible model memorizes the wrong label and then agrees with it.
Thresholds and the confident joint
ReadFor each class, the threshold is the model's average probability of that class on the rows labeled with it: how sure the model usually is when the label is right.
A row "confidently belongs" to a class when its probability for that class reaches the class's threshold. Counting rows by their recorded label and the class they confidently belong to gives the confident joint. Rescaled to the label counts, its off-diagonal cells estimate how many rows of each label are really another class.
Which rows are flagged
ReadFor each pair of labels, the rows with the biggest gap between the other class's probability and their own label's are flagged, as many as the confident joint estimates. Rows the model predicts as their own label are never flagged.
Flagged rows are ranked by self-confidence, the probability of the recorded label, lowest first, so the clearest cases come first.
Reading the Label issues tab
ReadOpen a finished classification run in Predict and choose Label issues. You'll see how many rows were checked, how many are flagged, and an estimate of the mislabeled share for each class. Each flagged row shows its label, the model's guess with its probability, the label's self-confidence and the row's feature values.
A flag is a reason to look, not a verdict. The model can be wrong, especially on rare cases it hasn't seen enough of.
Deciding row by row
ReadFor each row you choose one of:
- Keep: the label is right; the model is wrong here.
- Relabel to …: the label is wrong; choose the right class.
- Drop the row: you can't tell, or the row shouldn't be in the data.
Nothing changes while you decide; your choices are saved with the run.
What Apply does
ReadApply writes your choices as one Apply label review step in a Prepare recipe, which makes a new dataset version. The source stays as it is, and the step can be switched off or removed.
A choice only applies while the row still has the label you reviewed, so it can't land on the wrong row if the data changes later. Then train again on the new version and compare the runs on the same test rows.
Which rows to label next
ReadSometimes the problem isn't wrong labels but missing ones: thousands of rows nobody has labeled yet. Labeling them all is expensive, and labeling a random handful wastes effort on rows the model already gets right.
Active learning chooses rows to label on purpose. In Acquire labels, the run's model scores the rows whose target is missing, and BADGE picks the batch.
How BADGE picks a batch
Read- For each row it builds a gradient embedding: how the model would change if its own best guess turned out to be the label. Rows the model is unsure about have long embeddings.
- It then picks rows the way k-means++ picks starting centers: the longest embedding first, then rows far from those already picked. The batch is uncertain and varied, so ten labels don't all teach the same lesson.
You type labels for the rows you can judge and skip the rest. Saving fills only rows that are still missing a label, as a new dataset version. The same seed always picks the same batch.
Check your understanding
CheckpointCheck yourself
Why does confident learning use out-of-fold probabilities rather than the model's predictions on its own training rows?
Show the answer
Answer: b
A row's label can only be questioned by a model that didn't learn from that row. That's exactly what each fold's held-out predictions give you.
Check yourself
Two flagged rows are labeled "no". The model gives the first "no" 2% and the second 30%. Which comes first in the list, and why?
Show the answer
Answer: a
Flagged rows are ranked by the probability of their recorded label, lowest first.
Check yourself
You relabel three rows and drop one, then choose Apply. What happens to your original dataset?
Show the answer
Answer: b
The review becomes a recipe step you can inspect, switch off or remove, so the change is always traceable.
Check yourself
A colleague suggests fixing labels on the test rows the model gets wrong, to "clean up" the test score. What's the problem?
Show the answer
Answer: b
Any decision driven by test-set results leaks into the test score. That's why the Label issues tab never uses the test rows.
Check yourself
Why does BADGE spread its batch out instead of taking the rows with the longest gradient embeddings?
Show the answer
Answer: b
Uncertainty finds rows worth labeling; diversity makes sure each new label adds something different.
Concepts in this lesson