While working with the DecisionTreeClassifier I visualized it using graphviz, and I have to say, to my astonishment, it seems it takes categorical data and uses it as continuous data.
All my features are categorical and for example you can see the following tree (please note that the first feature, X[0], has 6 possible values 0, 1, 2, 3, 4, 5:
From what I found here the class uses a tree class which is a binary tree, so it …
python machine-learning decision-tree scikit-learn categorical-data