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.
"Generate attribute if clause"
Hello again,
I have troubles getting an operator to work:
Thanks in advance,
Markus
I have troubles getting an operator to work:
I want to add the values from the attributes "PT_old" and "PT_add" to the new column PT.
<operator activated="true" class="generate_attributes" compatibility="5.0.0" expanded="true" height="76" name="Generate Attributes (27)" width="90" x="179" y="435">
<list key="function_descriptions">
<parameter key="PT" value="if( PT_old=NaN , PT_add , PT_old )"/>
</list>
<parameter key="keep_all" value="true"/>
</operator>
Thanks in advance,
Markus
Tagged:
0
Answers
Unfortunately the formula parser does not recognise NaN, so you have to fool it if you can! With numbers this seems to work.. Not quite sure what you'd do for nominals, but you get the idea..
Just a small remark! Even in Java NaN==NaN is allways false.
It's feature not a bug!
Best regards,
chero