This function computes and ranks each feature's contribution based on the user-defined number of features and visualizes their importance. When users select a specific number of features, the frequency of the top features selected across all CV runs is displayed.

plot_ml_feature(ml_se, feature_num = 10)

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.

Value

Return 2 interactive plots, 2 static plots, and 2 data frames.

  1. interactive_selected_frequency & static_selected_frequency: selected frequency plot

  2. interactive_feature_importance & static_feature_importance: feature importance plot

  3. table_selected_frequency: table for plotting selected frequency plot

  4. table_feature_importance: table for plotting feature importance plot

Examples

data("ml_se_sub")
res <- plot_ml_feature(ml_se_sub, feature_num=10)