2017-10-06 55 views
0

什麼是最簡單的/正確的方法在RapidMiner生成ExampleSet,看起來像這樣:在RapidMiner生成ExampleSet用零

enter image description here

我現在使用的方式:

enter image description here

選擇屬性是必要的,因爲'生成數據'給了我一個'標籤'屬性,我不想要

回答

0

三個運營商似乎是最小的。您可以使用Generate Data by User Specification結合LoopAppend。下面是一個例子...

<?xml version="1.0" encoding="UTF-8"?><process version="7.5.000"> 
    <context> 
    <input/> 
    <output/> 
    <macros/> 
    </context> 
    <operator activated="true" class="process" compatibility="7.5.000" expanded="true" name="Process"> 
    <process expanded="true"> 
     <operator activated="true" class="concurrency:loop" compatibility="7.5.000" expanded="true" height="82" name="Loop" width="90" x="246" y="136"> 
     <process expanded="true"> 
      <operator activated="true" class="generate_data_user_specification" compatibility="7.5.000" expanded="true" height="68" name="Generate Data by User Specification" width="90" x="179" y="238"> 
      <list key="attribute_values"> 
       <parameter key="attribute1" value="0"/> 
       <parameter key="anotherattribute" value="0"/> 
      </list> 
      <list key="set_additional_roles"/> 
      </operator> 
      <connect from_op="Generate Data by User Specification" from_port="output" to_port="output 1"/> 
      <portSpacing port="source_input 1" spacing="0"/> 
      <portSpacing port="sink_output 1" spacing="0"/> 
      <portSpacing port="sink_output 2" spacing="0"/> 
     </process> 
     </operator> 
     <operator activated="true" class="append" compatibility="7.5.000" expanded="true" height="82" name="Append" width="90" x="447" y="136"/> 
     <connect from_op="Loop" from_port="output 1" 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> 

安德魯