Evaluation and validation#

Evaluation, validation and benchmarking of interactive evolutionary processes and their evaluators.

Agreement statistics, judge diagnostics, psychometric audits, alt-test, PPI, run measures, statistics and experiment drivers.

Classes#

PsychometricResult(deltas, p_correct, n, ...)

Fitted 2AFC psychometric function (Weibull with lapse rate; Wichmann and Hill, 2001).

JudgeAudit(name, position, transitivity, ...)

Results of audit_judge().

AltTestResult(omega, rho, passed, epsilon, table)

BenchmarkResult(results, curves, summary, ...)

EvaluatorComparison(records, names, agreement)

Outcome of compare_evaluators().

Functions#

kendall_tau(a, b)

Kendall's τ-b between two score vectors (ties handled).

spearman_rho(a, b)

rbo(r1, r2[, p])

Rank-biased overlap of two (possibly partial) rankings (Webber, Moffat and Zobel, 2010), extrapolated.

topk_overlap(r1, r2, k)

Jaccard overlap of the top-k items of two rankings.

cohen_kappa(y1, y2[, weights, labels])

Cohen's κ; weights="linear" or "quadratic" for ordinal labels.

fleiss_kappa(table)

Fleiss' κ from an items × categories count table (equal raters per item).

krippendorff_alpha(data[, level])

Krippendorff's α for a raters × units array with NaN for missing values.

kendall_w(rank_matrix)

Kendall's coefficient of concordance of m rankers × n items (ranks 1..n).

icc(ratings[, form])

Intraclass correlation of a units × raters matrix (Shrout and Fleiss, 1979).

feedback_agreement(query, a, b)

Agreement in [0, 1] of two answers to the same query (1 − protocol-aware disagreement).

pairwise_agreement_matrix(records[, names])

Mean answer agreement between evaluators.

position_consistency(evaluator, problem[, ...])

Swap test on random pairs.

position_bias(log[, kinds])

Choice rate by display position in a session log, with a χ² test of uniformity.

self_consistency(evaluator, queries[, repeats])

Mean pairwise agreement of repeated answers to the same queries.

transitivity(evaluator, problem[, n_items, ...])

Round-robin duels among n_items candidates; cyclic triads and consistency ζ.

psychometric_audit(evaluator, problem, ...)

Measure how well an evaluator discriminates a controlled attribute.

calibration(confidence, correct[, n_bins])

Expected calibration error and the reliability table of self-reported confidence.

scale_usage(ratings[, scale])

How an evaluator uses a rating scale: entropy (bits, normalized), range used, mean and spread.

audit_judge(evaluator, problem, *[, goal, ...])

Swap test, transitivity, self-consistency and (optionally) a psychometric audit in one call.

make_individuals(genomes[, generation])

Wrap genomes as individuals with fresh identifiers (for audits outside sessions).

alt_test(humans, llm, *[, epsilon, q, ...])

The alternative annotator test.

benjamini_yekutieli(pvals[, q])

Rejections of the Benjamini–Yekutieli step-up procedure (valid under arbitrary dependence).

ppi_mean(y_labeled, yhat_labeled, yhat_unlabeled)

Prediction-powered estimate and confidence interval of a population mean.

labels_from_records(records, name)

Item-level labels of evaluator name from [(query, {name: Feedback})].

curve_frame(results[, x, labels])

Long table of best-so-far oracle utility vs. effort for many results.

aggregate_curves(df[, x, grid, by, ci])

Mean and bootstrap confidence band of step-interpolated curves on a common effort grid.

evaluations_to_threshold(result, threshold)

Effort needed to show a candidate with oracle utility ≥ threshold (inf if never).

area_under_curve(result, budget[, x])

Normalized area under the best-so-far curve on [0, budget] (1 = optimum from the start).

burden(log)

Effort of the evaluator: queries, items viewed, elementary decisions, information bits, human answers, cost.

diversity(log[, problem, space])

Mean pairwise normalized distance of the candidates of each query (genome or phenotype features).

convergence_speed(log, problem)

Distance (unit cube) between the centroids of consecutive queries.

run_summary(results[, threshold, budget])

One row per result: final best utility, effort, AUC and effort-to-threshold.

bootstrap_ci(x[, fn, n_boot, ci, seed])

Point estimate and percentile bootstrap interval of fn(x).

a12(x, y)

Vargha–Delaney \(A_{12}=P(X>Y)+\tfrac12P(X=Y)\) (0.5 = no effect; 0.56/0.64/0.71 small/medium/large).

wilcoxon_paired(x, y)

Two-sided Wilcoxon signed-rank p-value of paired samples (1.0 if all differences vanish).

mann_whitney(x, y)

holm(pvals)

Holm step-down adjusted p-values.

friedman(M)

Friedman test on an N blocks × k algorithms matrix (larger = better); average ranks included.

nemenyi_cd(k, N[, alpha])

Nemenyi critical difference of average ranks, \(q_\alpha\sqrt{k(k+1)/(6N)}\) (alpha = 0.05).

compare_groups(df, value, group[, block, ...])

Pairwise comparison table of groups (mean, CI, A12 and Holm-adjusted p-values vs. a reference).

run_benchmark(problems, strategies, users[, ...])

Run a factorial benchmark.

compare_evaluators(problem, evaluators, *[, ...])

Ask the same random queries to several evaluators and compare their answers.

auroc(scores, labels)

Area under the ROC curve of scores for binary labels (Mann–Whitney formulation).