Skip to content

About

Basic naive bayes algorithm implementation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages