No attributes to filter on (Filter Examples)
Hello guys!
I have a problem with using Filter Examples. I am using a data that is already in rapidminer ("Repository/Samples/data/Iris"). After putting data in the process I put the Filter Examples and connect them. Then in the parameters I press "Add Filters" but in the left box there are no attributes shown.
Here is my XML
<?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
<operator activated="true" class="retrieve" compatibility="8.1.000" expanded="true" height="68" name="Retrieve Iris" width="90" x="45" y="34">
<parameter key="repository_entry" value="//Samples/data/Iris"/>
</operator>
</process>
<?xml version="1.0" encoding="UTF-8"?><process version="8.1.000">
<operator activated="true" class="filter_examples" compatibility="8.1.000" expanded="true" height="103" name="Filter Examples" width="90" x="246" y="34">
<parameter key="parameter_expression" value=""/>
<parameter key="condition_class" value="custom_filters"/>
<parameter key="invert_filter" value="false"/>
<list key="filters_list"/>
<parameter key="filters_logic_and" value="true"/>
<parameter key="filters_check_metadata" value="true"/>
</operator>
</process>
Can somebody help with this issue?
Thank you in advance for your time.
Best regards,
Ledian
Best Answer
-
Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn
Usually this is simply a problem of metadata not propagating so RapidMiner can't pre-fill the attribute names. You can always type the name of the attribute directly and it will work. Or you can check the option to "synchronize meta data with real data" which is under the "Process" heading in the top menu bar.
2
Answers
Hi @lediankol
A priori there is a problem with your XML process : it can not be loaded.
Can you verify it ?
Regards,
Lionel
Hi @lediankol,
As @lionelderkrikor said your XML is broken. I attached my version of the process you described and I can select the Attributes to filter by.
Inspecting your XML I could not see the line
which would indicate that the Retrieve Operator and the Filter Examples Operator are *not* connected which would explain why Filter Examples does not know about the Attributes.
Best,
Edin
Hi to all and thank you for your replies!
Typing the name of the attribute directly does work but I was thinking maybe I could fix this issue. I checked the option to "synchronize meta data with real data" which is under the "Process" but still the same thing. So hopefully this time you have the correct XML.
Thank you again for your time.
@lediankol No, this XML is still bad. You have to open the XML panel and copy and paste it from there.
Your XML will get corrupted if you just select the operators with a crossing window and copy and paste.
@Thomas_Ott Thank you for your comment.
This my first time posting a question here and I did exactly what the video tutorial suggested for posting for the first time...
So now I dropped Iris data in the process and then conected Filter Examples. Then I pressed in the search option (on the right corner) XML: Display Panel XML. Maybe you mean this XML if I understand correctly.
Kind Regards,
Ledian
@lediankol Yes, that's what I mean. The XML is now correct and I managed to load it into my Studio. That said, I'm getting all the metadata from the Iris data set, I can see all the attributes in the Filter Example.
I have the same problem and I don't know, how to getting metadata from different data set. sometimes, I select Iris data set and select "synchronize metadata with real data" the problem was solved. but, when I changed the dataset from Iris to Titanic There was the same problem.