Measure the impurity drop before and after a binary split using the Gini index or entropy, to compare candidate features when building a decision tree.
决策树分裂选择增益最大的特征。
信息熵 H=−Σpᵢlog₂pᵢ;基尼不纯度 G=1−Σpᵢ²,均衡量节点混杂度。