feature-importance-ranking
License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution.
Summary
Extract and rank the most important metabolite features identified by trained classification models (logistic regression, random forest, XGBoost) to understand which metabolites drive predictions in binary classification tasks on metabolomics data. This skill reveals which compounds are most discriminative for the outcome of interest.
When to use
After training logistic regression, random forest, and/or XGBoost classifiers on metabolomics data (e.g., covid_data) under cross-validation, when you need to identify which metabolites contribute most strongly to model predictions and may be biologically relevant biomarkers for the classification outcome.
When NOT to use
- Models have not yet been trained or cross-validation is incomplete—importance cannot be reliably extracted from untrained or in-progress models.
- Input is univariate metabolite screening results (e.g., t-test p-values) rather than multivariate classifier importance—feature ranking from statistical tests does not account for feature interactions captured by ensemble methods.
- Dataset contains fewer than ~10 metabolite features—importance rankings on extremely sparse feature spaces may be unstable and not generalizable.
Inputs
- trained logistic regression model on metabolomics data
- trained random forest model on metabolomics data
- trained XGBoost model on metabolomics data
- model feature importance scores or coefficients
Outputs
- ranked list of top 10 metabolite features by importance (logistic regression)
- ranked list of top 10 metabolite features by importance (random forest)
- ranked list of top 10 metabolite features by importance (XGBoost)
- cross-algorithm feature importance comparison
How to apply
Train classification models using MeTEor's Prediction module on binary classification tasks with cross-validation (stratified 5-fold or leave-one-out). After model convergence, retrieve feature importance scores from each trained model—random forest and XGBoost provide built-in importance rankings based on split counts and gain respectively; logistic regression importance can be derived from absolute coefficients or odds ratios. Rank metabolites by their importance scores and record the top ten features (or fewer if fewer features were used in the model). Compare importance rankings across the three algorithms to identify consistently important metabolites that are likely robust biomarkers rather than algorithm artifacts.
Related tools
- MeTEor (R Shiny application hosting the Prediction module; trains logistic regression, random forest, and XGBoost classifiers and exposes feature importance retrieval) — https://github.com/scibiome/meteor
- R (Statistical computing environment; supports MeTEor and underlying classification libraries (glm, randomForest, xgboost packages))
Examples
library(MeTEor); meteor() # Launch MeTEor Shiny app → load covid_data via Configurator → navigate to Prediction module → train LR/RF/XGB models with 5-fold cross-validation → export top 10 feature importance rankings for each model
Evaluation signals
- Top 10 feature lists are non-empty and contain metabolite identifiers that were present in the input feature matrix.
- Feature importance scores are numeric, non-negative, and ranked in descending order for each algorithm.
- The sum or mean of importance scores is stable across repeated cross-validation folds, indicating reproducible rankings.
- Important features identified by multiple algorithms (LR, RF, XGB) overlap meaningfully, suggesting robust biomarker signal rather than algorithm-specific artifacts.
- Top-ranked metabolites have biological plausibility (e.g., known biomarkers for the disease or outcome being classified).
Limitations
- Feature importance rankings are model-specific and may not reflect true biological significance; high importance could reflect data artifacts, confounding, or overfitting rather than causal biomarker role.
- Logistic regression, random forest, and XGBoost rank features by different mechanisms (coefficient magnitude, split frequency, gradient-based gain), so direct numerical comparison across algorithms is not valid; only rank consensus should be interpreted.
- With very few samples or high-dimensional metabolomics data, importance scores may be unstable and not generalizable to independent cohorts.
- The README does not specify whether MeTEor returns raw or normalized importance scores, or whether feature importance is computed on training or test set—this affects interpretability.
Evidence
- [other] retrieve and record the ten most important features identified by the models (or fewer if not all features are used): "Retrieve and record the ten most important features identified by the models (or fewer if not all features are used)."
- [readme] Prediction models: Logistic regression, Random Forest, XGBoost: "Prediction models: Logistic regression, Random Forest, XGBoost"
- [other] Train logistic regression (LR) model and record performance metrics and ROC curve: "Train logistic regression (LR) model and record performance metrics and ROC curve (if test set size > 0%)."
- [other] Train random forest (RF) model and record performance metrics and ROC curve: "Train random forest (RF) model and record performance metrics and ROC curve (if test set size > 0%)."
- [other] Train XGBoost (XGB) model and record performance metrics and ROC curve: "Train XGBoost (XGB) model and record performance metrics and ROC curve (if test set size > 0%)."
1---2name: feature-importance-ranking3description: Use when after training logistic regression, random forest, and/or XGBoost classifiers on metabolomics data (e.4license: CC-BY-4.05---67# feature-importance-ranking89> **License: restricted** — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->10## Summary1112Extract and rank the most important metabolite features identified by trained classification models (logistic regression, random forest, XGBoost) to understand which metabolites drive predictions in binary classification tasks on metabolomics data. This skill reveals which compounds are most discriminative for the outcome of interest.1314## When to use1516After training logistic regression, random forest, and/or XGBoost classifiers on metabolomics data (e.g., covid_data) under cross-validation, when you need to identify which metabolites contribute most strongly to model predictions and may be biologically relevant biomarkers for the classification outcome.1718## When NOT to use1920- Models have not yet been trained or cross-validation is incomplete—importance cannot be reliably extracted from untrained or in-progress models.21- Input is univariate metabolite screening results (e.g., t-test p-values) rather than multivariate classifier importance—feature ranking from statistical tests does not account for feature interactions captured by ensemble methods.22- Dataset contains fewer than ~10 metabolite features—importance rankings on extremely sparse feature spaces may be unstable and not generalizable.2324## Inputs2526- trained logistic regression model on metabolomics data27- trained random forest model on metabolomics data28- trained XGBoost model on metabolomics data29- model feature importance scores or coefficients3031## Outputs3233- ranked list of top 10 metabolite features by importance (logistic regression)34- ranked list of top 10 metabolite features by importance (random forest)35- ranked list of top 10 metabolite features by importance (XGBoost)36- cross-algorithm feature importance comparison3738## How to apply3940Train classification models using MeTEor's Prediction module on binary classification tasks with cross-validation (stratified 5-fold or leave-one-out). After model convergence, retrieve feature importance scores from each trained model—random forest and XGBoost provide built-in importance rankings based on split counts and gain respectively; logistic regression importance can be derived from absolute coefficients or odds ratios. Rank metabolites by their importance scores and record the top ten features (or fewer if fewer features were used in the model). Compare importance rankings across the three algorithms to identify consistently important metabolites that are likely robust biomarkers rather than algorithm artifacts.4142## Related tools4344- **MeTEor** (R Shiny application hosting the Prediction module; trains logistic regression, random forest, and XGBoost classifiers and exposes feature importance retrieval) — https://github.com/scibiome/meteor45- **R** (Statistical computing environment; supports MeTEor and underlying classification libraries (glm, randomForest, xgboost packages))4647## Examples4849```50library(MeTEor); meteor() # Launch MeTEor Shiny app → load covid_data via Configurator → navigate to Prediction module → train LR/RF/XGB models with 5-fold cross-validation → export top 10 feature importance rankings for each model51```5253## Evaluation signals5455- Top 10 feature lists are non-empty and contain metabolite identifiers that were present in the input feature matrix.56- Feature importance scores are numeric, non-negative, and ranked in descending order for each algorithm.57- The sum or mean of importance scores is stable across repeated cross-validation folds, indicating reproducible rankings.58- Important features identified by multiple algorithms (LR, RF, XGB) overlap meaningfully, suggesting robust biomarker signal rather than algorithm-specific artifacts.59- Top-ranked metabolites have biological plausibility (e.g., known biomarkers for the disease or outcome being classified).6061## Limitations6263- Feature importance rankings are model-specific and may not reflect true biological significance; high importance could reflect data artifacts, confounding, or overfitting rather than causal biomarker role.64- Logistic regression, random forest, and XGBoost rank features by different mechanisms (coefficient magnitude, split frequency, gradient-based gain), so direct numerical comparison across algorithms is not valid; only rank consensus should be interpreted.65- With very few samples or high-dimensional metabolomics data, importance scores may be unstable and not generalizable to independent cohorts.66- The README does not specify whether MeTEor returns raw or normalized importance scores, or whether feature importance is computed on training or test set—this affects interpretability.6768## Evidence6970- [other] retrieve and record the ten most important features identified by the models (or fewer if not all features are used): "Retrieve and record the ten most important features identified by the models (or fewer if not all features are used)."71- [readme] Prediction models: Logistic regression, Random Forest, XGBoost: "**Prediction models:** Logistic regression, Random Forest, XGBoost"72- [other] Train logistic regression (LR) model and record performance metrics and ROC curve: "Train logistic regression (LR) model and record performance metrics and ROC curve (if test set size > 0%)."73- [other] Train random forest (RF) model and record performance metrics and ROC curve: "Train random forest (RF) model and record performance metrics and ROC curve (if test set size > 0%)."74- [other] Train XGBoost (XGB) model and record performance metrics and ROC curve: "Train XGBoost (XGB) model and record performance metrics and ROC curve (if test set size > 0%)."