Outlier Detection

CaptainChaosCaptainChaos Member Posts: 17 Contributor II
Hi Guys,
I have simple question. Is it possible to calculate outliers based on the values of one Attribute and to show all the attributes in the result.



  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458 Unicorn

    You could try setting the roles of the attributes you want to ignore to something like "ignoreN".

    Here's an example
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.2.008">
      <operator activated="true" class="process" compatibility="5.2.008" expanded="true" name="Process">
        <process expanded="true" height="661" width="1021">
          <operator activated="true" class="retrieve" compatibility="5.2.008" expanded="true" height="60" name="Retrieve" width="90" x="45" y="75">
            <parameter key="repository_entry" value="//Samples/data/Iris"/>
          <operator activated="true" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role" width="90" x="45" y="165">
            <parameter key="name" value="a2"/>
            <parameter key="target_role" value="ignore2"/>
            <list key="set_additional_roles">
              <parameter key="a3" value="ignore3"/>
              <parameter key="a4" value="ignore4"/>
          <operator activated="true" class="detect_outlier_distances" compatibility="5.2.008" expanded="true" height="76" name="Detect Outlier (Distances)" width="90" x="246" y="75"/>
          <operator activated="true" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role (2)" width="90" x="246" y="165">
            <parameter key="name" value="a2"/>
            <list key="set_additional_roles">
              <parameter key="a3" value="regular"/>
              <parameter key="a4" value="regular"/>
          <connect from_op="Retrieve" from_port="output" to_op="Set Role" to_port="example set input"/>
          <connect from_op="Set Role" from_port="example set output" to_op="Detect Outlier (Distances)" to_port="example set input"/>
          <connect from_op="Detect Outlier (Distances)" from_port="example set output" to_op="Set Role (2)" to_port="example set input"/>
          <connect from_op="Set Role (2)" from_port="example set output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>

Sign In or Register to comment.