"Filtering based on attribute values"

frankiefrankie MemberPosts:26Contributor II
edited May 2019 inHelp
Hello,

while this might be a simple question, I have to ask, what is the best way to filter a dataset based on a subset of attribute values?
For example: let's say that I have a dataset with 3 attributes

[tt]
attr1 range: [1,10]
attr2 range: [1,20]
attr3 range: [1,30]
[/tt]

and that I want to filter out those examples that have either
[tt]attr1 > 9 OR attr2 > 18 OR attr3 < 5[/tt].

Can these "outliers" be filtered with one operator? How?
Thanks!
Tagged:

Answers

  • haddockhaddock MemberPosts:849Maven
    Er,... you can use 'Filter Examples', here is some stuff from thehelp!!!!!
    Please note your can define a logical OR of several conditions with || and a logical AND of two conditions with two ampersand (condition1 && condition2) - or simply by applying several ExampleFilter operators in a row. Please note also that for nominal attributes you can define a regular expression for value of the possible equal and not equal checks.
    To filter all examples (i.e. rows) where an attribute "att" has a missing value use the expression "att = ?" resp. "att!= ?". Note that for nominal values the question mark must be escaped ("\?") because, as noted above, a regular expression is expected in this case.
    For "unknown_attributes" the parameter string must be empty. This filter removes all examples containing attributes that have missing or illegal values. For "unknown_label" the parameter string must also be empty. This filter removes all examples with an unknown label value.
    这里是一个例子……





    <宏/ >
















    >
  • frankiefrankie MemberPosts:26Contributor II
    Thanks and sorry for not reading the entire help-file. Just though the "Filter Examples" operator looked too simple with only one input field.. hence I disregarded it...:)
  • haddockhaddock MemberPosts:849Maven
    Easily done, and it is not the world's raciest read ;D

    Good weekend!
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:2,531Unicorn
    Hi,
    well if anybody finds a better description of what it does: Just edit it on the wiki...I'm very open to all literary valuable phrases that still help to understand what an operator does:)

    Greetings,
    Sebastian
Sign InorRegisterto comment.