figsr_importance() computes the total reduction in residual impurity (Sum of Squares gain)
attributable to each predictor feature across all trees in the fitted FIGS model.
Value
A tibble with one row per predictor and columns feature, gain
(raw sum-of-squares reduction) and importance, sorted by decreasing
importance.
Details
Each split node stores the reduction in residual sum of squares it achieved at the moment it was chosen. Importance for a feature is the sum of those gains over every split made on that feature, across all trees in the sum. Features never selected receive a gain of zero.
When the model was fitted with na_method = "mia", a split on whether a
predictor is missing is reported on its own row, named missing(<predictor>),
because such a split never consults the predictor's value. A split that
merely sends missing values to one side is credited to the predictor.
