I am new to scikit. I am trying to use the sklearn module to train a decision tree classifier. The data consists of some categorical features and some continuous features. But when I train the classifier, the categorical features, which have the values like 1,2,3 and so on, are treated as continuous. The result which I obtain gives a range even for the categorical values for the features. For example, I get a decision tree in which X[0]<4.5 implies a particular class, where X[0] is a categorical feature. Note that since here X[0] is a categorical, value 1 has nothing to do with value 2 but the classifier is combining them together. How do I deal with this?
And is there any way to increase the number of splits at the nodes which contains categorical feature and categories more than 2.