"filter examples having values from an interval"

fritmorefritmore MemberPosts:90Maven
edited May 2019 inHelp
HI there

how (if possible) can I filter only examples taht take on values from an interval?
e.g. att1=[1...9]

in the Filter examples>attribute_value_filter I managed to do only this e.g. att1=5 but not an interval......
???
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    you can use this process:






    <宏/ >

    <运营商激活d="true" class="process" compatibility="5.1.008" expanded="true" name="Process">

    <运营商激活d="true" class="retrieve" compatibility="5.1.008" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">


    <运营商激活d="true" class="generate_attributes" compatibility="5.1.008" expanded="true" height="76" name="Generate Attributes" width="90" x="179" y="30">




    <运营商激活d="true" class="filter_examples" compatibility="5.1.008" expanded="true" height="76" name="Filter Examples" width="90" x="313" y="30">



    <运营商激活d="true" class="select_attributes" compatibility="5.1.008" expanded="true" height="76" name="Select Attributes" width="90" x="447" y="30">














    You just need to specify the range in the Generate Attribute operator, rename the column from "Test" to whatever you need and you're good to go:)

    Regards,
    Marco
  • fritmorefritmore MemberPosts:90Maven
    thank you Marco,

    it works, BUT I had to convert nominal label of interest into numerical and after filtering back into nominal. This is really clumsy way to do something like value range
    selection. :-\

    Hope this will be implemented as part of a single operator e.g. filter examples including nominal list filtering or perl like script selection.
    cheers
  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    well it's always helpful to have a numerical value if you want to do range filtering;)
    If you don't like the above process, you can do the same thing with the Execute Script operator, you will just need to write your own groovy script.

    Regards,
    Marco
  • fritmorefritmore MemberPosts:90Maven
    groovy! ;D
Sign InorRegisterto comment.