I am using DecisionTreeClassifer
for CHAID in sklearn
and all of the trees I get split parent nodes into only 2 child nodes (where further splitting in possible)
Do you know whether it is possible to allow more splits (eg. 3 or more) at each point (as is the case with some of the commercial software packages – eg IBM SPSS)? Would I need to find another module within Python to achieve this?
DecisionTreeClassifer
has a number of parameters, but I could not see one where you can vary the number of parent nodes for each child
DecisionTreeClassifier(class_weight=None, criterion='gini', max_depth=None,max_features=None, max_leaf_nodes=None, min_impurity_decrease=0.0, min_impurity_split=None, min_samples_leaf=1, min_samples_split=20, min_weight_fraction_leaf=0.0, presort=False, random_state=99, splitter='best')
Any pointers would be most welcome! Thanks