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