title: Save classifier to disk in scikit-learn
body: <p>How do I save a trained <strong>Naive Bayes classifier</strong> to <strong>disk</strong> and use it to <strong>predict</strong> data?</p>
  
  <p>I have the following sample program from the scikit-learn website:</p>
  
  <pre><code>from sklearn import datasets
  iris = datasets.load_iris()
  from sklearn.naive_bayes import GaussianNB
  gnb = GaussianNB()
  y_pred = gnb.fit(iris.data, iris.target).predict(iris.data)
  print "Number of mislabeled points : %d" % (iris.target != y_pred).sum()
  </code></pre>