how to pass multiple key and value in filter example dynamically

sgnarkhede2016
sgnarkhede2016 New Altair Community Member
edited November 2024 in Community Q&A
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

Answers

  • Telcontar120
    Telcontar120 New Altair Community Member
    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.
  • sgnarkhede2016
    sgnarkhede2016 New Altair Community Member
    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
  • Telcontar120
    Telcontar120 New Altair Community Member
    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.