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.

[SOLVED] strange behavior with new versions

morix77morix77 Member Posts: 3 Contributor I
edited November 2018 in Help
Hello,
Are some versions (=> 5.2.008) that behaves in a strange way the piece of code that you find on the underside.
In short, the error occurs in the append, caused by the different type (nominal, real), this happens if there are no records that pass the filter (Channel B).
The last working version for this example is 5.2.006.

sorry for my English but google is my friend

Thank you very much and good day
Morix



<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.005">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.3.005" expanded="true" name="Process">
   <process expanded="true">
     <operator activated="true" class="generate_data" compatibility="5.3.005" expanded="true" height="60" name="Generate Data" width="90" x="45" y="165">
       <parameter key="number_examples" value="1"/>
       <parameter key="number_of_attributes" value="1"/>
     </operator>
     <operator activated="true" class="generate_attributes" compatibility="5.3.005" expanded="true" height="76" name="Generate Attributes" width="90" x="179" y="165">
       <list key="function_descriptions">
         <parameter key="V_NOMINAL" value="&quot;X1&quot;"/>
       </list>
     </operator>
     <operator activated="true" class="select_attributes" compatibility="5.3.005" expanded="true" height="76" name="Select Attributes" width="90" x="313" y="165">
       <parameter key="attribute_filter_type" value="single"/>
       <parameter key="attribute" value="V_NOMINAL"/>
     </operator>
     <operator activated="true" class="multiply" compatibility="5.3.005" expanded="true" height="94" name="Multiply" width="90" x="447" y="75"/>
     <operator activated="true" class="filter_examples" compatibility="5.3.005" expanded="true" height="76" name="B" width="90" x="581" y="165">
       <parameter key="condition_class" value="attribute_value_filter"/>
       <parameter key="parameter_string" value="V_NOMINAL=X1"/>
       <parameter key="invert_filter" value="true"/>
     </operator>
     <operator activated="true" class="generate_attributes" compatibility="5.3.005" expanded="true" height="76" name="Gen B" width="90" x="715" y="165">
       <list key="function_descriptions">
         <parameter key="V_REAL" value="0"/>
       </list>
     </operator>
     <operator activated="true" class="filter_examples" compatibility="5.3.005" expanded="true" height="76" name="A" width="90" x="581" y="30">
       <parameter key="condition_class" value="attribute_value_filter"/>
       <parameter key="parameter_string" value="V_NOMINAL=X1"/>
     </operator>
     <operator activated="true" class="generate_attributes" compatibility="5.3.005" expanded="true" height="76" name="Gen A" width="90" x="715" y="30">
       <list key="function_descriptions">
         <parameter key="V_REAL" value="0"/>
       </list>
     </operator>
     <operator activated="true" class="append" compatibility="5.3.005" expanded="true" height="94" name="Append" width="90" x="916" y="75"/>
     <connect from_op="Generate Data" from_port="output" to_op="Generate Attributes" to_port="example set input"/>
     <connect from_op="Generate Attributes" from_port="example set output" to_op="Select Attributes" to_port="example set input"/>
     <connect from_op="Select Attributes" from_port="example set output" to_op="Multiply" to_port="input"/>
     <connect from_op="Multiply" from_port="output 1" to_op="A" to_port="example set input"/>
     <connect from_op="Multiply" from_port="output 2" to_op="B" to_port="example set input"/>
     <connect from_op="B" from_port="example set output" to_op="Gen B" to_port="example set input"/>
     <connect from_op="Gen B" from_port="example set output" to_op="Append" to_port="example set 2"/>
     <connect from_op="A" from_port="example set output" to_op="Gen A" to_port="example set input"/>
     <connect from_op="Gen A" from_port="example set output" to_op="Append" to_port="example set 1"/>
     <connect from_op="Append" from_port="merged set" 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>

Answers

  • Nils_WoehlerNils_Woehler Member Posts: 463 Maven
    Hi,

    thanks for reporting. This is indeed strange. We will have a look into it.

    Best,
    Nils
  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    That is indeed nasty. We already have an internal issue for that, but until it is fixed you can work around that by applying a Parse Numbers operator after the attribute generation. Select the generated attribute to be parsed. If it is already numerical (when the example set is not empty), it does nothing; if the example set is empty, it simply switches the data type from nominal to numerical.

    Best regards,
    Marius
  • morix77morix77 Member Posts: 3 Contributor I
    Thank you so much for your support and for the momentary trick

    sorry for my English but google is my friend

    Good day
    Morix
Sign In or Register to comment.