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.

Average over attributes

MuehliManMuehliMan Member Posts: 85 Maven
edited November 2018 in Help
Hi again,

I have another problem and hope for some help:
My table has values from difference sources. All attributes have the name [value]_[reference]. I would like to average over all attributes belonging to the same [value]. Is this possible using the "Loop over Attributes" Operator or any other way? The References are names (strings) by the way.

Thanks in advance.

Best regards,
Markus

Answers

  • haddockhaddock Member Posts: 849 Maven
    Like this ?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.0">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" expanded="true" name="Process">
        <process expanded="true" height="353" width="790">
          <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="45" y="30"/>
          <operator activated="true" class="generate_aggregation" expanded="true" height="76" name="Generate Aggregation" width="90" x="315" y="30">
            <parameter key="attribute_name" value="plob"/>
            <parameter key="attribute_filter_type" value="regular_expression"/>
            <parameter key="regular_expression" value="att[1-2]"/>
            <parameter key="aggregation_function" value="average"/>
          </operator>
          <connect from_op="Generate Data" from_port="output" to_op="Generate Aggregation" to_port="example set input"/>
          <connect from_op="Generate Aggregation" 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>
  • MuehliManMuehliMan Member Posts: 85 Maven
    Thanks, this worked (as usual). =)
Sign In or Register to comment.