[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EE3WXGZKY1YNVM10JA750S":3,"skill-same:01M7EE3WXGZKY1YNVM10JA750S":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EE3WXGZKY1YNVM10JA750S","bio-machine-learning-model-validation",null,"Validates predictive models on omics and biomedical data with nested cross-validation, group\u002Fbatch\u002Ftemporal-aware splits, the full data-leakage taxonomy, probability calibration, decision-curve net benefit, optimism correction, sample-size planning, and TRIPOD+AI reporting. Use when estimating model performance honestly, choosing a CV scheme, detecting leakage, or judging whether reported discrimination means the model is actually useful. For feature selection itself see machine-learning\u002Fbiomarker-discovery; for confirmatory-trial inference see clinical-biostatistics\u002Ftrial-reporting.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-machine-learning-model-validation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-machine-learning-model-validation\ndescription: Validates predictive models on omics and biomedical data with nested cross-validation, group\u002Fbatch\u002Ftemporal-aware splits, the full data-leakage taxonomy, probability calibration, decision-curve net benefit, optimism correction, sample-size planning, and TRIPOD+AI reporting. Use when estimating model performance honestly, choosing a CV scheme, detecting leakage, or judging whether reported discrimination means the model is actually useful. For feature selection itself see machine-learning\u002Fbiomarker-discovery; for confirmatory-trial inference see clinical-biostatistics\u002Ftrial-reporting.\ntool_type: python\nprimary_tool: sklearn\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"machine-learning\u002Fmodel-validation\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: numpy 1.26+, scikit-learn 1.4+ (note 1.6\u002F1.8 API changes below).\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nscikit-learn drift to watch: `CalibratedClassifierCV(cv='prefit')` was deprecated in 1.6 and removed in 1.8 (it now raises; wrap a fitted model in `sklearn.frozen.FrozenEstimator` instead); `ensemble` default became `'auto'` in 1.6; `method='temperature'` was added in 1.8. If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# Model Validation for Biomedical and Omics Data\n\n**\"Validate my omics classifier honestly\"** -> Keep every data-dependent step inside the resampling loop, never use the same data to both choose and grade, and report calibration and net benefit, not just AUC.\n- Nested CV: `GridSearchCV` (inner) wrapped by `cross_val_score` (outer)\n- Group\u002Fstructured: `StratifiedGroupKFold`, `TimeSeriesSplit`\n- Calibration: `calibration_curve`, `brier_score_loss`, `CalibratedClassifierCV`\n\n## The Single Most Important Modern Insight -- A Reported Number Is an Honest Estimate Only If Nothing Leaked and Nothing Was Graded on What Was Chosen\n\nA reported performance number is a claim about a data-generating process that will never recur. Almost every inflated result in ML-for-biology traces to one of two root causes: information from the test distribution leaked into model construction, or the same data was used to both choose and grade a decision. A clean train\u002Ftest split is necessary but nowhere near sufficient -- the leakage has usually already contaminated the test set (a scaler fit on all data, a duplicate patient, ComBat run across the split). Leakage causes a reproducibility crisis across ML-based science (Kapoor 2023), and the bias is largest exactly when the true signal is weakest -- the omics regime.\n\nA second, equally load-bearing insight: discrimination (AUC\u002FC) and calibration (do predicted probabilities match observed frequencies) are *orthogonal*. AUC is invariant to any monotone transform of the score, so it is blind to calibration. For any decision that uses the probability itself, calibration -- not AUC -- is the property that matters, and it is the one routinely ignored (Van Calster 2019, \"the Achilles heel\").\n\n## Leakage Taxonomy\n\n| Leakage type | How it happens in omics | Symptom | Prevention |\n|--------------|-------------------------|---------|------------|\n| Preprocessing (most common, most missed) | z-scoring, quantile\u002Flibrary normalization, ComBat\u002FSVA, PCA, kNN\u002FMICE imputation, VST fit on the *full* dataset before splitting | Test performance suspiciously close to train; collapses on external data | Fit every transform inside the CV fold via a `Pipeline` |\n| Feature selection (severe special case) | top-k DE genes \u002F highest-variance \u002F univariate filter chosen on all samples, then CV only the classifier | Near-perfect CV from pure noise; unstable selected set | Selection lives in the CV fold (Ambroise 2002) |\n| Target \u002F label | a feature is a proxy for or downstream of the outcome (post-diagnosis labs, treatment-derived fields, a collection-site that tracks case\u002Fcontrol) | One feature dominates implausibly; fails when removed | Audit temporal\u002Fcausal admissibility; exclude post-outcome variables |\n| Group \u002F patient \u002F replicate | same patient, tumor, organoid, or technical replicate in train and test; `KFold` scatters them | Inflated metrics that vanish under leave-one-group-out | Split by the highest independent unit (`GroupKFold`\u002F`StratifiedGroupKFold`) |\n| Batch | batch correlated with outcome and not respected in the split, or ComBat across the train\u002Ftest boundary | Model discriminates batches not biology; external batch destroys it | Block the split by batch; never run unsupervised correction across the split |\n| Temporal | random-splitting time-ordered data; future-period statistics standardize the past | Backtest beats prospective deployment | Time-based split (`TimeSeriesSplit`); never shuffle first |\n| Duplicate \u002F homolog | near-identical samples, augmented copies, public-dataset overlap, homologous sequences across the split | Memorization passes as generalization | Deduplicate \u002F cluster-then-split before CV |\n| Test-reuse \u002F threshold | repeatedly peeking to pick features, thresholds, \"best epoch\"; choosing the classification threshold on the test set | Irreproducible SOTA; fragile config | One locked test set; all tuning + thresholds inside nested CV |\n\n## Decision Tree by Scenario\n\n| Scenario \u002F generalization question | Recommended scheme | Why |\n|------------------------------------|--------------------|-----|\n| \"A new sample like training\" (and any tuning occurs) | Nested CV: inner `GridSearchCV`, outer `cross_val_score`, Pipeline inside | Tuning and grading on the same CV is optimistic (Cawley-Talbot 2010) |\n| \"A new patient\" (repeated measures) | `GroupKFold`\u002F`StratifiedGroupKFold` by patient\u002Fdonor | The unit of independence is not the row |\n| \"A new hospital\u002Fsite\" (transportability) | Leave-one-site-out (internal-external CV) | Approximates external validation |\n| \"Next year\" (time-ordered) | `TimeSeriesSplit` forward-chaining | Random folds leak the future |\n| Small n (dozens), need a stable estimate | `RepeatedStratifiedKFold` (5x10) with an interval | A single CV is one high-variance draw |\n| Probabilities will drive a decision | Add calibration + decision-curve net benefit | AUC is blind to calibration and utility |\n| Final evidence for a clinical model | External\u002Ftemporal validation + TRIPOD+AI report | Internal CV cannot detect a whole-dataset confound |\n| Choosing the features themselves | -> machine-learning\u002Fbiomarker-discovery | Selection is its own discipline (run it inside the fold) |\n| Confirmatory trial inference (HR, p-value) | -> clinical-biostatistics\u002Ftrial-reporting | Estimand is a treatment effect, not a prediction |\n\n## Nested Cross-Validation\n\n**Goal:** Estimate the performance of the whole procedure (tuning + fit) without optimistic bias.\n\n**Approach:** The inner loop does all tuning, feature selection, and threshold choice; the outer loop grades the winning configuration once on a fold it never touched. The reported number is the aggregate over outer folds; it answers \"if I run this pipeline on new data, what do I get?\"\n\n```python\nfrom sklearn.model_selection import cross_val_score, StratifiedKFold, GridSearchCV\nfrom sklearn.pipeline import Pipeline\nfrom sklearn.preprocessing import StandardScaler\nfrom sklearn.feature_selection import SelectKBest, f_classif\nfrom sklearn.linear_model import LogisticRegression\n\npipe = Pipeline([('scaler', StandardScaler()),\n                 ('select', SelectKBest(f_classif)),         # re-fit per inner fold -> no leakage\n                 ('clf', LogisticRegression(max_iter=5000))])\ngrid = {'select__k': [10, 50, 200], 'clf__C': [0.01, 0.1, 1]}\n\ninner = StratifiedKFold(5, shuffle=True, random_state=0)\nouter = StratifiedKFold(5, shuffle=True, random_state=1)\nsearch = GridSearchCV(pipe, grid, cv=inner, scoring='roc_auc')\nscores = cross_val_score(search, X, y, cv=outer, scoring='roc_auc')   # unbiased estimate\nprint(f'Nested AUC: {scores.mean():.3f} +\u002F- {scores.std():.3f}')\n```\n\nNested CV is needed whenever model selection happens -- even informal \"tried three options, kept the best.\" Flat CV with tuning is a known reviewer red flag (Varma-Simon 2006).\n\n## Group-Aware, Structured, and Small-Sample CV\n\n**Goal:** Match the CV scheme to the real unit of independence and get a variance-aware estimate.\n\n**Approach:** Pass a grouping vector so no group spans folds; for tiny n, repeat stratified k-fold and report the spread, not a bare number. Standard `KFold` assumes i.i.d. rows, which biomedical data almost never satisfy.\n\n```python\nfrom sklearn.model_selection import StratifiedGroupKFold, RepeatedStratifiedKFold, cross_val_score\n\ngroups = meta['patient_id'].values                          # multiple samples per patient\ngcv = StratifiedGroupKFold(n_splits=5)                      # group-disjoint AND class-balanced\ng_auc = cross_val_score(pipe, X, y, cv=gcv, groups=groups, scoring='roc_auc')\n\nrcv = RepeatedStratifiedKFold(n_splits=5, n_repeats=10, random_state=0)\nr_auc = cross_val_score(pipe, X, y, cv=rcv, scoring='roc_auc')   # report an interval\n```\n\nLeave-one-out is high-variance and degenerate for ranking metrics (AUC is undefined on a size-1 test fold) -- prefer repeated stratified k-fold. The .632+ bootstrap (Efron-Tibshirani 1997) is a defensible alternative but is optimistic for zero-apparent-error learners; for internal validation of a single fixed model, bootstrap optimism correction is the cleaner choice.\n\n## Calibration vs Discrimination\n\n**Goal:** Verify that predicted probabilities mean what they say, not just that they rank correctly.\n\n**Approach:** Plot a reliability curve, score it with the proper Brier score, and recalibrate on a held-out fold if needed. AUC measures only ranking; the calibration slope (\u003C1 signals overfitting) and the reliability curve localize the failure.\n\n```python\nfrom sklearn.calibration import calibration_curve, CalibratedClassifierCV\nfrom sklearn.metrics import brier_score_loss\nfrom sklearn.frozen import FrozenEstimator                  # sklearn >=1.6\n\nprob_true, prob_pred = calibration_curve(y_test, p_test, n_bins=10, strategy='quantile')\nbrier = brier_score_loss(y_test, p_test)                    # proper score: calibration + refinement\n\n# Recalibrate a fitted model on a disjoint calibration fold (cv='prefit' deprecated in 1.6, removed in 1.8):\ncalibrated = CalibratedClassifierCV(FrozenEstimator(fitted_model), method='isotonic')\ncalibrated.fit(X_cal, y_cal)                                # X_cal disjoint from train and test\n```\n\nCalibration cautions: use `strategy='quantile'` (equal-mass bins) under imbalance; do not report a single Expected Calibration Error as ground truth -- equal-width ECE is biased and reports error even for perfectly calibrated models (Roelofs 2022). Use Platt (`method='sigmoid'`) for small calibration sets, isotonic for hundreds-plus points. Recalibrating on the test set is leakage.\n\n**Net benefit \u002F Decision Curve Analysis (Vickers-Elkin 2006):** `net_benefit = TP\u002Fn - (FP\u002Fn)*(pt\u002F(1-pt))`, where the threshold probability `pt` encodes the relative harm of a false positive. Plot it against treat-all and treat-none references; a model is clinically useful only where it sits above both. DCA requires good calibration to be valid and is the bridge from statistical performance to clinical usefulness -- a model can have high AUC yet zero net benefit at every plausible threshold.\n\n## Metric Selection in Imbalanced Data\n\n| Metric | Use | Trap |\n|--------|-----|------|\n| Accuracy | Almost never headline it under imbalance | At 5% prevalence, \"always negative\" scores 95% |\n| AUC \u002F C | Discrimination, prevalence-independent | Blind to calibration; not a usefulness measure |\n| AUPRC (average precision) | Rare-positive problems | Baseline is the prevalence, not 0.5 -- state it (Saito 2015) |\n| Brier \u002F log-loss | When probabilities are used | Proper; not comparable across prevalences without scaling |\n| MCC | Balanced single-threshold summary | Still threshold-dependent (Chicco 2020) |\n| F1 | Retrieval-style problems | Ignores true negatives; assumes a cost ratio |\n\nThe multiple-threshold problem: reporting the *best* F1\u002Faccuracy over thresholds is optimistic, and choosing that threshold on the test set is leakage. Pick the operating point on a separate fold (or by net benefit), then report the locked-threshold metric once; prefer threshold-free curves (ROC, PR, calibration) plus one pre-specified operating point.\n\n## External Validation, Optimism, Sample Size, and TRIPOD+AI\n\n- **Internal vs external.** Internal validation (bootstrap optimism correction, repeated\u002Fnested CV) estimates reproducibility on new patients from the *same* source; external validation (different time, place, setting) estimates transportability and is the usual point of failure -- calibration degrades first (slope \u003C1, intercept shift). Internal-external CV (leave-one-cluster-out) is the recommendation when multiple cohorts exist (Steyerberg 2001).\n- **Optimism and shrinkage.** Apparent performance overstates the future; the gap (optimism) grows with more predictors, more flexibility, smaller n. Remedy with a uniform shrinkage factor (the bootstrap calibration slope) or penalized estimation. A development-data calibration slope \u003C1 *is* the optimism signal.\n- **Sample size.** The \"10 events per variable\" heuristic (Peduzzi 1996) is obsolete; the standard is Riley et al.'s minimum-sample-size framework (2019, Stat Med Parts I-II), which sizes for shrinkage >=0.9 and precise risk estimation (`pmsampsize`). For p>>n omics these formulas are out of regime, which is precisely why heavy penalization + nested validation, not unpenalized multivariable fits, are mandatory.\n- **Reporting.** TRIPOD+AI (Collins 2024, *BMJ* 385:e078378) supersedes TRIPOD 2015 and is the 2024+ target for any biomedical predictive-model claim -- it demands data-splitting and leakage controls, calibration (not just discrimination), fairness\u002Fsubgroup performance, and uncertainty. PROBAST+AI is the companion risk-of-bias appraisal.\n\n## Per-Method Failure Modes\n\n### Preprocessing fit before the split\n- **Trigger:** `StandardScaler().fit_transform(X)` (or ComBat, PCA, imputation) on all data, then CV.\n- **Mechanism:** The fitted parameters encode the test rows.\n- **Symptom:** Test variance tiny; drop on external data.\n- **Fix:** Put every transform in the Pipeline so `fit` only sees training folds.\n\n### Threshold or best-of-many chosen on the test set\n- **Trigger:** Reporting the best F1 over thresholds, or the best of several CV runs.\n- **Mechanism:** Each peek leaks; over many tries the test set becomes a training set.\n- **Symptom:** Irreproducible \"SOTA\"; a fresh test set disappoints.\n- **Fix:** Lock one test set, pre-specify metric and threshold rule, choose thresholds on a separate fold.\n\n### SMOTE\u002Fresampling to fix imbalance breaks calibration\n- **Trigger:** Oversampling\u002FSMOTE for a *risk* model.\n- **Mechanism:** Changing training prevalence inflates minority-class probabilities; no AUC gain (van den Goorbergh 2022).\n- **Symptom:** Good AUC, badly miscalibrated risks.\n- **Fix:** Do not resample for probability models; move the threshold on a calibrated model. If resampled, use `imblearn.pipeline.Pipeline` (train-fold only).\n\n### LOO for a ranking metric\n- **Trigger:** Leave-one-out with AUC.\n- **Mechanism:** AUC is undefined within a size-1 fold; pooling OOF predictions then scoring once is not equivalent to averaging fold scores for non-decomposable metrics.\n- **Symptom:** Unstable or misleading AUC.\n- **Fix:** Use repeated stratified k-fold; reserve `cross_val_predict` for visuals, not the headline metric.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Selection\u002Fpreprocessing inside every fold; nested CV for tuning | Ambroise 2002; Varma-Simon 2006 | Same-data tune-and-grade is optimistic |\n| Repeated 5-fold x ~10, report the spread | field standard | A single CV is one high-variance draw at small n |\n| Calibration slope ~1; \u003C1 means overfitting | Van Calster 2019 | Basis of shrinkage |\n| Sample size from Riley framework (shrinkage >=0.9) | Riley 2019 | \"10 EPV\" is obsolete |\n| Report per TRIPOD+AI | Collins 2024 | 2024+ standard: discrimination + calibration + fairness |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `cv='prefit'` warns or errors | Deprecated in 1.6, removed in 1.8 (now raises) | Wrap the fitted model in `FrozenEstimator` |\n| Calibration looks perfect on the test set | Calibrated on the evaluation data | Calibrate on a disjoint fold |\n| Scaler\u002Fselector fit outside the Pipeline | Preprocessing leakage | Move into the Pipeline passed to `cross_val_score`\u002F`GridSearchCV` |\n| `groups=` ignored | Not threaded to the splitter | Pass `groups=` to `cross_validate`\u002F`GridSearchCV.fit` |\n| `cross_val_predict` used as the headline AUC | Non-decomposable metric over pooled OOF | Average per-fold scores instead |\n\n## References\n\n- Peduzzi P, Concato J, Kemper E, Holford TR, Feinstein AR. 1996. A simulation study of the number of events per variable in logistic regression analysis. *J Clin Epidemiol* 49:1373-1379.\n- Efron B, Tibshirani R. 1997. Improvements on cross-validation: the .632+ bootstrap method. *J Am Stat Assoc* 92:548-560.\n- Steyerberg EW, Harrell FE, Borsboom GJ, et al. 2001. Internal validation of predictive models. *J Clin Epidemiol* 54:774-781.\n- Ambroise C, McLachlan GJ. 2002. Selection bias in gene extraction on the basis of microarray gene-expression data. *PNAS* 99:6562-6566.\n- Vickers AJ, Elkin EB. 2006. Decision curve analysis: a novel method for evaluating prediction models. *Med Decis Making* 26:565-574.\n- Varma S, Simon R. 2006. Bias in error estimation when using cross-validation for model selection. *BMC Bioinformatics* 7:91.\n- Cawley GC, Talbot NLC. 2010. On over-fitting in model selection and subsequent selection bias in performance evaluation. *J Mach Learn Res* 11:2079-2107.\n- Saito T, Rehmsmeier M. 2015. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. *PLoS ONE* 10:e0118432.\n- Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW. 2019. Calibration: the Achilles heel of predictive analytics. *BMC Med* 17:230.\n- Riley RD, Snell KIE, Ensor J, et al. 2019. Minimum sample size for developing a multivariable prediction model: Parts I-II. *Stat Med* 38:1262-1296.\n- Chicco D, Jurman G. 2020. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. *BMC Genomics* 21:6.\n- Roelofs R, Cain N, Shlens J, Mozer MC. 2022. Mitigating bias in calibration error estimation. *Proc AISTATS* PMLR 151:4036-4054.\n- van den Goorbergh R, van Smeden M, Timmerman D, Van Calster B. 2022. The harm of class imbalance corrections for risk prediction models. *J Am Med Inform Assoc* 29:1525-1534.\n- Whalen S, Schreiber J, Noble WS, Pollard KS. 2022. Navigating the pitfalls of applying machine learning in genomics. *Nat Rev Genet* 23:169-181.\n- Kapoor S, Narayanan A. 2023. Leakage and the reproducibility crisis in machine-learning-based science. *Patterns* 4:100804.\n- Collins GS, Moons KGM, Dhiman P, et al. 2024. TRIPOD+AI statement. *BMJ* 385:e078378.\n\n## Related Skills\n\n- machine-learning\u002Fbiomarker-discovery - Feature selection run inside the CV fold\n- machine-learning\u002Fomics-classifiers - Model training, calibration directions, and imbalance handling\n- machine-learning\u002Fsurvival-analysis - Validation metrics for time-to-event models\n- experimental-design\u002Fbatch-design - Designing out batch-outcome confounding before analysis\n- experimental-design\u002Fmultiple-testing - FDR control for high-dimensional testing\n- clinical-biostatistics\u002Ftrial-reporting - Confirmatory-trial reporting and the prediction-vs-inference boundary\n","## Version Compatibility\n\nReference examples tested with: numpy 1.26+, scikit-learn 1.4+ (note 1.6\u002F1.8 API changes below).\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n\nscikit-learn drift to watch: `CalibratedClassifierCV(cv='prefit')` was deprecated in 1.6 and removed in 1.8 (it now raises; wrap a fitted model in `sklearn.frozen.FrozenEstimator` instead); `ensemble` default became `'auto'` in 1.6; `method='temperature'` was added in 1.8. If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# Model Validation for Biomedical and Omics Data\n\n**\"Validate my omics classifier honestly\"** -> Keep every data-dependent step inside the resampling loop, never use the same data to both choose and grade, and report calibration and net benefit, not just AUC.\n- Nested CV: `GridSearchCV` (inner) wrapped by `cross_val_score` (outer)\n- Group\u002Fstructured: `StratifiedGroupKFold`, `TimeSeriesSplit`\n- Calibration: `calibration_curve`, `brier_score_loss`, `CalibratedClassifierCV`\n\n## The Single Most Important Modern Insight -- A Reported Number Is an Honest Estimate Only If Nothing Leaked and Nothing Was Graded on What Was Chosen\n\nA reported performance number is a claim about a data-generating process that will never recur. Almost every inflated result in ML-for-biology traces to one of two root causes: information from the test distribution leaked into model construction, or the same data was used to both choose and grade a decision. A clean train\u002Ftest split is necessary but nowhere near sufficient -- the leakage has usually already contaminated the test set (a scaler fit on all data, a duplicate patient, ComBat run across the split). Leakage causes a reproducibility crisis across ML-based science (Kapoor 2023), and the bias is largest exactly when the true signal is weakest -- the omics regime.\n\nA second, equally load-bearing insight: discrimination (AUC\u002FC) and calibration (do predicted probabilities match observed frequencies) are *orthogonal*. AUC is invariant to any monotone transform of the score, so it is blind to calibration. For any decision that uses the probability itself, calibration -- not AUC -- is the property that matters, and it is the one routinely ignored (Van Calster 2019, \"the Achilles heel\").\n\n## Leakage Taxonomy\n\n| Leakage type | How it happens in omics | Symptom | Prevention |\n|--------------|-------------------------|---------|------------|\n| Preprocessing (most common, most missed) | z-scoring, quantile\u002Flibrary normalization, ComBat\u002FSVA, PCA, kNN\u002FMICE imputation, VST fit on the *full* dataset before splitting | Test performance suspiciously close to train; collapses on external data | Fit every transform inside the CV fold via a `Pipeline` |\n| Feature selection (severe special case) | top-k DE genes \u002F highest-variance \u002F univariate filter chosen on all samples, then CV only the classifier | Near-perfect CV from pure noise; unstable selected set | Selection lives in the CV fold (Ambroise 2002) |\n| Target \u002F label | a feature is a proxy for or downstream of the outcome (post-diagnosis labs, treatment-derived fields, a collection-site that tracks case\u002Fcontrol) | One feature dominates implausibly; fails when removed | Audit temporal\u002Fcausal admissibility; exclude post-outcome variables |\n| Group \u002F patient \u002F replicate | same patient, tumor, organoid, or technical replicate in train and test; `KFold` scatters them | Inflated metrics that vanish under leave-one-group-out | Split by the highest independent unit (`GroupKFold`\u002F`StratifiedGroupKFold`) |\n| Batch | batch correlated with outcome and not respected in the split, or ComBat across the train\u002Ftest boundary | Model discriminates batches not biology; external batch destroys it | Block the split by batch; never run unsupervised correction across the split |\n| Temporal | random-splitting time-ordered data; future-period statistics standardize the past | Backtest beats prospective deployment | Time-based split (`TimeSeriesSplit`); never shuffle first |\n| Duplicate \u002F homolog | near-identical samples, augmented copies, public-dataset overlap, homologous sequences across the split | Memorization passes as generalization | Deduplicate \u002F cluster-then-split before CV |\n| Test-reuse \u002F threshold | repeatedly peeking to pick features, thresholds, \"best epoch\"; choosing the classification threshold on the test set | Irreproducible SOTA; fragile config | One locked test set; all tuning + thresholds inside nested CV |\n\n## Decision Tree by Scenario\n\n| Scenario \u002F generalization question | Recommended scheme | Why |\n|------------------------------------|--------------------|-----|\n| \"A new sample like training\" (and any tuning occurs) | Nested CV: inner `GridSearchCV`, outer `cross_val_score`, Pipeline inside | Tuning and grading on the same CV is optimistic (Cawley-Talbot 2010) |\n| \"A new patient\" (repeated measures) | `GroupKFold`\u002F`StratifiedGroupKFold` by patient\u002Fdonor | The unit of independence is not the row |\n| \"A new hospital\u002Fsite\" (transportability) | Leave-one-site-out (internal-external CV) | Approximates external validation |\n| \"Next year\" (time-ordered) | `TimeSeriesSplit` forward-chaining | Random folds leak the future |\n| Small n (dozens), need a stable estimate | `RepeatedStratifiedKFold` (5x10) with an interval | A single CV is one high-variance draw |\n| Probabilities will drive a decision | Add calibration + decision-curve net benefit | AUC is blind to calibration and utility |\n| Final evidence for a clinical model | External\u002Ftemporal validation + TRIPOD+AI report | Internal CV cannot detect a whole-dataset confound |\n| Choosing the features themselves | -> machine-learning\u002Fbiomarker-discovery | Selection is its own discipline (run it inside the fold) |\n| Confirmatory trial inference (HR, p-value) | -> clinical-biostatistics\u002Ftrial-reporting | Estimand is a treatment effect, not a prediction |\n\n## Nested Cross-Validation\n\n**Goal:** Estimate the performance of the whole procedure (tuning + fit) without optimistic bias.\n\n**Approach:** The inner loop does all tuning, feature selection, and threshold choice; the outer loop grades the winning configuration once on a fold it never touched. The reported number is the aggregate over outer folds; it answers \"if I run this pipeline on new data, what do I get?\"\n\n```python\nfrom sklearn.model_selection import cross_val_score, StratifiedKFold, GridSearchCV\nfrom sklearn.pipeline import Pipeline\nfrom sklearn.preprocessing import StandardScaler\nfrom sklearn.feature_selection import SelectKBest, f_classif\nfrom sklearn.linear_model import LogisticRegression\n\npipe = Pipeline([('scaler', StandardScaler()),\n                 ('select', SelectKBest(f_classif)),         # re-fit per inner fold -> no leakage\n                 ('clf', LogisticRegression(max_iter=5000))])\ngrid = {'select__k': [10, 50, 200], 'clf__C': [0.01, 0.1, 1]}\n\ninner = StratifiedKFold(5, shuffle=True, random_state=0)\nouter = StratifiedKFold(5, shuffle=True, random_state=1)\nsearch = GridSearchCV(pipe, grid, cv=inner, scoring='roc_auc')\nscores = cross_val_score(search, X, y, cv=outer, scoring='roc_auc')   # unbiased estimate\nprint(f'Nested AUC: {scores.mean():.3f} +\u002F- {scores.std():.3f}')\n```\n\nNested CV is needed whenever model selection happens -- even informal \"tried three options, kept the best.\" Flat CV with tuning is a known reviewer red flag (Varma-Simon 2006).\n\n## Group-Aware, Structured, and Small-Sample CV\n\n**Goal:** Match the CV scheme to the real unit of independence and get a variance-aware estimate.\n\n**Approach:** Pass a grouping vector so no group spans folds; for tiny n, repeat stratified k-fold and report the spread, not a bare number. Standard `KFold` assumes i.i.d. rows, which biomedical data almost never satisfy.\n\n```python\nfrom sklearn.model_selection import StratifiedGroupKFold, RepeatedStratifiedKFold, cross_val_score\n\ngroups = meta['patient_id'].values                          # multiple samples per patient\ngcv = StratifiedGroupKFold(n_splits=5)                      # group-disjoint AND class-balanced\ng_auc = cross_val_score(pipe, X, y, cv=gcv, groups=groups, scoring='roc_auc')\n\nrcv = RepeatedStratifiedKFold(n_splits=5, n_repeats=10, random_state=0)\nr_auc = cross_val_score(pipe, X, y, cv=rcv, scoring='roc_auc')   # report an interval\n```\n\nLeave-one-out is high-variance and degenerate for ranking metrics (AUC is undefined on a size-1 test fold) -- prefer repeated stratified k-fold. The .632+ bootstrap (Efron-Tibshirani 1997) is a defensible alternative but is optimistic for zero-apparent-error learners; for internal validation of a single fixed model, bootstrap optimism correction is the cleaner choice.\n\n## Calibration vs Discrimination\n\n**Goal:** Verify that predicted probabilities mean what they say, not just that they rank correctly.\n\n**Approach:** Plot a reliability curve, score it with the proper Brier score, and recalibrate on a held-out fold if needed. AUC measures only ranking; the calibration slope (\u003C1 signals overfitting) and the reliability curve localize the failure.\n\n```python\nfrom sklearn.calibration import calibration_curve, CalibratedClassifierCV\nfrom sklearn.metrics import brier_score_loss\nfrom sklearn.frozen import FrozenEstimator                  # sklearn >=1.6\n\nprob_true, prob_pred = calibration_curve(y_test, p_test, n_bins=10, strategy='quantile')\nbrier = brier_score_loss(y_test, p_test)                    # proper score: calibration + refinement\n\n# Recalibrate a fitted model on a disjoint calibration fold (cv='prefit' deprecated in 1.6, removed in 1.8):\ncalibrated = CalibratedClassifierCV(FrozenEstimator(fitted_model), method='isotonic')\ncalibrated.fit(X_cal, y_cal)                                # X_cal disjoint from train and test\n```\n\nCalibration cautions: use `strategy='quantile'` (equal-mass bins) under imbalance; do not report a single Expected Calibration Error as ground truth -- equal-width ECE is biased and reports error even for perfectly calibrated models (Roelofs 2022). Use Platt (`method='sigmoid'`) for small calibration sets, isotonic for hundreds-plus points. Recalibrating on the test set is leakage.\n\n**Net benefit \u002F Decision Curve Analysis (Vickers-Elkin 2006):** `net_benefit = TP\u002Fn - (FP\u002Fn)*(pt\u002F(1-pt))`, where the threshold probability `pt` encodes the relative harm of a false positive. Plot it against treat-all and treat-none references; a model is clinically useful only where it sits above both. DCA requires good calibration to be valid and is the bridge from statistical performance to clinical usefulness -- a model can have high AUC yet zero net benefit at every plausible threshold.\n\n## Metric Selection in Imbalanced Data\n\n| Metric | Use | Trap |\n|--------|-----|------|\n| Accuracy | Almost never headline it under imbalance | At 5% prevalence, \"always negative\" scores 95% |\n| AUC \u002F C | Discrimination, prevalence-independent | Blind to calibration; not a usefulness measure |\n| AUPRC (average precision) | Rare-positive problems | Baseline is the prevalence, not 0.5 -- state it (Saito 2015) |\n| Brier \u002F log-loss | When probabilities are used | Proper; not comparable across prevalences without scaling |\n| MCC | Balanced single-threshold summary | Still threshold-dependent (Chicco 2020) |\n| F1 | Retrieval-style problems | Ignores true negatives; assumes a cost ratio |\n\nThe multiple-threshold problem: reporting the *best* F1\u002Faccuracy over thresholds is optimistic, and choosing that threshold on the test set is leakage. Pick the operating point on a separate fold (or by net benefit), then report the locked-threshold metric once; prefer threshold-free curves (ROC, PR, calibration) plus one pre-specified operating point.\n\n## External Validation, Optimism, Sample Size, and TRIPOD+AI\n\n- **Internal vs external.** Internal validation (bootstrap optimism correction, repeated\u002Fnested CV) estimates reproducibility on new patients from the *same* source; external validation (different time, place, setting) estimates transportability and is the usual point of failure -- calibration degrades first (slope \u003C1, intercept shift). Internal-external CV (leave-one-cluster-out) is the recommendation when multiple cohorts exist (Steyerberg 2001).\n- **Optimism and shrinkage.** Apparent performance overstates the future; the gap (optimism) grows with more predictors, more flexibility, smaller n. Remedy with a uniform shrinkage factor (the bootstrap calibration slope) or penalized estimation. A development-data calibration slope \u003C1 *is* the optimism signal.\n- **Sample size.** The \"10 events per variable\" heuristic (Peduzzi 1996) is obsolete; the standard is Riley et al.'s minimum-sample-size framework (2019, Stat Med Parts I-II), which sizes for shrinkage >=0.9 and precise risk estimation (`pmsampsize`). For p>>n omics these formulas are out of regime, which is precisely why heavy penalization + nested validation, not unpenalized multivariable fits, are mandatory.\n- **Reporting.** TRIPOD+AI (Collins 2024, *BMJ* 385:e078378) supersedes TRIPOD 2015 and is the 2024+ target for any biomedical predictive-model claim -- it demands data-splitting and leakage controls, calibration (not just discrimination), fairness\u002Fsubgroup performance, and uncertainty. PROBAST+AI is the companion risk-of-bias appraisal.\n\n## Per-Method Failure Modes\n\n### Preprocessing fit before the split\n- **Trigger:** `StandardScaler().fit_transform(X)` (or ComBat, PCA, imputation) on all data, then CV.\n- **Mechanism:** The fitted parameters encode the test rows.\n- **Symptom:** Test variance tiny; drop on external data.\n- **Fix:** Put every transform in the Pipeline so `fit` only sees training folds.\n\n### Threshold or best-of-many chosen on the test set\n- **Trigger:** Reporting the best F1 over thresholds, or the best of several CV runs.\n- **Mechanism:** Each peek leaks; over many tries the test set becomes a training set.\n- **Symptom:** Irreproducible \"SOTA\"; a fresh test set disappoints.\n- **Fix:** Lock one test set, pre-specify metric and threshold rule, choose thresholds on a separate fold.\n\n### SMOTE\u002Fresampling to fix imbalance breaks calibration\n- **Trigger:** Oversampling\u002FSMOTE for a *risk* model.\n- **Mechanism:** Changing training prevalence inflates minority-class probabilities; no AUC gain (van den Goorbergh 2022).\n- **Symptom:** Good AUC, badly miscalibrated risks.\n- **Fix:** Do not resample for probability models; move the threshold on a calibrated model. If resampled, use `imblearn.pipeline.Pipeline` (train-fold only).\n\n### LOO for a ranking metric\n- **Trigger:** Leave-one-out with AUC.\n- **Mechanism:** AUC is undefined within a size-1 fold; pooling OOF predictions then scoring once is not equivalent to averaging fold scores for non-decomposable metrics.\n- **Symptom:** Unstable or misleading AUC.\n- **Fix:** Use repeated stratified k-fold; reserve `cross_val_predict` for visuals, not the headline metric.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| Selection\u002Fpreprocessing inside every fold; nested CV for tuning | Ambroise 2002; Varma-Simon 2006 | Same-data tune-and-grade is optimistic |\n| Repeated 5-fold x ~10, report the spread | field standard | A single CV is one high-variance draw at small n |\n| Calibration slope ~1; \u003C1 means overfitting | Van Calster 2019 | Basis of shrinkage |\n| Sample size from Riley framework (shrinkage >=0.9) | Riley 2019 | \"10 EPV\" is obsolete |\n| Report per TRIPOD+AI | Collins 2024 | 2024+ standard: discrimination + calibration + fairness |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `cv='prefit'` warns or errors | Deprecated in 1.6, removed in 1.8 (now raises) | Wrap the fitted model in `FrozenEstimator` |\n| Calibration looks perfect on the test set | Calibrated on the evaluation data | Calibrate on a disjoint fold |\n| Scaler\u002Fselector fit outside the Pipeline | Preprocessing leakage | Move into the Pipeline passed to `cross_val_score`\u002F`GridSearchCV` |\n| `groups=` ignored | Not threaded to the splitter | Pass `groups=` to `cross_validate`\u002F`GridSearchCV.fit` |\n| `cross_val_predict` used as the headline AUC | Non-decomposable metric over pooled OOF | Average per-fold scores instead |\n\n## References\n\n- Peduzzi P, Concato J, Kemper E, Holford TR, Feinstein AR. 1996. A simulation study of the number of events per variable in logistic regression analysis. *J Clin Epidemiol* 49:1373-1379.\n- Efron B, Tibshirani R. 1997. Improvements on cross-validation: the .632+ bootstrap method. *J Am Stat Assoc* 92:548-560.\n- Steyerberg EW, Harrell FE, Borsboom GJ, et al. 2001. Internal validation of predictive models. *J Clin Epidemiol* 54:774-781.\n- Ambroise C, McLachlan GJ. 2002. Selection bias in gene extraction on the basis of microarray gene-expression data. *PNAS* 99:6562-6566.\n- Vickers AJ, Elkin EB. 2006. Decision curve analysis: a novel method for evaluating prediction models. *Med Decis Making* 26:565-574.\n- Varma S, Simon R. 2006. Bias in error estimation when using cross-validation for model selection. *BMC Bioinformatics* 7:91.\n- Cawley GC, Talbot NLC. 2010. On over-fitting in model selection and subsequent selection bias in performance evaluation. *J Mach Learn Res* 11:2079-2107.\n- Saito T, Rehmsmeier M. 2015. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. *PLoS ONE* 10:e0118432.\n- Van Calster B, McLernon DJ, van Smeden M, Wynants L, Steyerberg EW. 2019. Calibration: the Achilles heel of predictive analytics. *BMC Med* 17:230.\n- Riley RD, Snell KIE, Ensor J, et al. 2019. Minimum sample size for developing a multivariable prediction model: Parts I-II. *Stat Med* 38:1262-1296.\n- Chicco D, Jurman G. 2020. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. *BMC Genomics* 21:6.\n- Roelofs R, Cain N, Shlens J, Mozer MC. 2022. Mitigating bias in calibration error estimation. *Proc AISTATS* PMLR 151:4036-4054.\n- van den Goorbergh R, van Smeden M, Timmerman D, Van Calster B. 2022. The harm of class imbalance corrections for risk prediction models. *J Am Med Inform Assoc* 29:1525-1534.\n- Whalen S, Schreiber J, Noble WS, Pollard KS. 2022. Navigating the pitfalls of applying machine learning in genomics. *Nat Rev Genet* 23:169-181.\n- Kapoor S, Narayanan A. 2023. Leakage and the reproducibility crisis in machine-learning-based science. *Patterns* 4:100804.\n- Collins GS, Moons KGM, Dhiman P, et al. 2024. TRIPOD+AI statement. *BMJ* 385:e078378.\n\n## Related Skills\n\n- machine-learning\u002Fbiomarker-discovery - Feature selection run inside the CV fold\n- machine-learning\u002Fomics-classifiers - Model training, calibration directions, and imbalance handling\n- machine-learning\u002Fsurvival-analysis - Validation metrics for time-to-event models\n- experimental-design\u002Fbatch-design - Designing out batch-outcome confounding before analysis\n- experimental-design\u002Fmultiple-testing - FDR control for high-dimensional testing\n- clinical-biostatistics\u002Ftrial-reporting - Confirmatory-trial reporting and the prediction-vs-inference boundary\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","python","2026-09-20","machine-learning\u002Fmodel-validation\u002FSKILL.md","sklearn","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-machine-learning-model-validation","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-machine-learning-model-validation",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-machine-learning-model-validation",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-machine-learning-model-validation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-machine-learning-model-validation\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fnested_cv_biomarker.py","SCRIPT","脚本",3871,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-machine-learning-model-validation\u002Fexamples\u002Fnested_cv_biomarker.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",4196,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-machine-learning-model-validation\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]