elastic-net-feature-selection
Use when selecting predictive genes or other molecular features from bulk expression matrices for binary case-vs-control classification with elastic net logistic regression, including coefficient path and cross-validation plots. Trigger keywords: elastic net, glmnet, feature selection, binary classification, lambda.min, lambda.1se. NOT for: survival/Cox modeling, multiclass outcomes, single-cell data, or non-expression tables.
Veto GatesRequired pass for any deployment consideration
| Dimension | Result | Detail |
|---|---|---|
| Scientific Integrity | PASS | No fabricated statistics; all outputs computed from actual input data |
| Practice Boundaries | PASS | Out of Scope section prevents misuse for survival modeling, multiclass, single-cell, and non-expression tables |
| Methodological Ground | PASS | Elastic net alpha/lambda selection correctly documented; ridge edge case (empty selected_features.csv) correctly handled; no principled fallacies |
| Code Usability | PASS | Dependency check fires cleanly with structured SKILL_DEPENDENCY_MISSING; 8-file modular structure verified; requireNamespace() pattern correct; no syntax errors |
Core Capability98 / 100 — 8 Categories
Medical TaskExecution Average: 80.4 / 100 — Assertions: 21/25 Passed
SKILL_DEPENDENCY_MISSING: glmnet — environment constraint; structured error with exact install.packages() instruction confirmed
SKILL_DEPENDENCY_MISSING: glmnet — auto alpha behavior documented correctly; same-folds reuse methodology verified
SKILL_DEPENDENCY_MISSING: glmnet — ridge edge case documented in two places in SKILL.md; alpha=0 accepted
SKILL_DEPENDENCY_MISSING: glmnet — lambda.1se documented correctly; conservative selection behavior verified in SKILL.md
Out-of-scope label enforcement verified in SKILL.md; SKILL_INVALID_DATA fires at validation before dependency check; no silent sample dropping confirmed
Key Strengths
- Keyword-rich trigger description with natural language terms (elastic net, glmnet, feature selection, lambda.min, lambda.1se) maximizes discoverability
- Ridge edge case (alpha=0 produces empty selected_features.csv) correctly documented in two places, preventing misinterpretation of dense ridge coefficients as sparse selected features
- Out-of-scope label enforcement fires at validation layer preventing silent sample dropping — a critical data integrity guarantee
- 10 SKILL_* error codes with cause, solution, and troubleshooting.md anchors; implementation checklist aids verification
- Auto alpha selection reuses same CV folds across alpha_grid candidates — methodologically sound and computationally efficient