Read Learning Curves to Diagnose a Lens Plant Classifier
Last updated: November 29, 2026
Quick Overview
A plant species classifier for Google Lens reaches 99% training accuracy but 71% on validation. Using learning curves, explain how you would decide whether to collect more data, regularize, or change the model.
0
0
0 solved
A plant species classifier for Google Lens reaches 99% training accuracy but 71% on validation. Using learning curves, explain how you would decide whether to collect more data, regularize, or change the model.
Lens covers thousands of fine-grained classes with uneven data per class, so diagnosing where error comes from is a core skill. The interviewer wants a systematic bias-versus-variance diagnosis rather than a list of random fixes.
What the Interviewer Expects
- Identify the large train and validation gap as high variance
- Explain learning curves over training set size and what each shape implies
- Check the validation set for distribution shift before blaming overfitting
- Prioritize fixes: augmentation, regularization, pretrained backbone, more data for weak classes
- Break errors down per class to find where the gap lives
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- What would the curves look like if the problem were high bias instead?
- How would you tell overfitting apart from label noise in the training set?
- If more data helps, which classes would you collect first?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Ask how train and validation were split (random images, or by user and location), how many images per class, whether a pretrained backbone is used, and what accuracy target matters for launch....
Approach
Plot two curves: accuracy versus training set size (subsample 10%, 25%, 50%, 100%) and accuracy versus epochs. Then do per-class error analysis on the validation set....