Skip to content
#

conditional-probability

Here are 19 public repositories matching this topic...

To build a probabilistic model from in python the training set (1997 emails of Ham/Spam ), we parse the all files and build a vocabulary with all the words it contains. Then, for each word, compute their frequencies and conditional probabilities for each class.Then from testing set (800 emails) we compute the score of both class as given by our classifier and based on that score we classify whether it is spam or not. We also calculate accuracy, precision, recall, F1-measure and confusion matrix for each class (spam and ham).

  • Updated May 18, 2020
  • Jupyter Notebook

Improve this page

Add a description, image, and links to the conditional-probability topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the conditional-probability topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.