The process XML "test5.xml" is below. The corresponding picture are as following, When I run the process, I encounter an error as following, How to fix the error
Choose "Insert and evaluate" in "Insert macro". The corresponding is as following,
1
Answers
MartinLiebigAdministrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts: 3,453 RM Data Scientist
@liming, to quickly explain it: Macros are by default Strings. This means: id < %{outlier} is a comparison between a string and an integer, which does not work. Evaluate allows you to interpret the string. In your case, it gets parsed and thus works. Interestingly you can also do things like id < eval("sqrt("+%{outlier}+")") which makes eval super strong.
Best, Martin
- Sr. Director Data Solutions, Altair RapidMiner - Dortmund, Germany
Answers
to quickly explain it: Macros are by default Strings. This means:
id < %{outlier}
is a comparison between a string and an integer, which does not work.
Evaluate allows you to interpret the string. In your case, it gets parsed and thus works. Interestingly you can also do things like
id < eval("sqrt("+%{outlier}+")")
which makes eval super strong.
Best,
Martin
Dortmund, Germany