This function utilizes the Shapley Additive exPlanations (SHAP) method to rank feature importance based on a user-defined number of features.
Arguments
- ml_se
A SummarizedExperiment object with results computed by
ml_model
.- feature_num
Numeric. The number of features to be shown in the plots. A feature number value selected from
feature_option
of the SummarizedExperiment object returned byml_model
. Usually be one of 2, 3, 5, 10, 20, 50, 100. Default is10
.- nsim
Numeric. A positive integer indicating the times of simulation. Default is
5
.
Examples
data("ml_se_sub")
shap_se <- ml_shap(ml_se_sub, feature_num=10, nsim=5)