Classification performance metric evaluation
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill classification-performance-metric-evaluationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when after training multiple classifiers (traditional ML and deep learning) on a preprocessed metabolomics feature matrix with labeled samples, and you need to quantify and compare their predictive performance to select the model or ensemble for downstream analysis.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
7.3 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
classification-performance-metric-evaluation
Summary
Aggregate and compare performance metrics (accuracy, sensitivity, specificity, AUC) across multiple trained machine learning and deep learning classifiers on metabolomics data. This skill validates classifier performance through multi-algorithm benchmarking and structured metric compilation.
When to use
After training multiple classifiers (traditional ML and deep learning) on a preprocessed metabolomics feature matrix with labeled samples, and you need to quantify and compare their predictive performance to select the best model or ensemble for downstream analysis.
When NOT to use
- Training data and test data have not been properly separated (e.g., metrics computed on training set only — causes overfitting bias).
- Only one classifier has been trained (no comparison or competitive evaluation is possible).
- Labels are missing or inconsistent across samples (cannot compute sensitivity/specificity or validate predictions).
Inputs
- trained classifier objects (one per algorithm: Rpart, LDA, SVM, RF, GBM, PAM, LOG, DL)
- test/hold-out metabolomics feature matrix (rows=samples, columns=metabolites or pathway signatures)
- corresponding sample labels (binary or multi-class phenotype)
- cross-validation fold assignments (from cvnum parameter)
Outputs
- performance metrics table (rows=algorithms, columns=accuracy, sensitivity, specificity, AUC)
- ranked classifier list (sorted by primary metric, e.g., AUC)
- per-classifier model objects and trained parameters
- structured output files containing aggregated results
How to apply
Execute each trained classifier on held-out test data (held out via trainportion parameter, e.g., 0.8 train/0.2 test split) and cross-validation folds (cvnum, e.g., 10 folds). Extract per-classifier metrics: accuracy (overall correct predictions), sensitivity (true positive rate), specificity (true negative rate), and AUC (area under ROC curve). Aggregate these metrics into a structured comparison table across all methods (Rpart, LDA, SVM, RF, GBM, PAM, LOG, DL). Sort or rank by primary metric (e.g., AUC) to identify the highest-performing classifier. Store both model objects and the performance comparison table as structured outputs for reproducibility and visualization.
Related tools
- Lilikoi v2.0 (Integrates machine learning classifiers (Rpart, LDA, SVM, RF, GBM, PAM, LOG) and h2o deep learning; orchestrates training and metric extraction across all algorithms) — https://github.com/lanagarmire/lilikoi2
- R (Programming environment for executing classifier training and metric computation via Lilikoi v2.0)
- h2o (Deep learning framework integrated into Lilikoi v2.0 for training DL classifiers and extracting performance metrics)
Examples
lilikoi.machine_learning(MLmatrix = Metadata, measurementLabels = Metadata$Label, significantPathways = 0, trainportion = 0.8, cvnum = 10, dlround=50, nrun=10, Rpart=TRUE, LDA=TRUE, SVM=TRUE, RF=TRUE, GBM=TRUE, PAM=FALSE, LOG=TRUE, DL=TRUE)
Evaluation signals
- All trained classifiers have corresponding metric rows in the output table with no NaN or missing values for accuracy, sensitivity, specificity, AUC.
- Metrics are in valid ranges: accuracy, sensitivity, specificity, AUC ∈ [0, 1]; test set size matches (1 − trainportion) × total samples.
- Cross-validation results show consistency: standard deviation or confidence intervals on metrics are reasonable (not extreme variance suggesting data leakage or instability).
- Comparison table is sortable by metric and reproducible: same random seed produces identical metric values across runs.
- Deep learning (DL) classifier metrics are present, confirming h2o integration executed successfully alongside traditional ML methods.
Limitations
- Metric comparison is meaningful only if all classifiers are trained on the same train/test split and cross-validation folds; inconsistent sampling invalidates comparison.
- Class imbalance in metabolomics phenotypes can inflate accuracy but deflate sensitivity/specificity; AUC is more robust but all four metrics should be inspected.
- Small sample sizes typical in metabolomics studies may lead to unstable metric estimates; cross-validation helps but does not eliminate variance.
- Deep learning (dlround=50 rounds, nrun=10 iterations) may require careful hyperparameter tuning; no automated optimization is described in the article.
Evidence
- [other] supports multiple classifiers (Rpart, LDA, SVM, RF, GBM, PAM, LOG, and DL), and provides configurable parameters including trainportion (0.8), cvnum (10 folds), dlround (50 rounds for deep learning), and nrun (10 iterations): "The Lilikoi v2.0 machine_learning module accepts an expression matrix and labels, supports multiple classifiers (Rpart, LDA, SVM, RF, GBM, PAM, LOG, and DL), and provides configurable parameters"
- [other] extract performance metrics (accuracy, sensitivity, specificity, AUC) for each method. Compile results into structured output files containing model objects and performance comparison table.: "Aggregate trained classifier objects and extract performance metrics (accuracy, sensitivity, specificity, AUC) for each method. 6. Compile results into structured output files containing model"
- [readme] The new Lilikoi v2.0 R package has implemented a deep-learning method for classification, in addition to popular machine learning methods.: "The new Lilikoi v2 R package has implemented a deep-learning method for classification, in addition to popular machine learning methods."
- [readme] lilikoi.machine_learning function with multiple algorithm flags (Rpart, LDA, SVM, RF, GBM, PAM, LOG, DL) and cross-validation parameters: "lilikoi.machine_learning(MLmatrix = Metadata, measurementLabels = Metadata$Label, significantPathways = 0, trainportion = 0.8, cvnum = 10, dlround=50, nrun=10, Rpart=TRUE, LDA=TRUE, SVM=TRUE,"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.