特征重要性的资料
理解sklearn决策树的clf.tree_结构(适用于随机森林)
Understanding the decision tree structure
xgboost有3种内置的特征重要性计算方式,分别是’weight’, ‘gain’, ‘cover’;
1.importance_type=weight(默认值),特征重要性使用特征在所有树中作为划分属性的次数。
2.importance_type=gain,特征重要性使用特征在作为划分属性时loss平均的降低量,平均信息增益
。
3.importance_type=cover,特征重要性使用特征在作为划分属性时对样本的覆盖度。