My implementation for Naive Bayes - As a part of Intro to Machine Learning at HUST
The code was based on sklearn - a python framework for machine learning. Think you will need to install via pip or anaconda is:
- numpy
- sklearn
- nltk
- pyprind
- pandas
The code contain 2 different way to contruct the input vector, one with just term frequency and one with term frequentcy - inverce term frequency. To run it, use "python main.py" when you have installed all the dependency above. For more detail, please read the comment inside source code.