Naive Bayes Classifier (Scripts) Publisher's description
from Avinash Parnandi
This code provides a two simple examples of naive Bayes classifier
This code provides a two simple examples of naive Bayes classifier.
In the first example the input are a bunch of positive and negative numbers and their corresponding classes i.e. posi or negi and is tested with random numbers.
In the second example the input are numbers and task is to classify into groups such that # from 1-10 are in class 0, 11-20 are in class 10, # 21-30 in class 20..... # 41-50 in class 40 etc.
I have also given a sample (non-functional) for classification with multiple features
An important thing to note is that the number of training samples should be more than the number of classes; or else you will get an error.
the test data should be with in the range of the sample training data.
System Requirements:MATLAB 7.0.4 (R14SP2)
Program Release Status: New Release
Program Install Support: Install and Uninstall