weka.core.UnassignedClassException: Class index is negative (not set)!

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

weka.core.UnassignedClassException: Class index is negative (not set)!
at weka.core.Instances.numClasses(Instances.java:915)
at weka.classifiers.evaluation.Evaluation.(Evaluation.java:461)
at weka.classifiers.evaluation.Evaluation.(Evaluation.java:441)
at weka.classifiers.Evaluation.(Evaluation.java:211)
at weka1.Weka1.classify(Weka1.java:84)
at weka1.Weka1.main(Weka1.java:193)

Users with the same issue

Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.