how to pass multiple key and value in filter example dynamically

sgnarkhede2016sgnarkhede2016 Member Posts: 152 Contributor II
edited July 2020 in Help
Hello ,
I have four column 
Attr_1    Attr_2          Attr_3            Attr_4
name    Sachin         product        Credit Card;Insurence 

In above four column Attr_1 and Attr_3 are Key and Attr_2 and Attr_4 values of of these key.

I want to store that key and values in macro then pass to filter example operator.how can i do that

Thanks,
Sachin N

Tagged:

Answers

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    Your question is a bit unclear but you can do this in a variety of ways in RapidMiner.  One approach would be to use Extract Macro or Generate Macro and Loop Examples to set these macros for each example in your dataset and then do whatever you are planning with this macro.
    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
  • sgnarkhede2016sgnarkhede2016 Member Posts: 152 Contributor II
    edited July 2020
    hello,
    Problem is first case ,I have four column 
    Attr_1    Attr_2          Attr_3            Attr_4
    name    Sachin         product        Credit Card;Insurence 

    next iteration I have two column 
    Attr_1    Attr_2         
    name    Sachin        
    if i used extract macro then first case it works but in second getting error Attr_3 and  Attr_4 not present
  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
    You can fix this if you harmonize your dataset to ensure that all records have the same attributes, even if they are blank or missing.

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
Sign In or Register to comment.