cv-lb-gap-acknowledgment

cv-lb-gap-acknowledgment is a skill for Claude Code, Codex from topprismdata/cultivating-ml-agent. It costs 192 tokens per session (2,511 once invoked), scanned A, original, MIT.

A reminder for machine-learning experiments that cross-validation scores and leaderboard scores can disagree. Cross-validation tests a model on held-out data, while a leaderboard score comes from an external evaluation set.

In plain words
What is it for?
Use it when comparing models, features, training settings, or submissions and deciding whether to continue, change direction, or stop.
Why use it?
It helps prevent choosing a model solely because its local test score improves when its real submission performance is flat or worse.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when comparing models, features, training settings, or submissions and deciding whether to continue, change direction, or stop.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add topprismdata/cultivating-ml-agent --skill cv-lb-gap-acknowledgment
Clone the repo
git clone --depth 1 https://github.com/topprismdata/cultivating-ml-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cv-lb-gap-acknowledgment

README.md
[![agentmods](https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment/github.svg)](https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment)
Your own site
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cv-lb-gap-acknowledgment

Your own site · 80×15
<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/cv-lb-gap-acknowledgment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 192 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00192 $0.02511
Opus 5 $0.00096 $0.01256
Sonnet 5 $0.00038 $0.00502
Haiku 4.5 $0.00019 $0.00251

Measured 11d ago against content hash af93f8a06fa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cv-lb-gap-acknowledgment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/cv-lb-gap-acknowledgment/SKILL.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CV-LB Gap Acknowledgment

Problem

A common MLOps trap: trusting CV score as the final metric.

Reality:

  • Many experiments show CV improvement but LB degradation
  • The gap can be 0.005-0.01 (5-10% of total error) on tabular competitions
  • Days of CV optimization may yield worse LB results
  • "Best CV" ≠ "Best LB"

The trap: Continue iterating on CV because "the score is improving", missing that CV is overfitting to noise.

Context / Trigger Conditions

Use this skill when:

  • OOF score keeps improving but LB score plateaus or drops (red flag!)
  • Spending days tuning hyperparameters without LB improvement
  • Comparing models on CV only without LB validation
  • Trusting cross-validation as the "final" metric for submissions
  • Adding more features because CV says so
  • More complex model beats simpler one on CV
  • Longer training (more iterations) improves CV

Solution: Mandatory 5-Stage Validation Pipeline

Stage 1: CV (Cross-Validation)
  ↓ Compute OOF score
Stage 2: Submission
  ↓ Submit to LB
Stage 3: LB Validation
  ↓ Compare CV vs LB
Stage 4: Analysis
  ↓ Diagnose gap
Stage 5: Decision
  ↓ Iterate / Pivot / Stop

Never skip Stage 2-4! CV is necessary but not sufficient.

Mathematical Reasons for CV-LB Gap

1. Overfitting to OOF Noise

OOF predictions are still predictions on training data (just held out in folds). They are not independent of training process.

Variance decomposition:

Var(OOF) = Var(true_error) + Var(model_selection) + Var(noise)
  • OOF score includes model selection variance (you picked this model because OOF was high)
  • LB score is out-of-sample (no selection bias)

2. Distribution Shift (Train vs Test)

  • Train: Same distribution you optimize on
  • Test: May have:
    • Different feature distributions (covariate shift)
    • Different label distributions (prior shift)
    • Different relationships (concept shift)

Example (Spaceship Titanic):

  • Train: 8693 rows
  • Test: 4277 rows (different distribution)
  • CV-LB gap: 0.005-0.01 (0.8124 OOF → 0.8078 LB)

Read the full file on GitHub · 262 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 262 lines · 192 tokens per session scan A af93f8a06fa5

Subscribe to this mod's changes

cv-lb-gap-acknowledgment is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 13d ago), licensed MIT. It adds 192 tokens to every session and 2,511 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

huggingface-hub

Hugging Face Hub CLI (hf) — search, download, and upload models and datasets, manage repos, query datasets with SQL, deploy inference endpoints, manage Spaces and buckets.

braxtonROSE4/zorro-agent · 43 tokens

tensorboard

Visualize training metrics, debug models with histograms, compare experiments, visualize model graphs, and profile performance with TensorBoard - Google's ML visualization toolkit.

davila7/claude-code-templates · 32 tokens

mlflow

Track ML experiments, manage model registry with versioning, deploy models to production, and reproduce experiments with MLflow - framework-agnostic ML lifecycle platform.

davila7/claude-code-templates · 33 tokens

datachain-knowledge

Use whenever datasets, cloud storage buckets, or data pipelines are mentioned — creating, saving, querying, listing, exploring, deleting, or processing data in S3, GCS, Azure Blob, or local storage. Also use when running any script that may create datasets as a side effect. Maintains a knowledge base at dc-knowledge/…

datachain-ai/datachain · 104 tokens

prompt-scanner

A scanner for text sent to an AI agent, looking for prompt injection and jailbreak attempts. Prompt injection is text that tries to override an agent's instructions; a jailbreak tries to bypass its safety limits.

alibaba/anolisa · 103 tokens

install-openviking-memory

Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures facts from chats and recalls relevant context before each reply (auto-capture + auto-recall, cross-session). Covers prerequisites, install through OpenClaw's plugin…

volcengine/OpenViking · 191 tokens