Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images
README.md
avg.py
nbc.py
vanilla.py

README.md


Perceptron and Naive Bayes Classifier Implementation

Aakash Pydi


Usage Instructions


There are three python scripts in this project. They are,

  1. vanilla.py --> Implements a vanilla perceptron classifier
  2. avg.py --> Implements an average perceptron classifier
  3. nbc.py --> Implements a naive bayes classifier

The scripts take the following arguments,

  • trainingDataFile --> corresponds to a subset of the Yelp dataset that is used as the training set
  • testingDataFile --> corresponds to another subset of the Yelp data that is used as the test set
  • maxIterations --> The perceptron models (vanilla.py and avg.py), take an additional parameter corresponding to the maximum number of iterations it should run.

Analysis



You can’t perform that action at this time.