🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.

Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!


How to remove example rows with script?

qwertzqwertz Member Posts: 130  Maven
edited November 2018 in Help

Dear all,

after getting a little familiar in writing scripts I managed to add and remove examples (thanks to various posts in this forum).
But can anyone please help to explain how to remove example rows in a given example set?

Kind regards

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="6.1.000">
  <operator activated="true" class="process" compatibility="6.1.000" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="generate_data" compatibility="6.1.000" expanded="true" height="60" name="Generate Data" width="90" x="45" y="30"/>
      <operator activated="true" class="execute_script" compatibility="6.1.000" expanded="true" height="76" name="Execute Script" width="90" x="179" y="30">
        <parameter key="script" value="ExampleSet es = input[ 0 ];&#10;&#10;//remove first row ?&#10;&#10;return input;"/>
      <connect from_op="Generate Data" from_port="output" to_op="Execute Script" to_port="input 1"/>
      <connect from_op="Execute Script" from_port="output 1" 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.