Identify erroneously classified instances using WEKA

I use the WEKA GUI version and I classify the use of Naive Bayes. Can someone please let me know how to find out which cases are mistakenly classified.

+6
source share
4 answers
  • Go to the classification tab in Weka explorer
  • Select advanced options ...
  • Check output forecasts
  • Click OK

Hope this helps.

+12
source

I encountered this same problem earlier, and now I am dealing with it. I do the following:

  • Create one String attribute that assigns a unique identifier to each instance. I assigned document names to each of my instances.
  • Create the .arff file supported by WEKA.
  • Whenever you need to run the classifier against .arff data, you will notice that you need to exclude the instance identifier attribute. If you do not, Weka will throw an error stating that the classifier cannot handle String attributes. Instead of throwing an exception, run the StringToNominal filter in InstanceID.
  • Now, as @Rushdi said, click "Advanced Options" on the "Classification" tab.
  • Check output forecasts on the “Classifier Evaluation Parameters” pop-up window.
  • Enter the instance ID attribute number in the Add Additional Attributes box.
  • Run the classifier for all data except the instance identifier attribute. (Most classifiers have this as the “StartSet” parameter in “Ranker,” for example, which I use with the SMO classifier.)
  • If you have done everything right so far, you will see all the instances listed along with their real and predicted output values, as well as an instance identifier that can accurately indicate which documents were incorrectly classified.

Hope this helps someone. Good luck

+6
source

Your release should have an incorrectly classified section with a number and a percentage that should be like that. The red box in this image is what you are looking for. Edit : source image source here

0
source

This works for me:

  • Decompile official weka.jar
  • Find the classification you want to check in the library in order to know how it works, and determine which instances are mistakenly classified.
0
source

Source: https://habr.com/ru/post/916059/


All Articles