Glossary term
Glossary term
Evaluation and Benchmarks
The percentage of times that a "target label" appears within the first k positions of generated lists. The lists could be personalized recommendations or a list of items ordered by softmax.
Top-k accuracy is also known as accuracy at k.
Note: The target label could be any class (not necessarily the ground truth class), so top-k accuracy is not always equivalent to traditional accuracy.
Click the icon for an example.
Created for this library
A retail recommender team reports top-5 accuracy on its product taxonomy classifier because shoppers often see several options at a time.
A search-quality team reports top-10 accuracy because the first ten results are what users typically engage with.
An NLP team reports top-3 accuracy on its intent classifier so the agent can offer ranked suggested actions.
Definition source: Google for Developers Machine Learning Glossary | Creative Commons Attribution 4.0 License