Cart Algorithm in Matlab with more than binary splits?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone, I want to create a Decision Tree from non-numerical, categorical data (for example I want to predict whether one should play tennis according to the weather conditions which are given categorical like "hot", "mild" or "cold"). The functions in matlab only seem to be using binary splits (maybe I am also wrong), however, I would wish to also allow for splits into more than just 2 branches per node...So do you know how I can have non-numerical predictor data and then allow for more than just binary splits?
A concrete example would be great!
0 件のコメント
回答 (1 件)
Ilya
2012 年 5 月 14 日
The CART algorithm described in the book by Breiman et al. uses binary splits only. The MATLAB implementation is based on this algorithm and allows only binary splits. Multiway splits are allowed in other decision tree algorithms such as C4.5.
There is no evidence that multiway splits produce consistently higher accuracy than binary splits, or the other way around.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!