model-evaluation

model-evaluation is a skill for Claude Code, Codex from param087/agent-ml-skills. It costs 39 tokens per session (677 once invoked), scanned A, original, MIT.

A guide to measuring how well a machine-learning model works. It explains how to choose scores, test models on suitable data splits, and interpret errors and uncertainty.

In plain words
What is it for?
Use it when selecting metrics, comparing models, checking calibration, analysing confusion matrices, or validating predictions.
Why use it?
It helps prevent misleading results caused by using the wrong score or testing method. Cross-validation means repeatedly training and checking on different parts of the data to estimate real-world performance.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/param087/agent-ml-skills/model-evaluation
Any agent
npx skills add param087/agent-ml-skills --skill model-evaluation
Clone the repo
git clone --depth 1 https://github.com/param087/agent-ml-skills

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 model-evaluation

README.md
[![agentmods](https://agentmods.dev/badge/skills/param087/agent-ml-skills/model-evaluation.svg)](https://agentmods.dev/skills/param087/agent-ml-skills/model-evaluation)
Your own site
<a href="https://agentmods.dev/skills/param087/agent-ml-skills/model-evaluation"><img src="https://agentmods.dev/badge/skills/param087/agent-ml-skills/model-evaluation.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00039 $0.00677
Opus 5 $0.00019 $0.00338
Sonnet 5 $0.00008 $0.00135
Haiku 4.5 $0.00004 $0.00068

Measured 4d ago against content hash 61accd99ac0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

model-evaluation 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 4d 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/model-evaluation/SKILL.md · 65 lines

How it starts

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

Model Evaluation

Overview

The wrong metric on the wrong split produces confident, wrong conclusions. Evaluation is about choosing a metric that matches the business cost, validating it on a split that mirrors production, and reporting it honestly with uncertainty.

When to use

  • Selecting how to score a model.
  • A model "looks great" but you're unsure it's real.
  • Comparing candidate models for promotion.

Metric selection

Problem Default metric Use when
Balanced classification ROC-AUC, accuracy classes ~balanced
Imbalanced classification PR-AUC, F1, recall@k rare positives (fraud, disease)
Probabilistic output Log loss, Brier, calibration you need trustworthy probabilities
Ranking NDCG, MAP, MRR recommendation/search
Regression MAE (robust), RMSE (penalize big errors) match error cost
Regression, multiplicative MAPE / RMSLE errors scale with magnitude

Cross-validation strategy

  • Default: StratifiedKFold for classification.
  • Time series: TimeSeriesSplit — never shuffle; train on past, validate on future.
  • Grouped data (multiple rows per user): GroupKFold so the same group never spans train and test.
  • Small data: repeated CV; report mean ± std.

Honest reporting

from sklearn.model_selection import cross_val_score, StratifiedKFold
import numpy as np

cv = StratifiedKFold(5, shuffle=True, random_state=42)
scores = cross_val_score(model, X, y, cv=cv, scoring="average_precision")
print(f"PR-AUC: {scores.mean():.3f} ± {scores.std():.3f}")  # always report spread

Beyond a single number

  • Confusion matrix / classification report at the chosen threshold — accuracy hides per-class failure.
  • Threshold tuning — default 0.5 is rarely optimal; pick it from the PR curve to match precision/recall needs.
  • CalibrationCalibratedClassifierCV or reliability curves when probabilities feed decisions.
  • Slice metrics — evaluate on subgroups to catch fairness/robustness gaps.

Read the full file on GitHub · 65 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. 4d ago First seen · 65 lines · 39 tokens per session scan A 61accd99ac0b

Subscribe to this mod's changes

model-evaluation is a skill published in the GitHub repository param087/agent-ml-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 39 tokens to every session and 677 once invoked, about $0.0002 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

stock-data-fetch

Fetch multi-market financial data — US (FMP→Finnhub), A/HK (Tencent→Sina), crypto (OKX→Hyperliquid), commodities (Hyperliquid+Finnhub), news (Marketaux), backup (Longbridge). Battle-tested in restricted network environments.

realnaka/alphaloop · 62 tokens

data-scientist

数据分析全流程:数据画像、统计检验、可视化、报告生成。三阶段流程(数据摄入→分析执行→报告生成),单 agent 完成,无需多 agent 编排。当用户提到 CSV/Excel/Parquet 数据分析、假设检验、统计报告、制造业分析(良率/SPC/Cpk)、A/B 测试、或数据质量问题诊断时使用。.

realnghon/data-scientist · 95 tokens

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

loop-engineering

Shared loop-engineering reference for COG skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns. Invoke when designing or debugging a skill that iterates (search-verify-retry, scan-until-dry, fetch-retry-gate).

huytieu/COG-second-brain · 63 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens