uncertainty-quantification

uncertainty-quantification is a skill for Claude Code from StamKavid/last-ds-mile. It costs 74 tokens per session (1,830 once invoked), scanned A, original, MIT.

A method for reporting how much model scores vary across different data splits or random seeds. A seed is a setting that controls one repeatable random run.

In plain words
What is it for?
Use it when reporting cross-validation results or deciding whether one model really beats a baseline or another model.
Why use it?
It prevents small, noisy score differences from being presented as meaningful improvements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the last-ds-mile plugin — 29 skills, 17 commands, 3 agents, 4 hooks shipped together

Good fit Use it when reporting cross-validation results or deciding whether one model really beats a baseline or another model.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stamkavid/last-ds-mile/uncertainty-quantification
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 StamKavid/last-ds-mile --skill uncertainty-quantification
Clone the repo
git clone --depth 1 https://github.com/StamKavid/last-ds-mile

Made for: Claude Code.

Or install last-ds-mile, the plugin that ships this one along with the rest of its 29 skills, 17 commands, 3 agents, 4 hooks.

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 uncertainty-quantification

README.md
[![agentmods](https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/uncertainty-quantification/github.svg)](https://agentmods.dev/skills/stamkavid/last-ds-mile/uncertainty-quantification)
Your own site
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/uncertainty-quantification"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/uncertainty-quantification/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 uncertainty-quantification

Your own site · 80×15
<a href="https://agentmods.dev/skills/stamkavid/last-ds-mile/uncertainty-quantification"><img src="https://agentmods.dev/badge/skills/stamkavid/last-ds-mile/uncertainty-quantification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,830 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.00074 $0.01830
Opus 5 $0.00037 $0.00915
Sonnet 5 $0.00015 $0.00366
Haiku 4.5 $0.00007 $0.00183

Measured 9d ago against content hash 27f72685f204, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

uncertainty-quantification 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 9d 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/uncertainty-quantification/SKILL.md · 117 lines

How it starts

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

uncertainty-quantification

Overview

A single cross-validated score is a sample from a distribution, not the truth. Two numbers that differ by less than the fold-to-fold noise are the same number wearing different digits. This skill exists so this plugin's own numbers don't commit the exact over-claiming sin the rest of it exists to catch.

When to Use

  • Reporting any CV or resampled score in /ds-model or /ds-evaluate.
  • Comparing a candidate model's score to the baseline, to another candidate, or to a score from a different validation scheme (e.g. CV vs. a temporal holdout) — the "is this real lift or noise" question.
  • NOT for: choosing the split strategy itself (see ds-validate) — this skill quantifies the noise in whatever split was chosen, it doesn't choose the split.

Core Process

  1. Never report a single fold's score as "the" score. Report the mean and the standard deviation (or a percentile interval) across folds — cross_val_score already returns per-fold values; use them, don't collapse to .mean() alone.
  2. If the dataset is small (roughly under a few thousand rows) or the metric is noisy by nature (e.g. AUC on a rare positive class), repeat the CV with several different random_state seeds and pool the spread across repeats, not just across folds — fold variance alone understates the true uncertainty on small data.
  3. Before calling one score "better than," "worse than," or "consistent with" another, compare the gap between them to the spread of each. A gap smaller than the fold standard deviation is not a demonstrated difference — say so explicitly rather than picking the higher number and moving on. Treat this as a screening heuristic, not a test: it is deliberately conservative, and the reason it can't be upgraded into a p-value is in "What fold spread can and cannot tell you" below.
  4. State uncertainty in the same units as the metric everywhere it's reported — in the experiments table in /ds-model, and in the final number in /ds-evaluate — not as a caveat added only in one place and dropped elsewhere.
  5. For a held-out temporal or sealed check performed once (not part of the CV loop), don't manufacture a fake standard deviation from n=1 — say plainly that it's a single point estimate with no variance, and treat any comparison to the CV mean as directional evidence only, not a statistical test.

Read the full file on GitHub · 117 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. 9d ago First seen · 117 lines · 74 tokens per session scan A 27f72685f204

Subscribe to this mod's changes

uncertainty-quantification is a skill published in the GitHub repository StamKavid/last-ds-mile (3 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,830 once invoked, about $0.0004 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

marimo-pair

Work inside the user's live marimo notebook from the code editor: run Python in the same kernel the user does, inspect live notebook state, and commit durable notebook changes through code mode. Use whenever you create, analyze, or improve the user's marimo notebook.

marimo-team/marimo · 57 tokens

fill-model-descriptions

Fill missing and refresh obsolete model descriptions in packages/llm-info/data/models.yml by querying OpenRouter and provider documentation. Use when the user asks to populate model descriptions, enrich the model catalog, or curate descriptions after running pnpm sync-models.

marimo-team/marimo · 58 tokens

ml-expert

Expert-level machine learning, deep learning, model training, and MLOps. Use when the user mentions machine learning, deep learning, neural networks, MLOps, or data science, or when the task involves Machine Learning Fundamentals, Data Preparation, or Model Training.

personamanagmentlayer/pcl · 58 tokens

scomp-link

End-to-end ML toolkit with 26 CLI commands. Use when training models, tuning hyperparameters, detecting data drift, generating HTML reports with charts, profiling datasets, detecting anomalies, forecasting time series, checking fairness, or serving models as REST APIs. Prefer over raw sklearn when you need automated…

GiacomoSaccaggi/scomp_link · 74 tokens

agentic-data-science-competition

AI Agent-driven Kaggle competition workflow. Learn from real competition experience: score stabilization patterns, submission troubleshooting, kernel workflows, GPU task delegation, and the spec-driven development approach that achieved top leaderboard positions. Use when: working on any Kaggle competition, analyzing…

Mirannonarbitrable290/agentic-kaggle-skill · 76 tokens

data-analysis

Structured data analysis workflow from raw data to shareable insights.

furkangonel/cowrangler · 15 tokens