Interview practice question
Classifying products into a deep category tree
Machine Learning · NLP · Intermediate
You need to classify products into a taxonomy with 2,000 categories in 4 levels. How do you approach it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Hierarchical classification: predict top level, then lower levels.
- Or flat classifier with hierarchy-aware loss.
- Embedding similarity to category descriptions for rare categories.
- LLM for long-tail categories.
- Evaluate at each level; allow partial credit.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.