Agent skill · Data & Analytics

bio-machine-learning-model-validation

Implements nested cross-validation and stratified splits for unbiased model evaluation on biomedical datasets. Prevents data leakage and overfitting in biomarker discovery. Use when validating classifiers or optimizing hyperparameters on omics data.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill model-validation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 6 KB
Bundled scripts: yes
Path: skills/bioskills/model-validation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Version Compatibility Reference examples tested with: numpy 1.26+, scikit-learn 1.4+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Cross-Validation for Biomedical Data **"Properly validate my omics classifier"** → Use nested cross-validation with stratified splits to get unbiased performance estimates while tuning hyperparameters on small biomedical datasets. - Python: `sklearn.model_selection.cross_val_score()` with `StratifiedKFold` inner/outer loops ## Why Nested CV Matters Simple train/test splits overestimate performance on small omics datasets. Nested CV provides unbiased estimates by separating hyperparameter tuning from performance evaluation. ## Nested Cross-Validation **Goal:** Obtain unbiased performance estimates by separating hyperparameter tuning from evaluation. **Approach:** Use an outer CV loop for scoring and an inner CV loop for grid search, preventing information leakage between tuning an

What's inside
Steps it walks through
  1. Version Compatibility
  2. Why Nested CV Matters
  3. Nested Cross-Validation
  4. Stratified K-Fold
  5. Repeated Stratified K-Fold
  6. Leave-One-Out (Small Datasets)
  7. Group-Aware Splits
  8. CV Strategy Selection
  9. Avoiding Data Leakage
  10. Related Skills
Ships with 2 files
  • examples/nested_cv_biomarker.py
  • usage-guide.md
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-machine-learning-model-validation skill do?

Implements nested cross-validation and stratified splits for unbiased model evaluation on biomedical datasets. Prevents data leakage and overfitting in biomarker discovery. Use when validating classifiers or optimizing hyperparameters on omics data.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill model-validation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going