Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 572 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 572 Bytes

Naive Bayes

Basic implementation of naive Bayes on .arff files.

Description

A basic Java program implementing naive Bayes on .arff files, for categorical attribute types only, using Laplace Smoothing.

Getting Started

Installing

  • Just download all files into a folder, compile, and run

Executing program

  • 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