Skip to content

CaretCake/NaiveBayes

Repository files navigation

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

About

Basic naive bayes algorithm implementation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages