Upload
atif
View
217
Download
4
Embed Size (px)
DESCRIPTION
This document describes how to to integrate the project with any kind of data. The naive bayes classifier is a probabilistic model for classifying objects.
Citation preview
1. How to integrate the project with any kind of dataStep 1. Create a new project in NetBeans. Name it as “Naive Bayes Classifier”
Step 2. Create a new package and name it “bayesClassifier”.
Step 3. Under this package paste the 5 source files. (DriverClass.java, FeatureProbability.java, Instance.java, NaiveBayesClassifier.java, NaiveBayesLearner.java)
Step 4. Go to “Naive Bayes Classifier” folder, create a file and name it “data”. Keep both training.txt and testing.txt data file in this “data” folder.
Step 5. Right click on the project to build it and then run it.
Step 6. Find the classification results in Result.txt file inside data folder.
2. Simple class diagram of the project
FeatureProbability (interface) Instance (class)
NaiveBayesLearner (class)
Implements Instantiates
NaiveBayesClassifier (class)
Extends