Skip to content

absolute_error_impurity

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

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

Calculates Mean Absolute Error around the median for target subset.