Does feature order impact Decision tree algorithm

2019-09-21 02:34发布

问题:

I read some material:

  • decision tree document in sklearn

  • A Quora Answer

However I can find if I change feature order(the set of feature name: [a,b,c] change into [b,a,c]) in the data. Does this actually affect decision tree result?

回答1:

Not really. Sklearn generally uses Cart trees where the best split is decided by picking the feature that minimizes a cost function. So the order of column doesn't really matter.