Apply a perfect-input check to isolate the source of a two-stage vision failure.
Case context: A roadside-sign system first finds a sign in a photo and then classifies the sign type. On one dev example, a stop sign is labeled "no sign" (y=0). The engineer is unsure whether the locating step or the sign-type classifier caused the mistake, because the pipeline only returns the final label.
Question: How should the engineer use the perfect input test to identify which stage needs attention, and what does each possible result mean?
Sample answer: The engineer should create a hand-marked crop that contains exactly the stop sign, then send that crop directly to the sign-type classifier and skip the locator’s output for this test. If the classifier still predicts y=0 with the clean crop, then the classifier is failing on that example and should be the focus of improvement. If the classifier predicts y=1 when given the clean crop, then the classifier is working and the original failure came from the locating step, which must have produced an inadequate region.
Key points:
- Manually specify the correct region for the failing example
- Feed that corrected crop to the classifier by itself
- Wrong even with the clean crop -> classifier is the problem
- Correct with the clean crop -> locator output caused the error
Rubric: Full credit: correctly explains replacing the locator output with a hand-marked region, running the classifier on that input, and interpreting both outcomes correctly. Partial credit: describes the test but reverses one conclusion. No credit: suggests a diagnostic method that does not test the pipeline stage directly.
0
1
Tags
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Data Science
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
Using Component Errors to Focus Improvement
What should replace the first stage output in a perfect-input check for a bird detector and species classifier pipeline?
True or False: If a crop classifier still mislabels an image even after the fruit region has been perfectly marked and isolated, the crop-detection stage is the cause of the remaining error.
In the perfect input test, if the traffic-sign classifier now correctly outputs y=1 when given a hand-labeled box, the original mistake is attributed to the _____.
Match each outcome of a perfect-input check to the component that should be held responsible for the pipeline error.
Order the steps in the perfect-input check for isolating an error between a traffic sign detector and a sign-type classifier.
How a perfect intermediate result pinpoints where a two-stage system fails
Apply a perfect-input check to isolate the source of a two-stage vision failure.
What must an engineer prepare to run the perfect input test, and why must it be exact?
Attributing Error After a Perfect Input Check
True or False: The perfect input test can help isolate which stage in a pipeline is responsible for an error.