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)

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 by ml_model. Usually be one of 2, 3, 5, 10, 20, 50, 100. Default is 10.

nsim

Numeric. A positive integer indicating the times of simulation. Default is 5.

Value

Return a SummarizedExperiment object containing analysis results.

Examples

data("ml_se_sub")
shap_se <- ml_shap(ml_se_sub, feature_num=10, nsim=5)