Last chance! 50% off unlimited learning
Sale ends in
This function specifies the top features and prepares the data for plotting SHAP contributions for each row, or summary of absolute SHAP contributions for each feature.
feature.selection(
shapley,
method = "mean",
cutoff = 0,
top_n_features = NULL,
features = NULL
)
normalized numeric vector
shapley object
Character. The column name in summaryShaps
used
for feature selection. Default is "mean"
, which
selects important features which have weighted mean shap
ratio (WMSHAP) higher than the specified cutoff. Other
alternative is "lowerCI", which selects features which
their lower bound of confidence interval is higher than
the cutoff.
numeric, specifying the cutoff for the method used for selecting the top features. the default is zero, which means that all features with the "method" criteria above zero will be selected.
integer. if specified, the top n features with the highest weighted SHAP values will be selected, overrullung the 'cutoff' and 'method' arguments.
character vector, specifying the feature to be plotted.
E. F. Haghish