Answers.Body: <p>It is explained in this <a href="https://stats.stackexchange.com/questions/95391/what-is-the-definition-of-top-n-accuracy">CrossValidated post</a>. </p>
  
  <p>Top1 accuracy means the best guess (class with highest probability) is the correct result 58.9% of the time, while top5 accuracy means the correct result is in the top 5 best guesses (5 classes with highest probabilities) 87.7% of the time.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-20T06:05:22.233Z
Answers.Text: is there any script in python which can calculate topN accuracy for a pre-trained caffe model?
Answers.UserDisplayName: doplano
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-19T19:30:52.990Z
Answers.LastActivityDate: 2019-11-19T19:30:52.990Z
Answers.UserDisplayName: serali
Body: <p><a href="http://places.csail.mit.edu/downloadCNN.html" rel="nofollow noreferrer">Places205-VGG</a>, a CNN trained model for 205 scene categories of Places Database with  2.5 million images <code>Places205</code> dataset has <code>top1 accuracy = 58.9%</code> and <code>top5 accuracy = 87.7%</code>.</p>
  
  <p>What does <code>top1</code> and <code>top5</code> (and, in general, top <span class="math-container">$N$</span>) accuracy mean in the context of deep learning?</p>
  
Tags: <deep-learning><datasets><scene-classification><accuracy>
Title: What does top N accuracy mean?
UserDisplayName: doplano
ThreadText: # What does top N accuracy mean?
  
  (Asked by: username_0 on 2019-11-19)
  
  [Places205-VGG](http://places.csail.mit.edu/downloadCNN.html), a CNN trained model for 205 scene categories of Places Database with 2.5 million images `Places205` dataset has `top1 accuracy = 58.9%` and `top5 accuracy = 87.7%`.
  
  What does `top1` and `top5` (and, in general, top $N$) accuracy mean in the context of deep learning?
  
  **Tags:** deep-learning, datasets, scene-classification, accuracy
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-19. Score: 2 | Accepted answer
  
  It is explained in this [CrossValidated post](https://stats.stackexchange.com/questions/95391/what-is-the-definition-of-top-n-accuracy).
  
  Top1 accuracy means the best guess (class with highest probability) is the correct result 58.9% of the time, while top5 accuracy means the correct result is in the top 5 best guesses (5 classes with highest probabilities) 87.7% of the time.
  
  > **Comments:**
  > **username_0**: is there any script in python which can calculate topN accuracy for a pre-trained caffe model?  
  
  ---
  
  