View source: R/41_refined_anchored_lasso.R
compute_predictive_contributions | R Documentation |
Analyzes the relative contribution of grouped features to the overall discriminant signal, based on averaged Lasso coefficients across cross-validation folds.
compute_predictive_contributions(result, group, group_threshold = 5)
result |
A result object returned by |
group |
A grouping vector indicating group membership of features. Must be the same length as the number of features. |
group_threshold |
Integer. Minimum number of active features required in a group for it to be considered active. Default is 5. |
The function identifies active groups based on cross-validated non-zero coefficients, then decomposes the total L2 norm of the average coefficient vector across groups.
A data frame with two columns:
Group name or label.
Proportion of total predictive signal attributable to that group.
collect_active_features_proj
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.