AlbertoD
AlbertoD

Reputation: 146

Weka API - possible classification output

In weka.classifier.Evaluation there is the toMatrixString() method, which outputs the confusion matrix like below.

  a  b  c   <-- classified as
 50  0  0 |  a = Iris-setosa
  0 45  5 |  b = Iris-versicolor
  0  3 47 |  c = Iris-virginica

I noticed classes in this output are taken from the dataset given as parameter of Evaluation constructor.

Is there a way to obtain a list of possible outputs from the Classifier object?

Upvotes: 1

Views: 128

Answers (1)

Pandit
Pandit

Reputation: 748

The possible output will always be from the the range that it has during the Training Mode. Basically, it will create a data structure

Status {PASS,FAIL,UNDEFINED}

When you are building a model it will classify based on the values it found on Target index.

So in your case,

Iris-setosa, Iris-versicolor and Iris-virginica

are the possible outcomes the Classifier Object will have.

If you need more information. Please let me know.

Upvotes: 1

Related Questions