title: Add confusion matrix in naive bayes python code
body: <p>I would like to ask how to add confusion matrix in naive bayes python code.
  I got naive bayes code from
    <a href="http://pastebin.com/sUYm97qi" rel="nofollow noreferrer">naive bayes for iris data</a></p>
  
  <p>i need some change to add confusion matrix.
  i have separated code for confusion matrix but i  don't  know where to put this on my code, and i don't know what to replace ??? with what.</p>
  
  <pre><code>y_actu = pd.Series(???, name='Actual')
  y_pred = pd.Series(???, name='Predicted')
  df_confusion = pd.crosstab(y_actu, y_pred, rownames=['Actual'], colnames=['Predicted'], margins=True)
  
  print df_confusion
  </code></pre>
  
  <p>i'm sorry for my bad english.</p>