Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

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.

Cheers

Answers

  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458 Unicorn
    Hello

    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">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <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>
          <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"/>
            </list>
          </operator>
          <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"/>
            </list>
          </operator>
          <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"/>
        </process>
      </operator>
    </process>
    regards

    Andrew
Sign In or Register to comment.