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

  1. 0

    Weka in Java "Class index is negative" error

    Stack Overflow | 4 months ago | Kerim Caner Tümkaya
    weka.core.UnassignedClassException: Class index is negative (not set)!
  2. 0

    How can I use weka in java and eclipse to implement a decision tree?

    Stack Overflow | 7 months ago | user1887967
    weka.core.UnassignedClassException: weka.classifiers.trees.j48.C45PruneableClassifierTree: Class attribute not set!
  3. 0

    Batch Filtering with Multi-Filter throws a 'Class attribute not set' exception

    Stack Overflow | 3 years ago | Gthoma2
    weka.core.UnassignedClassException: weka.filters.supervised.instance.Resample: Class attribute not set!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ERROR While using WEKA API in java code: Class Attribute Not Set?

    Stack Overflow | 5 years ago | Angga Raditya
    weka.core.UnassignedClassException: weka.classifiers.trees.j48.C45PruneableClassifierTree: Class attribute not set!

    Root Cause Analysis

    1. weka.core.UnassignedClassException

      Class index is negative (not set)!

      at weka.core.Instances.numClasses()
    2. weka-dev
      Evaluation.<init>
      1. weka.core.Instances.numClasses(Instances.java:915)
      2. weka.classifiers.evaluation.Evaluation.<init>(Evaluation.java:461)
      3. weka.classifiers.evaluation.Evaluation.<init>(Evaluation.java:441)
      4. weka.classifiers.Evaluation.<init>(Evaluation.java:211)
      4 frames
    3. weka1
      Weka1.main
      1. weka1.Weka1.classify(Weka1.java:84)
      2. weka1.Weka1.main(Weka1.java:193)
      2 frames