Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Evaluating and Scoring Agents

Free · sign in to start and track progress

1 · Foundations of evaluation

  • 1Why evals, and their vocabulary
  • 2Error analysis from traces
  • 3Code-based graders

2 · Scoring that you can trust

  • 4LLM-as-judge
  • 5Calibrating judges

    Exercise answers

    • Answer: Calibrate your Claude Code judge against your own labels
    • Answer: Pick a t.judge threshold and correct a reported rate
  • 6Rubrics per task
  • 7Statistics, trials and CI gates
CapstoneA full eval suite for your drafting agentReference implementation

Module 2 · Scoring that you can trust · Lesson 5

Calibrating judges

Measure how far you can trust an LLM judge by comparing it with a domain expert's labels, using TPR, TNR and Cohen's kappa, then iterate the prompt and correct the rates you report.

75 min 2 videos 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptDurable agents with eve

By the end of this lesson you can

  • Build a labelled gold set with a principal domain expert, split into train, dev and test sets
  • Compute a judge's TPR, TNR, raw agreement and Cohen's kappa from a confusion matrix, and explain why raw agreement misleads
  • Diagnose judge disagreements and iterate the judge prompt without leaking test examples
  • Correct an observed pass rate for judge error, and know when that correction breaks down
  • Choose a threshold for eve's t.judge scores from labelled data, and decide when to recalibrate

On this page

  • The trainee analogy
  • Step 1: a gold set from one expert
  • Split the labels three ways
  • Step 2: the confusion matrix
  • Cohen's kappa: agreement beyond chance
  • Worked example: judge v1 on 60 dev items
  • How good is good enough?
  • These are estimates too
  • Step 3: iterate on disagreements
  • The calibration script
  • Step 4: using an imperfect judge
  • Thresholds for eve's t.judge
  • Misconceptions and limits
  • How this sets up the next lesson
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01The trainee analogy
  2. 02Step 1: a gold set from one expert
  3. 03Step 2: the confusion matrix
  4. 04Step 3: iterate on disagreements
  5. 05Step 4: using an imperfect judge
  6. 06Thresholds for eve's t.judge
  7. 07Misconceptions and limits
  8. 08How this sets up the next lesson
  9. 09Summary

Sources & further reading

  • Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human PreferencesPaper · Shreya Shankar, J.D. Zamfirescu-Pereira, Björn Hartmann, Aditya G. Parameswaran, Ian Arawjo · 2024The study behind 'criteria drift': people need criteria to grade outputs, but grading outputs changes their criteria. Read the abstract and the discussion of output-dependent criteria.
  • Judging LLM-as-a-Judge with MT-Bench and Chatbot ArenaPaper · Lianmin Zheng, Wei-Lin Chiang, Ying Sheng et al. · 2023Compares judge-human agreement with human-human agreement: the right ceiling to measure your judge against.
  • Demystifying evals for AI agentsLab research · Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares, Jiri De Jonghe · Anthropic · 2026Model graders 'should be closely calibrated with human experts', and the human-grader role of calibrating them.
  • scikit-learn: cohen_kappa_scoreDocsThe kappa definition used in this lesson, with references to Cohen (1960) and Artstein and Poesio (2008). Handy for checking your own implementation.
  • eve docs: JudgeDocs · VercelBoolean judge scores are model estimates, not calibrated confidence: set thresholds against labelled examples.
  • Using LLM-as-a-Judge For Evaluation: A Complete GuideArticle · Hamel Husain · 2024Critique shadowing with a principal domain expert, reporting TPR and TNR separately, and keeping dev and test examples out of the judge prompt.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 9 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks