Compute root concentration-index impurity
Source:R/predict_ci_tree_terminal_mean.R
ci_root_impurity.RdComputes the unsplit/root concentration-index objective for a data set using
the same validation and scoring convention as tune_ci_tree() and
tune_ci_forest(). This is useful as a baseline for interpreting training
and validation gain.
Usage
ci_root_impurity(
data,
rank_name,
outcome_name,
weights = NULL,
type = c("CI", "CIg", "CIc", "L")
)