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.

I don't the reason of the expression error.

limingliming Member Posts: 13 Learner II
edited August 2019 in Help
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
Tagged:

Best Answer

  • limingliming Member Posts: 13 Learner II
    Solution Accepted
    Choose "Insert and evaluate" in "Insert macro". The corresponding is as following,

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 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
Sign In or Register to comment.