Options

Read Sparse and the Label Attribute

sWnsWn Member Posts: 5 Contributor II
edited November 2018 in Help
Hello!

I am trying to create a Decision Tree with Rapidminer and followed a Video Tutorial.

My problem is to use "Read Sparse" as input... I am getting an error because the input example set must have the special attribute 'label' although i do have a label in the data view.

For testing purposes I used data in this form:
Yes 1:15
No 1:25
No 1:26
Yes 1:12

And here the XML-Code
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.017">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.1.017" expanded="true" name="Process">
   <process expanded="true" height="663" width="1094">
     <operator activated="true" class="read_sparse" compatibility="5.1.017" expanded="true" height="60" name="Read Sparse" width="90" x="179" y="120">
       <parameter key="data_file" value="C:\Users\sWn\Desktop\myTxt.txt"/>
       <parameter key="dimension" value="1"/>
       <parameter key="use_quotes" value="false"/>
       <list key="prefix_map"/>
     </operator>
     <operator activated="true" class="split_validation" compatibility="5.1.017" expanded="true" height="112" name="Validation" width="90" x="447" y="120">
       <process expanded="true" height="645" width="502">
         <operator activated="true" class="decision_tree" compatibility="5.1.017" expanded="true" height="76" name="Decision Tree" width="90" x="179" y="30"/>
         <connect from_port="training" to_op="Decision Tree" to_port="training set"/>
         <connect from_op="Decision Tree" from_port="model" to_port="model"/>
         <portSpacing port="source_training" spacing="0"/>
         <portSpacing port="sink_model" spacing="0"/>
         <portSpacing port="sink_through 1" spacing="0"/>
       </process>
       <process expanded="true" height="645" width="502">
         <operator activated="true" class="apply_model" compatibility="5.1.017" expanded="true" height="76" name="Apply Model" width="90" x="112" y="30">
           <list key="application_parameters"/>
         </operator>
         <operator activated="true" class="performance" compatibility="5.1.017" expanded="true" height="76" name="Performance" width="90" x="313" y="30"/>
         <connect from_port="model" to_op="Apply Model" to_port="model"/>
         <connect from_port="test set" to_op="Apply Model" to_port="unlabelled data"/>
         <connect from_op="Apply Model" from_port="labelled data" to_op="Performance" to_port="labelled data"/>
         <connect from_op="Performance" from_port="performance" to_port="averagable 1"/>
         <portSpacing port="source_model" spacing="0"/>
         <portSpacing port="source_test set" spacing="0"/>
         <portSpacing port="source_through 1" spacing="0"/>
         <portSpacing port="sink_averagable 1" spacing="0"/>
         <portSpacing port="sink_averagable 2" spacing="0"/>
       </process>
     </operator>
     <connect from_op="Read Sparse" from_port="output" to_op="Validation" to_port="training"/>
     <connect from_op="Validation" from_port="training" to_port="result 1"/>
     <connect from_op="Validation" from_port="averagable 1" to_port="result 2"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="90"/>
     <portSpacing port="sink_result 2" spacing="0"/>
     <portSpacing port="sink_result 3" spacing="0"/>
   </process>
 </operator>
</process>
What am I doing wrong?
Sign In or Register to comment.