Search code examples
weka

why my weka doesn't show detailed accuracy by class


why my weka doesn't show detailed accuracy by class section in result? how can i change the setting? Thanks

enter image description here


Solution

  • Your statistics output lists Correlation coefficient and not Correctly Classified Instances, which implies that your class attribute is numeric (RandomForest can function as a regressor and classifier).

    Per-class statistics can only be generated for nominal class attributes.

    If your class attribute is indeed a nominal one, then you have to turn it into a nominal one, e.g., by using the NumericToNominal filter.