Ricardo Cruz
Ricardo Cruz

Reputation: 3593

Remove instances where nominal attribute = value (Weka GUI)

I have a dataset with:

How do I remove instances where e.g. cluster=cluster5? (using the GUI)

I was told to use the filter weka.filters.unsupervised.instance.RemoveWithValues, but it seems to only be able to remove numerical values below a certain splitPoint. I could of course use the Edit window, but notice I have 400 instances!

Upvotes: 1

Views: 6499

Answers (1)

Walter
Walter

Reputation: 2811

weka.filters.unsupervised.instance.RemoveWithValues will remove nominal values. Note the field "nominalIndices" in the image below. After selecting the index of the desired attribute, enter the index of the nominal value you would like to have removed. enter image description here

Upvotes: 3

Related Questions