Skip to content

Files

Latest commit

 

History

History

Naive Bayes Classifier

Naive Bayes Classifier

Description (main.py)

  • This code does not use sklearn functions (from scratch)
  • This code classifies (predicts) a message text is spam or not.
  • This code make a prediction given new inputs (function predict_from_naive_bayes_model).

Execution

python main.py

Description (vscikit-learn.py)

  • This version of code uses sklearn functions to valid the previous results.

Execution

python vscikit-learn.py