multiclass classification rapidminer
aziz_hadi
New Altair Community Member
please any one can help me what is the steps to build multiclass classification rapidminer model in rapidminer
Tagged:
0
Answers
-
Step 1 is have a training data set which has a multi-class label.
Step 2 is build a model.
It can really be that simple, depending on your exact use case & data.
In the example below I use a slightly changed version of the 1st RapidMiner sample process to look at the Multi-class example set 'Iris' (3 different possible labels).
Hope this helps you out, but let us know if you'd like to know more.<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.012">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.3.012" expanded="true" name="Root">
<description><table><tr><td><p>This process starts with loading the data. After finishing the input operator a typical learning step is performed. Here, an implementation of a decision tree learner is used which also can handle numerical values (similar to the well known C4.5 algorithm).</p></td><td><icon>groups/24/learner</icon></td></tr></table><p>Each operator may demand some input and delivers some output. These in- and output types are passed between the operators. In this example the first operator &quot;Input&quot; does not demand input and delivers an example set as output. This example set is consumed by the learner which delivers the final output: the learned model. </p><p>Since this is a linear data flow such a process design is called &quot;operator chain&quot;. Later we will see more sophisticated processes in the form of operator trees.</p><p>Try the following:</p><ul><li>Press the &quot;Play&quot; icon in the icon bar at the top of the frame. The process should start and after a short time the message viewer in the bottom part of the frame shows the message that the process was successfully finished. The main frame changes to &quot;Result&quot; view which shows the learned decision tree (a hypothesis which is called Model in RapidMiner). <table><tr><td><icon>24/media_play</icon></td><td><i>&quot;Play&quot; button to start the process</td></tr></table></li><li>Change back to the edit mode (either via the View menu entry, via the icon in the upper right corner, or via the shortcut F9). Replace the learner by another learning scheme for classification tasks (right click on decision tree learner and replace operator). You can use the RuleLearner for example. After running the changed process the new model is presented.<table><tr><td><icon>groups/24/learner</icon></td><td><i>Replace the decision tree learner by a RuleLearner.</i></td></tr></table></li></ul></description>
<process expanded="true">
<operator activated="true" class="retrieve" compatibility="5.3.012" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">
<parameter key="repository_entry" value="../../data/Iris"/>
</operator>
<operator activated="true" class="decision_tree" compatibility="5.3.012" expanded="true" height="76" name="DecisionTree" width="90" x="179" y="30"/>
<connect from_op="Retrieve" from_port="output" to_op="DecisionTree" to_port="training set"/>
<connect from_op="DecisionTree" from_port="model" 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>0