# `mix nous.eval.judge.calibrate`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/mix/tasks/nous.eval.judge.calibrate.ex#L1)

Calibrates a `Nous.Eval.Scorers.Judge` configuration against human labels
(see `Nous.Eval.JudgeCalibration`).

    mix nous.eval.judge.calibrate --judge openai:gpt-4o-2024-08-06 \
      --dataset priv/eval/judge_cases.jsonl --rubric-file priv/eval/rubric.md

Replays the dataset's stored outputs through the judge (no agent runs),
prints agreement, Cohen's κ (quadratic-weighted for Likert scales), the
confusion matrix, the false-pass rate and the judge error rate on the
holdout split, and stores the result in an eval store under the judge's
fingerprint id. A judge configured with `require_calibration:` looks it up
there.

The judge options here must match the judge's options in your eval
(rubric, scale, threshold, include, seed): any difference is another
fingerprint, and the stored calibration does not apply to it.

## Options

  * `--judge MODEL` - the judge model, `provider:model` (required)
  * `--dataset PATH` - a `nous.judge_case/1` JSONL file (required)
  * `--scale SCALE` - `binary` (default), `ternary`, `ternary:PARTIAL`,
    `likert:MIN:MAX`, `choices:A=1.0,B=0.4,C=0`, or the dataset-file JSON
    form (`{"likert": {"min": 1, "max": 5, "labels": {...}}}`)
  * `--threshold X` - the pass threshold (required for non-binary scales)
  * `--rubric-file PATH` - the rubric text (default: the judge's default
    rubric)
  * `--include ITEMS` - comma-separated: `input`, `output`, `reference`,
    `expected` (default `input,output`)
  * `--seed N` - the judge's seed
  * `--concurrency N` - judge calls in flight (default 4)
  * `--store SPEC` - `file:DIR` (default `file:.nous/eval`, the store the
    other `mix nous.eval*` tasks use), `sqlite:PATH` or `duckdb:PATH`
  * `--format FORMAT` - `console` (default) or `json` (the stored record)

Exits with status 2 on an operational error (bad arguments, unreadable
dataset, invalid judge options, store failure).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
