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ᵢ²,均衡量節點混雜度。