compute_impurity_decrease
Module: strata.tree • Kind: function
Source: strata/tree/criterion.mojo
def compute_impurity_decrease( parent_impurity: Float64, n_parent: Int, left_impurity: Float64, n_left: Int, right_impurity: Float64, n_right: Int,) -> Float64from strata.tree import compute_impurity_decrease**Calculates weighted impurity decrease: parent - (n_l/n)left - (n_r/n)right.