Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.11 KB

File metadata and controls

27 lines (15 loc) · 1.11 KB

Naive-Bayes

Naive Bayesian classifiers assume that the effect of an attribute value on a given class is independent of the values of the other attributes. This assumption is called classconditional independence. It is made to simplify the computations involved and, in this sense, is considered “ naive ” .

Modify the tuple in the main() function , in order to test the performance of the model .

Execution:

In eclipse : 
  
            inlcude the input file input.csv in the direcoty containing the src folder and 
            place all the .java files in the src folder.
            
In cmd : 
  
            include the input file and .java files in the same directory and run the commands,

                          $ javac NaiveBayes.java

                          $ java NaiveBayes