The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Converting numerical label to binomial ??
Hello everybody,
I'm just getting into RapidMiner and have a question about the label type of examples.
Some learners need nominal labels, but my data file has +1 & -1, which is recognized by CVSExampleSource as numerical.
I tried Numerical2Binomial, but that converts all attributs and not only my label attribute.
Finally, I used the AttributeDescriptionFileWizard to specify the type of my label attribute.
That works, but I wonder if I could also solve this problem using an operator ??
Many thanks,
Axel
I'm just getting into RapidMiner and have a question about the label type of examples.
Some learners need nominal labels, but my data file has +1 & -1, which is recognized by CVSExampleSource as numerical.
I tried Numerical2Binomial, but that converts all attributs and not only my label attribute.
Finally, I used the AttributeDescriptionFileWizard to specify the type of my label attribute.
That works, but I wonder if I could also solve this problem using an operator ??
Many thanks,
Axel
Tagged:
0
Answers
The BinDiscretization operator does the trick, like this...
Many thanks.
Axel
The stated problem that all attributes were converted rather than just the label was addressed by using the AttributeSubsetPreprocessing operator in haddock's process. It allows you to select just the attributes you want to convert, and leaves the others intact.
You could swap the BinDiscretization operator for a Numerical2Binominal operator inside AttributeSubsetPreprocessing and end up with a very similar result in this particular example.