Class NaiveBayesClassifierEx2

java.lang.Object
com.imsl.test.example.datamining.NaiveBayesClassifierEx2

public class NaiveBayesClassifierEx2 extends Object

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.

See Also:
  • Constructor Details

    • NaiveBayesClassifierEx2

      public NaiveBayesClassifierEx2()
  • Method Details