🎉 🎉   RAPIDMINER 9.5 BETA IS OUT!!!   🎉 🎉

GRAB THE HOTTEST NEW BETA OF RAPIDMINER STUDIO, SERVER, AND RADOOP. LET US KNOW WHAT YOU THINK!

CLICK HERE TO DOWNLOAD

🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.


Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!

CLICK HERE TO GO TO ENTRY FORM

[SOLVED] Binominal to Numerical

cliftonarmscliftonarms Member Posts: 32 Contributor II
edited November 2018 in Help
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.

Answers

  • cliftonarmscliftonarms Member Posts: 32 Contributor II
    After half a bottle of red I had inspiration.

    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"
  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458   Unicorn
    Hello,

    You could probably use polynominal to numerical - binominals are just frustrated polynominals after all.

    Cheers

    Andrew
Sign In or Register to comment.