特征顺序会影响sklearn中的决策树算法吗? [英] Does feature order impact Decision tree algorithm in sklearn?
本文介绍了特征顺序会影响sklearn中的决策树算法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我读了一些材料:
但是我可以找到是否更改功能顺序(功能名称集: [a,b,c]更改为[b,a,c]).这实际上会影响决策树的结果吗?
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?
推荐答案
不是. Sklearn通常使用购物车树,通过选择使成本函数最小化的功能来确定最佳拆分.因此,列的顺序并不重要.
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.
这篇关于特征顺序会影响sklearn中的决策树算法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!