Options

How to create a filter contains AND/OR clauses

FouadKayaliFouadKayali Member Posts: 3 Newbie
I want to remove outliers based on the market segements, different market segment has different ranges of prices, so I want to filter based on both attributes for example 
(Market segment = online and price > 500) or (Market segment = offline and price > 1000)
Tagged:

Answers

  • Options
    hmhsinghmhsing Member Posts: 29 Maven
    You may try the attached process using Titanic data from RapidMiner Samples.
  • Options
    hmhsinghmhsing Member Posts: 29 Maven
    An easier way is to select expression in Filter Example condition class and write   

    Price>500&&contains(Market segment,"online")||Price>1000&&contains(Market segment,"offline") 

    in parameter expression.  I hope this will work!
Sign In or Register to comment.