agentleFS
kienbui1995kienbui1995/magic-powers/skills/model-evaluation/SKILL.md

model-evaluation

Skill0 starsChanged 8 months agoMITView on GitHub

Use when selecting evaluation metrics, detecting bias, or validating model readiness for production

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When assessing whether a model is good enough to deploy, fairly represents all user groups, and won't degrade in production.

    line 9
  2. Distinctive:

    Don't report only aggregate metrics.

    line 24
  3. Distinctive:

    Use tools: Fairlearn, IBM AI Fairness 360

    line 33
  4. Distinctive:

    Never slicing results by subgroup

    line 51

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Model Evaluation

When to Use

When assessing whether a model is good enough to deploy, fairly represents all user groups, and won't degrade in production.

Core Jobs

1. Choose the Right Metrics

Match metric to problem type:

  • Binary classification: AUC-ROC, F1, precision, recall (choose based on cost of FP vs FN)
  • Multi-class: macro/weighted F1, confusion matrix
  • Regression: RMSE, MAE, MAPE (use MAE when outliers shouldn't dominate)
  • Ranking: NDCG, MRR
  • Generation (LLM): BLEU/ROUGE (weak), human eval, LLM-as-judge

Business metric matters more than ML metric — always connect model performance to business outcome.

2. Evaluate Across Segments

Don't report only aggregate metrics. Slice by:

  • User demographics (age, region, language)
  • Data subgroups (product category, request type)
  • Time (recent vs older data — look for drift)
  • Edge cases (short inputs, rare labels)

3. Bias and Fairness Checks

  • Equal opportunity: equal TPR across groups?
  • Demographic parity: equal positive prediction rates?
  • Use tools: Fairlearn, IBM AI Fairness 360

4. Pre-Production Validation

  • Performance on holdout test set
  • Performance on recent data (last 30 days)
  • Latency at P50/P95/P99 (meets SLA?)
  • Memory footprint (fits in serving environment?)
  • Slice analysis (no group significantly underperforms)
  • Shadow mode test (run alongside current system)

Key Outputs

  • Evaluation report with chosen metrics and rationale
  • Slice analysis (breakdown by key segments)
  • Bias/fairness assessment
  • Pre-production validation checklist

Anti-Patterns

  • Optimizing for accuracy on imbalanced datasets
  • Never slicing results by subgroup
  • Declaring a model "ready" without latency testing
  • Using test set for model selection (leakage)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.