Skip to content

amaan-modak/Classification-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classification-Algorithms

For all of the following implementations, please make sure you have the input dataset in the same folder from which you are calling the function.

  1. KNN.py contains our implementation of Nearest Neighbors. The name of the input file needs to be changed from inside the code. The program can be run with the command "python KNN.py". The program prints out the Accuracy, precision, recall and F value.

  2. NaiveBayes.py contains our implementation of Naive Bayes. The name of the input file needs to be changed from inside the code. The program can be run with the command "python NaiveBayes.py". The program prints out the Accuracy, precision, recall and F value.

  3. DecisionTrees.py contains our implementation of Decision Tree. The name of the input file needs to be changed from inside the code. The program can be run with the command "python DecisionTrees.py". The program prints out the Accuracy, precision, recall and F value. It can also print out the structure of the learned decision tree and details of each tree node.

  4. RandomForests.py contains our implementation of Decision Tree. The name of the input file needs to be changed from inside the code. The program can be run with the command "python RandomForests.py". The program prints out the Accuracy, precision, recall and F value for each round of cross validation as well as their average.

  5. Boosting.py contains our implementation of Decision Tree. The name of the input file needs to be changed from inside the code. The program can be run with the command "python Boosting.py". The program prints out the Accuracy, precision, recall and F value for each round of cross validation as well as their average.

About

Implementation of various classification algorithms such as k-Nearest Neighbor, Decision Trees, Random forests and Naive Bayes in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages