Basic implementation of naive Bayes on .arff files.
A basic Java program implementing naive Bayes on .arff files, for categorical attribute types only, using Laplace Smoothing.
- Just download all files into a folder, compile, and run
- Compile and run the program from a terminal with the following commands:
javac NaiveBayes.java ArffParser.java NaiveBayesModel.java CategoricalFeature.java Feature.java
java NaiveBayes [TRAINING FILENAME].arff [TESTING FILENAME].arff