Implementation of the above two Algorithms for Assignment 02 of the course CS6375: Machine Learning.
1. NAIVE BAYES:
Compile:
$ javac NaiveBayes.java
Execution:
$ java NaiveBayes <train dataset> <test dataset> <filter stopwords? yes/no>
Example:
$ java NaiveBayes train test yes
2. LOGISTIC REGRESSION:
Compile:
$ javac LogisticRegression.java
Execution:
$ java LogisticRegression <train dataset> <test dataset> <remove stopwords? yes/no> <learning rate> <lambda> <iterations>
Example:
$ java LogisticRegression train test no 0.75 0.75 100