What is Top-k Accuracy?
Top-k accuracy measures how often the correct answer is among a model's k most likely suggestions. With top-1 only the first prediction counts; with top-5 it is enough for the correct class to be among the five best, a well-known metric from image recognition benchmarks such as ImageNet. It is useful wherever users see several suggestions, for example product recommendations or autocomplete.