The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Edit to Decision tree condition value"
hi,
Thanks RapidMiner Team for this GUI Data Mining Software.
I am new To RM, for the past three months i am developing one simple project in RM using Decision Tree Learner.
Now my Boss want to Edit the Rule Value of Decision Tree and then again Apply the new Decision Tree in Data Set.
So any chance, to edit the rule value in java applet program and again feed into rapidminer process.
Because now i get decision tree ouput as jpeg, txt and xml.
Thanks in advance
Thanks RapidMiner Team for this GUI Data Mining Software.
I am new To RM, for the past three months i am developing one simple project in RM using Decision Tree Learner.
Now my Boss want to Edit the Rule Value of Decision Tree and then again Apply the new Decision Tree in Data Set.
So any chance, to edit the rule value in java applet program and again feed into rapidminer process.
Because now i get decision tree ouput as jpeg, txt and xml.
Thanks in advance
Tagged:
0
Answers
import com.rapidminer.RapidMiner;
import com.rapidminer.Process;
import com.rapidminer.tools.container.Pair;
import java.io.File;
public class RunRMProcess{
public static void main(String[] argv) throws Exception {
RapidMiner.init();
System.setProperty("rapidminer.init.operators", "G:\\RapidMiner\\Processxml-files\\rmprocess.xml");
Process process=new Process(new File("G:\\RapidMiner\\Processxml-files\\rmprocess.xml"));
process.getContext().addMacro(new Pair<String,String>("Appname","wine"));
process.run();
}
}
Here is my Rapidminer Xml: Help me to show editable decision tree in java applet program..
Thanks in advance
Please give atleast a hint, where to start.
Now i have to do
1. Show the ouput Model(Decision Tree) in java applet.
For that i have to convert Output of Decision Tree Learner into Editable Graph.
2. Edited value of Tree Node must reflected in XML file.
The value must parsed into xml file of Decision Tree Model.
Thanks in advance...
do I understand you correctly that you want to edit the conditions on the edges of the decision tree, e.g. when it say "if value >0.5 go left, otherwise go right" you want to edit the 0.5?
If so, I'm afraid that's not supported by RapidMiner. If you want to add this functionality, you would have to replace/extend RapidMiner code.
Classes that might be interesting:
com.rapidminer.operator.learner.tree.TreeModel
com.rapidminer.operator.learner.tree.Tree
com.rapidminer.operator.learner.tree.Edge
Apart from that, models are not stored as XML files. They are serialized objects, so you might want to look at IOObjectSerializer.getInstance().serialize(OutputStream, IOObject) and IOObjectSerializer.getInstance().deserialize(InputStream).
You should be able to cast the model from IOObject to TreeModel (or whatever your own model you implemented yourself later on is called) and continue from there.
Regards,
Marco