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
W-M5P
Hello everyone,
I am using the W-M5P from the weka extension to get a model tree and be able to extract rules. However, I always get only one rule (shown in the screenshot) and also I don't get the graph of the tree at all unlike with the rapidminer regression tree or random forest.
It would be great if anyone could help here
Thank you in advance!
I am using the W-M5P from the weka extension to get a model tree and be able to extract rules. However, I always get only one rule (shown in the screenshot) and also I don't get the graph of the tree at all unlike with the rapidminer regression tree or random forest.
It would be great if anyone could help here
Thank you in advance!
Tagged:
0
Best Answer
-
varunm1 Member Posts: 1,207 UnicornHello @islem_h
I have gone through your process and I don't fing any issues with your process. I have gone through Ross Quinlan paper on M5 algorithms and observed that this is the way this algorithm works. Actually, M5 is Model-based tree building algorithm in contrast to traditional regression-based tree building methods. This builds models at the leaves rathen than placing values like decision tree. One of the major capabilities of M5 is that it can remove variables based on a greedy approach and some times all of them. Also, the pruning strategy is different. I attached the link to this algorithm you can go through this to understand.M5 uses a greedy search to remove variables that contribute little to the model; in some cases, m5 removes all variables, leaving only a constant
The algorithm is generating a single linear equation based on your data. When you compare this with the Decision tree algorithm, then you see differences, this is because they work on regression rules. If you want W-M5 to build a regression-based tree model, then you can select the option "R" in the parameters of W-M5P, this gives you are regular regression based tree.
https://sci2s.ugr.es/keel/pdf/algorithm/congreso/1992-Quinlan-AI.pdf
Regards,
Varun
https://www.varunmandalapu.com/Be Safe. Follow precautions and Maintain Social Distancing
8
Answers
I tried with the polynomial dataset in RapidMiner Samples. I can get multiple rules using W-M5P or W-M5Rules operators from weka extension. I can also generate the tree (Screenshots below). It mainly depends on your data. If you can provide your XML process and dataset we can try to replicate and see what is happening. Sample code used attached in this as well.
Varun
https://www.varunmandalapu.com/
Be Safe. Follow precautions and Maintain Social Distancing
It clarifies it all.