Class NaiveBayesClassifierEx1

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

public class NaiveBayesClassifierEx1 extends Object

Trains a classifier to Fisher's Iris data.

This example trains a NaiveBayesClassifier on Fisher's Iris data. The training data contains 140 of the 150 continuous patterns and the remaining ten are then used as a test set. Fisher's (1936) Iris data is often used for benchmarking classification algorithms. It consists of the following continuous input attributes and a classification target:

  • Continuous Attributes Usage
    • Sepal Length
    • Sepal Width
    • Petal Length
    • Petal Width
  • Classification of Iris Type
    • Setosa
    • Versicolour
    • Virginica

See Also:
  • Constructor Details

    • NaiveBayesClassifierEx1

      public NaiveBayesClassifierEx1()
  • Method Details