The Altair Community and the RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options
How to change regular attribute by appending macro and use that attribute for calculation
![sgnarkhede2016](https://us.v-cdn.net/6030995/uploads/defaultavatar/nCCNNSPK1YM69.jpg)
![](https://s3.amazonaws.com/rapidminer.community/vanilla-rank-images/contributor-16x16.png )
Hello,
I have the regular attribute name "atttribute_W" , the W is coming from my macro and append to atttribute
next time regular attribute changes to "atttribute_Y" as per my config macro
When I am using this in generate attribute for calculation I getting error "erroneous expression"
Value_%{macro1} if (Profile=="High",attribute_%{maco1}*100,
if (Profile=="Medium",attribute_%{maco1}*200,
attribute_%{maco1}*300))
I have the regular attribute name "atttribute_W" , the W is coming from my macro and append to atttribute
next time regular attribute changes to "atttribute_Y" as per my config macro
When I am using this in generate attribute for calculation I getting error "erroneous expression"
Value_%{macro1} if (Profile=="High",attribute_%{maco1}*100,
if (Profile=="Medium",attribute_%{maco1}*200,
attribute_%{maco1}*300))
0
Best Answer
-
Options
sgnarkhede2016 Member Posts: 152
Contributor II
Its work for me before I did not use quotes for attributes names that's why not working
round(eval("AARPI_TXN_SD_CNT_"+%{initial}))
0
Answers
Can you provide your process as .rmp file? You can export from rapidminer using File --> Export process and attach it here. Also, did you check if macro names are correct?
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
check_%{initial} score_%{initial}
e.g.
score_%{initial} is already calculated in example set i want to calculate the score on that value but %{initial} changes to W, M,HY(week,Month..) as per iteration.
I tried Concat but it not working for me