title: How to find out the accuracy?
body: <p>I've wondered if there is a function in sklearn which corresponds to the accuracy(difference between actual and predicted data) and how to print it out?</p>
  
  <pre><code>from sklearn import datasets 
  iris = datasets.load_iris()
  from sklearn.naive_bayes import GaussianNB
  naive_classifier= GaussianNB()
  y =naive_classifier.fit(iris.data, iris.target).predict(iris.data)
  pr=naive_classifier.predict(iris.data)
  </code></pre>