Skip to content

Implementation of Naive Bayes and Logistic Regression Algorithms for Assignment 02 in the course CS6375: Machine Learning.

License

Notifications You must be signed in to change notification settings

rahul1947/ML-A02-Naive-Bayes-and-Logistic-Regression

Repository files navigation

ML-A02: Naive Bayes and Logistic Regression

Implementation of the above two Algorithms for Assignment 02 of the course CS6375: Machine Learning.

Problem:

Assignment 02

Solution:

How to Run:

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

Releases

No releases published

Packages

No packages published

Languages