Check the Judge Against a Person

Your status judge passed 17 of 20 dev answers, but that’s the judge’s word alone. Before its grades decide which prompt ships, check them against a person’s.

In this lesson, you’ll grade a sample, count how often the judge agrees, and read every disagreement, so you can say when to trust it. Start with your own grades.

Grade a Sample Yourself

To calculate an agreement rate, the share of answers where the judge’s verdict matches yours, you need grades the judge never influenced, so grade first. evals/pairs.jsonl holds forty answers, v1 and v2 for twenty questions, each with its latest report. Grade each against the criterion in evals/judge.js, one line per answer:

Language: Text Filename: evals/my-grades.jsonl
{"id":"q-012","version":"v1","verdict":"pass"}
{"id":"q-012","version":"v2","verdict":"pass"}
{"id":"q-108","version":"v1","verdict":"fail"}

Grading forty answers gives you a first check, and your grades will differ from those in this example. Here, eight failed, mostly answers quoting an older Hut 6 or Valbrune ford report beside the latest.

Count Agreement and Read the Disagreements

Save evals/agree.js to count matches and print each mismatch with the judge’s reason:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.