Skip to navigation

Compare Evaluations

View as MarkdownOpen in Claude

Pair two evaluations per test case and compare them on one metric.

Both runs’ attempts are averaged per test case (a failed evaluator result scores 0; an unscored attempt is omitted), the shared test cases are paired, and the response reports the mean paired difference with a 95% bootstrap interval, the fraction of resamples favoring the candidate, and the better/same/worse counts.

Path parameters

workspacestringRequired

Query parameters

baselinestringRequired
Name of the baseline Evaluation.
candidatestringRequired
Name of the candidate Evaluation.
metricstringRequired

Metric to compare: an evaluator as ‘evaluators.<name>’, or one of ‘cost_usd’, ‘latency_ms’, ‘tokens’. Evaluator scores are higher-is-better; the rollup metrics are lower-is-better.

Response

Successful Response
workspacestring
baselinestring
Name of the baseline Evaluation.
candidatestring
Name of the candidate Evaluation.
metricstring

The compared metric: ‘evaluators.<name>’, ‘cost_usd’, ‘latency_ms’, or ‘tokens’.

higher_is_betterboolean

Direction of the metric: true when a higher value is better (evaluator scores), false when lower is better (cost, latency, tokens).

n_pairsinteger
Test cases present on both sides, i.e. the pairs compared.
betterinteger
Paired test cases where the candidate is better.
sameinteger

Paired test cases within a 1e-9 absolute difference of the baseline.

worseinteger
Paired test cases where the candidate is worse.
mean_paired_differencedouble or nullOptional

Mean of the per-test-case differences, signed candidate minus baseline. Null when no test case is shared.

interval_lowdouble or nullOptional

Lower bound of the 95% bootstrap interval of the mean paired difference.

interval_highdouble or nullOptional

Upper bound of the 95% bootstrap interval of the mean paired difference.

p_candidate_betterdouble or nullOptional

Fraction of bootstrap resamples whose mean paired difference favors the candidate under the metric’s direction. Resamples within 1e-9 of zero are ties and count as neither better nor worse, so 1 minus this value is not the chance the candidate is worse. Null when no test case is shared.

interval_caveatstring or nullOptional

Plain-language caveat about the interval: absent pairs, or a small pair count, make it a weak estimate.

Errors

400
Bad Request Error
404
Not Found Error
422
Unprocessable Entity Error
503
Service Unavailable Error