I am confused about which decision tree algorithm in weka to use for my application. I have 5 real input variables and 2 classes. In various online tutorials J48 (C 4.5) seems to be the algorithm of choice. Are there any rules of thumb / tips / tricks to decide which tree algorithm should be used ?
-
$\begingroup$ I don't know what all the different types of trees are. Just a quick practical remark from my Machine Learning experience: I think that the most common and stable solution from the listed is Random Forest. $\endgroup$– Dmitry LaptevCommented Aug 23, 2012 at 15:37
1 Answer
Start with J4.8 since it is fastest to train and generally gives good results. Also its output is human readable therefore you can see if it makes sense. It has tree visualizers to aid understanding. It is among most used data mining algorithms.
If J4.8 does not give you good enough solutions , try other algorithms.
Random forests may give you better solution but it is not human readable and it is not as fast as J4.8 (due to training multiple trees in process).
I recommend following strategy to you if you want to learn how tree algorithms work better.
- Read about J4.8 and how it is trained. Most tree algorithms use variation of CART, ID3, C4.5, C5.0. They are very similar conceptually.
- After that read about boosting and ensemble methods.
- Read about random forests. They use ideas from above methods.
- Read about other algorithms after these ones. For example NBTree uses naive bayes at the leaves. LMT uses "Classifier for building 'logistic model trees', which are classification trees with logistic regression functions at the leaves."
There are also some issues to consider choosing algorithms.
I found that some algorithms are more memory hungry than others. I worked with 4.8 Million instances database, KDD99. I could train j4.8 with 4GB ram but not random forests for that matter a lot of other algorithms, ( Neural Networks , SVM etc)
Some other tree classifiers may not deal with your attributes or your class size. for example ADTree only support two class problems. Some algorithms may not support date attributes etc.
-
1$\begingroup$ Thanks for advice and refs. So following seem to be the attributes to be taken into consideration while choosing decision trees - 1. Training time 2. Readability 3. Memory requirement 4. Attribute type mis-match 5. Supported class size $\endgroup$ Commented Aug 24, 2012 at 6:06