Lesson 15 / Unit 4: Training Experiments
Error Inspection
Listen to actual held-out examples and compare their references with saved model outputs.
The retained model returns some correct digit strings and some incorrect ones. Listen before looking at the prediction, then compare both with the reference. Fluency is not available as a distraction in this tiny vocabulary: each extra or missing digit is visible.
Listen First
Assembled from the held-out speaker’s source recordings. Predict the digit string before reading the table.
The pauses were inserted by the data generator; these are not naturally spoken continuous identifiers.
Audio attribution and exact source filenames are included in the lab download.
| Example | Reference | Hypothesis |
|---|---|---|
| 1 | 183 | 183 |
| 2 | 294 | 294 |
| 3 | 15 | 5 |
Classify Failures
For each mismatch, record whether a digit was substituted, deleted or inserted. Then inspect sequence length, repeated digits and the source audio. A label such as “bad audio” is not enough to suggest an intervention.
import jsonresults = json.load(open('my-run/results.json'))for row in results['predictions']: if row['reference'] != row['hypothesis']: print(row['files'], row['reference'], row['hypothesis'])An empty hypothesis stays visible. A wrong string of the expected length is also a failure; length validation cannot recover which digit was spoken.
Keep Comparisons
When you change decoding, save both old and new hypotheses for the same examples. Look for regressions as well as fixes. Reviewing only newly correct cases would bias the narrative.
Move to Word Errors to compute edit rate, then Entity Accuracy to score entire strings. The original STT component guide connects those distinctions to business actions.
We do this work for teams shipping voice agents: Self-Hosted Voice Agent .
Edit this lesson on GitHub ↗Discussion
Questions, corrections and war stories welcome. Sign in with GitHub to comment.