Package com.imsl.test.example.datamining
Class NaiveBayesClassifierEx2
java.lang.Object
com.imsl.test.example.datamining.NaiveBayesClassifierEx2
Trains a classifier on nominal (categorical) attributes.
This example trains a NaiveBayesClassifier on 24 training patterns with four nominal input attributes.
The first nominal attribute has three classifications and the others have two. The target classifications are contact lense prescriptions: hard, soft or neither recommended. These data are benchmark data from the Knowledge Discovery Databases archive maintained at the University of California, Irvine: http://archive.ics.uci.edu/ml/datasets/Lenses.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NaiveBayesClassifierEx2
public NaiveBayesClassifierEx2()
-
-
Method Details
-
main
- Throws:
Exception
-