This function is for visualizing the results of Shapley Additive exPlanations (SHAP) results.

plot_ml_shap(shap_se)

Arguments

shap_se

A SummarizedExperiment object with results computed by ml_shap.

Value

Return 2 interactive plots, 2 static plots, and 2 tables.

  1. interactive_feature_importance & static_feature_importance: SHAP feature importance plot.

  2. interactive_summary_plot & static_summary_plot: SHAP value plot.

  3. table_feature_importance: table for plotting feature importance plot.

  4. table_summary_plot: table for plotting SHAP value plot.

Examples

library(SHAPforxgboost)
data("ml_se_sub")
shap_se <- ml_shap(ml_se_sub, feature_num=10, nsim=5)
res <- plot_ml_shap(shap_se)