title: How can I print the top 5 topics in my classification model?
body: <p>I am working my scikit-learn in python for my topic classification program. Scikit metrics prints the top probability of a document being in a class. However, what I want to know is when I provide an input document X to my classifier, the classifier will generate a vector of different topics.  </p>
  
  <p>Every value in that generated vector will represent a probability that it belongs to some topic.
  Then document X will be classified as topic Y corresponding to the highest probability (among 88 values).
  Instead of taking the highest probability and assigning the corresponding topic to document X, I want to know the top 5 topics with highest probabilities.How can I do so. </p>
  
  <pre><code>model = LogisticRegression()
  model = model.fit(matrix, label)
  
  y_train_pred = model1.predict(matrix_test)
  </code></pre>