Skip to content

squared_error_impurity

Module: strata.tree • Kind: function
Source: strata/tree/criterion.mojo

def squared_error_impurity[dtype: DType](
y: List[Scalar[dtype]],
indices: List[Int],
) -> Float64
from strata.tree import squared_error_impurity

Calculates sample variance for target subset.