The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"[Solved] Windowing operator returns just 0"

qwertzqwertz Member Posts: 130 Contributor II
edited June 2019 in Help
Good evening,

The following process seems to be correct to me but after windowing, all examples of the label attribute are "0". Please help!!!
If you enable the set role operator it works. So it seems that is something with the combination of windowing operator and the "id" role.


Best regards
Sachs

PS: In my original file I used dates as an id but with the same result.

<?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="402" width="835">
     <operator activated="true" class="generate_data" compatibility="5.2.008" expanded="true" height="60" name="Generate Data" width="90" x="45" y="30"/>
     <operator activated="true" class="rename" compatibility="5.2.008" expanded="true" height="76" name="Rename" width="90" x="179" y="30">
       <parameter key="old_name" value="label"/>
       <parameter key="new_name" value="id"/>
       <list key="rename_additional_attributes"/>
     </operator>
     <operator activated="true" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role" width="90" x="313" y="30">
       <parameter key="name" value="id"/>
       <parameter key="target_role" value="id"/>
       <list key="set_additional_roles"/>
     </operator>
     <operator activated="true" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role (2)" width="90" x="447" y="30">
       <parameter key="name" value="att3"/>
       <parameter key="target_role" value="label"/>
       <list key="set_additional_roles"/>
     </operator>
     <operator activated="false" class="set_role" compatibility="5.2.008" expanded="true" height="76" name="Set Role (3)" width="90" x="581" y="75">
       <parameter key="name" value="id"/>
       <list key="set_additional_roles"/>
     </operator>
     <operator activated="true" class="series:windowing" compatibility="5.2.001" expanded="true" height="76" name="Windowing" width="90" x="715" y="30">
       <parameter key="window_size" value="1"/>
       <parameter key="create_label" value="true"/>
       <parameter key="label_attribute" value="att3"/>
     </operator>
     <connect from_op="Generate Data" from_port="output" to_op="Rename" to_port="example set input"/>
     <connect from_op="Rename" from_port="example set output" to_op="Set Role" to_port="example set input"/>
     <connect from_op="Set Role" 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_op="Windowing" to_port="example set input"/>
     <connect from_op="Windowing" 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>
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi Sachs,

    please update both RapidMiner and the Series Extension to the latest version and try again. Do you still have this problem? There has been performed quite some work on the Windowing operator.

    Best regards,
    Marius
  • qwertzqwertz Member Posts: 130 Contributor II

    That's it! I haven't seen that there is a new version so far. Lucky me, seems that my problem has been fixed just a few days before I discovered that it is there :)

    Cheers
    Sachs
Sign In or Register to comment.