title: How to find the corresponding class in clf.predict_proba()
body: <p>I have a number of classes and corresponding feature vectors, and when I run predict_proba() I will get this:</p>
  
  <pre><code>classes = ['one','two','three','one','three']
  
  feature = [[0,1,1,0],[0,1,0,1],[1,1,0,0],[0,0,0,0],[0,1,1,1]]
  
  from sklearn.naive_bayes import BernoulliNB
  
  clf = BernoulliNB()
  clf.fit(feature,classes)
  clf.predict_proba([0,1,1,0])
  &gt;&gt; array([[ 0.48247836,  0.40709111,  0.11043053]])
  </code></pre>
  
  <p>I would like to get what probability that corresponds to what class. On this page it says that they are ordered by arithmetical order, i'm not 100% sure of what that means: <a href="http://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC.predict_proba">http://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC.predict_proba</a></p>
  
  <p>Does it mean that I have go trough my training examples assign the corresponding index to the first encounter of a class, or is there a command like </p>
  
  <p><code>clf.getClasses() = ['one','two','three']?</code></p>