Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
[SOLVED] Binominal to Numerical
cliftonarms
Member Posts: 32 Contributor II
I need to use a classification prediction result value that is a binominal in a calculation, but it does not function in calculations and I cannot find a "Binominal to Numerical" operator.
Im trying to do the following
prediction(binominal) x attribute(real)
The prediction variable is 1 or -1
I have tried "generate attribute" with an "if" statement to convert the binominal, but that does not work either.
Any ideas.
Im trying to do the following
prediction(binominal) x attribute(real)
The prediction variable is 1 or -1
I have tried "generate attribute" with an "if" statement to convert the binominal, but that does not work either.
Any ideas.
0
Answers
By treating the binomial value as a string i.e. enclosing it in quotes, you can then test its value correctly and create a real variable via "generate attribute"
You could probably use polynominal to numerical - binominals are just frustrated polynominals after all.
Cheers
Andrew