I am using KNIME in order to activate a WEKA node AttributeSelectedClassifier . But i keep getting this exception claiming that my attribute is nominal and has duplicate values.

But, it is numeric and it is very expected to have duplicate values in the dataset!

AttributeSelectedClassifier - How to deal with error "A nominal attribute (likes) cannot have duplicate labels ('(0.045455-0.045455]')"

I found similar topics to this one but none of them is covering how to chose the scalar to scale values with

1st Question: so i will be happy if someone can explain why is this behavior? I mean why duplicate values is bad?!

Anyway, One of the threads of a similar topic recommended to scale the values by a large enough number (a scalar)!

Based on that I multiplied values with 10^6 and got error about this value: 27027.027027-27027.027027

I multiplied by 10^7 and then got an error about this value: 270270.27027-270270.27027

when i multiplied by 10^8 it succeeded.

2nd Question: what is the right way to deal with this? and how can i, programatically, chose the scalar to scale with ?

The full error:

ERROR AttributeSelectedClassifier - Execute failed: IllegalArgumentException in Weka during training. Please verify your settings. A nominal attribute (Meanlikes) cannot have duplicate labels ('(0.045455-0.045455]').

0

There are 0 answers