Code Monkey home page Code Monkey logo

rahul1947 / ml-a02-naive-bayes-and-logistic-regression Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.15 MB

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

License: MIT License

Java 100.00%
machine-learning naive-bayes-classifier naive-bayes naive-bayes-algorithm naive-bayes-classification naive-bayes-implementation logistic-regression logistic-regression-algorithm java

ml-a02-naive-bayes-and-logistic-regression's Introduction

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

ml-a02-naive-bayes-and-logistic-regression's People

Contributors

rahul1947 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.