evalsuite-python 1.1.1__tar.gz → 1.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/CHANGELOG.md +63 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/PKG-INFO +261 -59
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/README.md +256 -58
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/pyproject.toml +3 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/Cargo.lock +6 -6
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/Cargo.toml +1 -1
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/__init__.py +64 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/_evalci.py +170 -12
- evalsuite_python-1.2.0/src/evalsuite/_update.py +170 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/api.py +5 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/cli/main.py +83 -1
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/result.py +17 -7
- evalsuite_python-1.2.0/src/evalsuite/fairness.py +382 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/harness.py +35 -2
- evalsuite_python-1.2.0/src/evalsuite/html_report.py +150 -0
- evalsuite_python-1.2.0/src/evalsuite/judging.py +500 -0
- evalsuite_python-1.2.0/src/evalsuite/llm_benchmarks.py +193 -0
- evalsuite_python-1.2.0/src/evalsuite/rag_report.py +240 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/intervals.py +114 -0
- evalsuite_python-1.2.0/src/evalsuite/stats/planning.py +338 -0
- evalsuite_python-1.2.0/src/evalsuite/survival.py +354 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/version.py +1 -1
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/integration/test_readme_examples.py +21 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/integration/test_repo_hygiene.py +3 -0
- evalsuite_python-1.2.0/tests/test_update.py +76 -0
- evalsuite_python-1.2.0/tests/test_v12.py +325 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/CONTRIBUTING.md +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/LICENSE +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/LICENSE-APACHE +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/Cargo.toml +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/README.md +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/agreement.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/coco.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/curve.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/groups.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/hash.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/lib.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/meteor.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/permutation.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/qa.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/ranks.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/resample.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/surface.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/ter.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-core/src/text.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-py/Cargo.toml +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/rust/evalsuite-py/src/lib.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/__main__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/_bench_metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/_lazy.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/_native.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/benchmarks.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/calibration.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/cards.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/classification/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/classification/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/classification/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/cli/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/clinical/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/clinical/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/clinical/report.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/context.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/exceptions.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/export.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/registry.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/types.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/core/validation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/integrations.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/agents.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/code.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/efficiency.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/longcontext.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/multilingual.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/robustness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/safety.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/llmsys/uncertainty.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/monitor.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/plot.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/py.typed +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/regression/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/regression/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/reporting.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/_resolve.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/compare.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/effect.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/hypothesis.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/paired.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/stats/results.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/factuality.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/generation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/judge.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/qa.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/rag.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/reasoning.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/report.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/retrieval.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/semantic.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/spice.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/text/structured.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/vision/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/vision/detection.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/src/evalsuite/vision/segmentation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/classification/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/classification/test_against_sklearn.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/clinical/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/clinical/test_outputs.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/clinical/test_v020.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/conftest.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/integration/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/integration/test_qa.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_fast_text.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_hardening.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_safety_robustness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/output/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/output/test_benchmarks.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/output/test_cli.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/output/test_plot.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/output/test_reporting.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/regression/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/regression/test_against_sklearn.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/stats/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/stats/test_branches.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/stats/test_compare.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/stats/test_fast_paths.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/stats/test_reference.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_cards.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_harness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_integrations.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_monitor.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_native.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/test_v111_fixes.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/text/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/text/test_against_references.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/text/test_text_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/text/test_v040.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/unit/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/unit/test_core.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/unit/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/vision/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/vision/test_detection.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/vision/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/vision/test_outputs.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.2.0}/tests/vision/test_segmentation.py +0 -0
|
@@ -6,6 +6,69 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.2.0] - 2026-11-26
|
|
10
|
+
|
|
11
|
+
EvalSuite for LLM evaluation and research-grade statistics.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- **LLM benchmark presets**: `es.leaderboard(..., benchmark="gsm8k" | "mmlu" | "arc" | "arc-easy" |
|
|
15
|
+
"truthfulqa" | "humaneval")` sets the scorer; `es.load_benchmark(name)` returns prompts, gold answers and
|
|
16
|
+
categories (MMLU subjects) from the Hugging Face Hub (`[benchmarks]` extra); `es.format_multiple_choice`.
|
|
17
|
+
HumanEval records carry `passed` or `n_samples` / `n_correct` from your own sandbox (EvalSuite never runs
|
|
18
|
+
model-generated code). `evalsuite leaderboard --benchmark`.
|
|
19
|
+
- **`es.judge_report`**: win rates (Wilson) and Bradley–Terry ratings (bootstrap) from pairwise verdicts, with
|
|
20
|
+
position consistency and first-position preference, length bias, self-preference and agreement with human
|
|
21
|
+
verdicts (Cohen's kappa with a bootstrap interval); each bias tested and flagged only when significant.
|
|
22
|
+
**`es.rubric_report`**: rubric means with t intervals, inter-rater Krippendorff's alpha, Spearman
|
|
23
|
+
correlation with human scores.
|
|
24
|
+
- **`es.rag_report`**: hit rate / recall / MRR at k, exact match, token F1 and grounded rate with intervals, and
|
|
25
|
+
every question classified as correct, retrieval failure, generation failure, unsupported-but-correct or
|
|
26
|
+
unknown cause, with the biggest problem named.
|
|
27
|
+
- **`es.html_report`**: one self-contained HTML file (no scripts, no external requests) from any EvalSuite
|
|
28
|
+
results, Matplotlib figures and Markdown text, with a provenance footer.
|
|
29
|
+
- **Planning**: `sample_size_proportion`, `sample_size_two_proportions` (paired McNemar, Connor 1987;
|
|
30
|
+
unpaired, Fleiss et al.), `sample_size_auc` (Hanley & McNeil; Obuchowski), `sample_size_mean_difference`, and
|
|
31
|
+
`power_*` counterparts; checked against statsmodels and by simulation.
|
|
32
|
+
- **Clustered intervals**: `bootstrap_ci(..., clusters=)` and `evaluate(..., clusters=)` resample whole clusters
|
|
33
|
+
(patients, documents, sites) for every interval and paired baseline test; in a simulation with 60 patients
|
|
34
|
+
of 10 scans, 95% intervals covered the truth 93% of the time against 77% for ordinary intervals.
|
|
35
|
+
- **`es.fairness_report`**: per-group selection rate, TPR, FPR, PPV, accuracy (Wilson), ROC AUC (DeLong) and
|
|
36
|
+
calibration-in-the-large; demographic parity difference / ratio, equalized odds, equal opportunity and
|
|
37
|
+
predictive parity gaps with bootstrap intervals; intersectional groups; Fisher tests against a reference
|
|
38
|
+
group, Holm-adjusted. Gap values identical to Fairlearn's.
|
|
39
|
+
- **Survival metrics**: `concordance_index` (Harrell; Uno's IPCW with `ipcw=True`, optional bootstrap
|
|
40
|
+
interval), `time_dependent_auc`, `brier_score_survival`, `integrated_brier_score`, `kaplan_meier`;
|
|
41
|
+
identical to scikit-survival (to 1e-15), Harrell's C 17× faster on 100,000 subjects.
|
|
42
|
+
- **GitHub Action** (`uses: mkcs28/evalsuite-python@v1.2.0`): evaluates a predictions file on every pull
|
|
43
|
+
request, comments metrics with intervals and paired tests (updating its own comment), writes the job summary
|
|
44
|
+
and can fail on a significant regression. The CLI gains `evaluate --baseline-pred/--baseline-prob
|
|
45
|
+
--clusters --ci --fail-on-regression`.
|
|
46
|
+
- CI builds and tests the R package on Windows; an upgrade banner in the README for users of older versions.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
- `EvaluationResult.to_html()` shows intervals and baseline tests, like the Markdown and LaTeX exports.
|
|
50
|
+
- Per-metric benchmark table (all registered metrics) re-run on 1.2.0.
|
|
51
|
+
|
|
52
|
+
## [1.1.2] - 2026-11-26
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
- **Staying current**: on import, a one-line notice (at most once a day) when a newer release is on PyPI. The
|
|
56
|
+
lookup runs in a background thread with a one-day cache, so importing never waits on the network; it is off in
|
|
57
|
+
CI and under pytest, and `EVALSUITE_NO_UPDATE_CHECK=1` turns it off. `evalsuite upgrade` / `es.upgrade()`
|
|
58
|
+
install the latest release into the running Python environment; `evalsuite version --check` and
|
|
59
|
+
`es.check_for_update()` report installed and latest versions. The Rust CLI gains `evalsuite upgrade`
|
|
60
|
+
(`cargo install evalsuite-cli`). pip itself never upgrades an installed package unless asked, and no package
|
|
61
|
+
can change that.
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
- READMEs refreshed: a "What's new" summary, upgrade instructions, sections for intervals and baselines, report
|
|
65
|
+
cards, leaderboards, monitoring, integrations and the JavaScript / C / R / Julia bindings; the main
|
|
66
|
+
performance table and BENCHMARKS.md re-measured on 1.1.2 (78 of 78 comparisons agree with the reference
|
|
67
|
+
libraries, 77 faster, 3.86× geometric mean).
|
|
68
|
+
- `evaluate()` regression intervals: one pass of dot products for MAE, MSE, RMSE and mean bias instead of a
|
|
69
|
+
temporary array per metric (regression `evaluate()` with intervals 2× faster at 1,000,000 samples, now ahead
|
|
70
|
+
of scikit-learn again).
|
|
71
|
+
|
|
9
72
|
## [1.1.1] - 2026-11-26
|
|
10
73
|
|
|
11
74
|
A hardening and speed release: every metric of the engine's JSON bridge (npm, C, R, Julia) was fuzzed with
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evalsuite-python
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Intended Audience :: Science/Research
|
|
6
6
|
Classifier: Intended Audience :: Healthcare Industry
|
|
@@ -26,11 +26,14 @@ Requires-Dist: pandas>=1.4
|
|
|
26
26
|
Requires-Dist: matplotlib>=3.5 ; extra == 'all'
|
|
27
27
|
Requires-Dist: pillow>=9 ; extra == 'all'
|
|
28
28
|
Requires-Dist: nltk>=3.8 ; extra == 'all'
|
|
29
|
+
Requires-Dist: datasets>=2.14 ; extra == 'benchmarks'
|
|
29
30
|
Requires-Dist: pytest>=7 ; extra == 'dev'
|
|
30
31
|
Requires-Dist: pytest-cov>=4 ; extra == 'dev'
|
|
31
32
|
Requires-Dist: hypothesis>=6.80 ; extra == 'dev'
|
|
32
33
|
Requires-Dist: scikit-learn>=1.4 ; extra == 'dev'
|
|
33
34
|
Requires-Dist: statsmodels>=0.13 ; extra == 'dev'
|
|
35
|
+
Requires-Dist: scikit-survival>=0.22 ; python_full_version >= '3.10' and extra == 'dev'
|
|
36
|
+
Requires-Dist: fairlearn>=0.10 ; extra == 'dev'
|
|
34
37
|
Requires-Dist: matplotlib>=3.5 ; extra == 'dev'
|
|
35
38
|
Requires-Dist: pillow>=9 ; extra == 'dev'
|
|
36
39
|
Requires-Dist: pycocotools>=2.0.7 ; extra == 'dev'
|
|
@@ -60,6 +63,7 @@ Requires-Dist: scikit-learn>=1.2 ; extra == 'sklearn'
|
|
|
60
63
|
Requires-Dist: pillow>=9 ; extra == 'vision'
|
|
61
64
|
Requires-Dist: wandb>=0.16 ; extra == 'wandb'
|
|
62
65
|
Provides-Extra: all
|
|
66
|
+
Provides-Extra: benchmarks
|
|
63
67
|
Provides-Extra: dev
|
|
64
68
|
Provides-Extra: docx
|
|
65
69
|
Provides-Extra: keras
|
|
@@ -97,22 +101,35 @@ Project-URL: Source, https://github.com/mkcs28/evalsuite-python
|
|
|
97
101
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
98
102
|
evaluation into one consistent, validated, documented framework.
|
|
99
103
|
|
|
100
|
-
> **
|
|
101
|
-
>
|
|
102
|
-
|
|
103
|
-
>
|
|
104
|
-
>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
> **On an older version? Upgrade once:** `pip install -U evalsuite-python`. From 1.1.2 on, EvalSuite tells you
|
|
105
|
+
> when a newer release is out (`evalsuite upgrade`).
|
|
106
|
+
|
|
107
|
+
> **Status: stable (1.2.0).** [Example notebooks](notebooks/README.md) (Colab) ·
|
|
108
|
+
> [in-browser tools](https://evalsuite-nine.vercel.app/tools) · [changelog](CHANGELOG.md)
|
|
109
|
+
|
|
110
|
+
**What's new**
|
|
111
|
+
|
|
112
|
+
- **1.2** — LLM evaluation and research-grade statistics: benchmark presets (GSM8K, MMLU, ARC, TruthfulQA,
|
|
113
|
+
HumanEval) for the leaderboard, a judge report (win rates, position / length / self-preference bias, agreement
|
|
114
|
+
with humans), rubric reports, an end-to-end RAG report that blames each failure on retrieval or generation, a
|
|
115
|
+
single-file HTML report; sample-size and power planning, cluster-bootstrap intervals (`clusters=`), a fairness
|
|
116
|
+
report (gaps with intervals, intersectional groups) and survival metrics (C-index, time-dependent AUC,
|
|
117
|
+
integrated Brier score); a GitHub Action that comments results on pull requests.
|
|
118
|
+
- **1.1.2** — a once-a-day notice when a newer release exists, and a one-command upgrade (`evalsuite upgrade`
|
|
119
|
+
or `es.upgrade()`); every README refreshed with current benchmark numbers.
|
|
120
|
+
- **1.1.1** — hardening: every engine metric fuzzed (no crashes on malformed input), NaN / Infinity preserved in
|
|
121
|
+
every language, bug fixes in `evaluate()`'s task detection, 2.4–6× faster engine bootstrap intervals.
|
|
122
|
+
- **1.1** — the engine everywhere: clinical, calibration, retrieval and segmentation metrics with confidence
|
|
123
|
+
intervals in JavaScript, C, R and Julia; an R source package; Colab notebooks; BLEU and HD95 faster than the
|
|
124
|
+
Python path.
|
|
125
|
+
- **1.0** — `evaluate()` reports confidence intervals by default and tests against a baseline; an LLM
|
|
126
|
+
leaderboard that knows when models are tied; scikit-learn, Hugging Face, Keras, Lightning, MLflow and W&B
|
|
127
|
+
integrations; monitoring with drift alerts; TRIPOD+AI and model-card report cards; npm (WebAssembly), C, R
|
|
128
|
+
and Julia bindings.
|
|
129
|
+
- **0.8** — a full Rust edition on crates.io ([`evalsuite`](https://crates.io/crates/evalsuite)) and the
|
|
130
|
+
`evalsuite-cli` command. **0.6–0.7** — a compiled, multithreaded Rust core with identical results.
|
|
131
|
+
**0.5** — LLM systems (safety, robustness, agents, code, long context, efficiency). **0.1–0.4** —
|
|
132
|
+
classification, regression, clinical, statistics, vision and LLM evaluation.
|
|
116
133
|
|
|
117
134
|
## Installation
|
|
118
135
|
|
|
@@ -120,6 +137,12 @@ evaluation into one consistent, validated, documented framework.
|
|
|
120
137
|
pip install evalsuite-python
|
|
121
138
|
```
|
|
122
139
|
|
|
140
|
+
To move to the newest release later, run `evalsuite upgrade` (or `pip install -U evalsuite-python`). pip never
|
|
141
|
+
replaces an installed package on its own, so EvalSuite prints a one-line notice, at most once a day, when a
|
|
142
|
+
newer release is on PyPI; the check runs in the background and never slows `import evalsuite`
|
|
143
|
+
(`EVALSUITE_NO_UPDATE_CHECK=1` turns it off; it is always off in CI). `es.check_for_update()` and
|
|
144
|
+
`evalsuite version --check` report the installed and latest versions.
|
|
145
|
+
|
|
123
146
|
The package is installed as `evalsuite-python` and imported as `evalsuite`:
|
|
124
147
|
|
|
125
148
|
```python
|
|
@@ -146,7 +169,7 @@ and as a standalone command (`cargo install evalsuite-cli`):
|
|
|
146
169
|
|
|
147
170
|
```toml
|
|
148
171
|
[dependencies]
|
|
149
|
-
evalsuite = "
|
|
172
|
+
evalsuite = "1.1"
|
|
150
173
|
```
|
|
151
174
|
|
|
152
175
|
```rust
|
|
@@ -158,7 +181,28 @@ evalsuite evaluate preds.csv --y-true label --y-pred pred --y-prob score
|
|
|
158
181
|
```
|
|
159
182
|
|
|
160
183
|
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list, performance and the few
|
|
161
|
-
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command
|
|
184
|
+
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command
|
|
185
|
+
(`evalsuite upgrade` installs its latest release).
|
|
186
|
+
|
|
187
|
+
### JavaScript, C, R and Julia
|
|
188
|
+
|
|
189
|
+
One engine, the same numbers in every language ([bindings/README.md](bindings/README.md)):
|
|
190
|
+
|
|
191
|
+
```js
|
|
192
|
+
// npm install evalsuite@latest
|
|
193
|
+
const es = require("evalsuite");
|
|
194
|
+
es.evaluate("roc_auc", { y_true: [0, 0, 1, 1], y_prob: [0.1, 0.4, 0.35, 0.8], ci: "analytic" });
|
|
195
|
+
// { metric: "roc_auc", value: 0.75, ci_low: ..., ci_high: ..., ci_method: "delong" }
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
```r
|
|
199
|
+
library(evalsuite) # install.packages from the release tarball or R-universe
|
|
200
|
+
es_metric("f1", y_true = c(0, 1, 1, 0), y_pred = c(0, 1, 0, 0))
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
C (`evalsuite.h`, `-levalsuite_c`) and Julia (`EvalSuite.metric("f1"; y_true=..., y_pred=...)`) take the same
|
|
204
|
+
arguments. Metrics: classification, clinical, calibration, regression, text, retrieval, segmentation, drift
|
|
205
|
+
and the leaderboard, with `ci: "analytic"` or `"bootstrap"` intervals.
|
|
162
206
|
|
|
163
207
|
## Why EvalSuite
|
|
164
208
|
|
|
@@ -344,6 +388,162 @@ es.time_to_first_token(request_times=[0.0, 1.0], first_token_times=[0.21, 1.35])
|
|
|
344
388
|
es.inference_cost([1200, 800], [300, 150], input_price=3.0, output_price=15.0) # prices per 1M tokens
|
|
345
389
|
```
|
|
346
390
|
|
|
391
|
+
## Confidence intervals and baselines by default
|
|
392
|
+
|
|
393
|
+
```python
|
|
394
|
+
result = es.evaluate(y_true, new_pred, y_prob=new_prob, baseline_pred=old_pred, baseline_prob=old_prob)
|
|
395
|
+
print(result.summary())
|
|
396
|
+
# Random forest vs logistic regression, breast-cancer test split (notebooks/01):
|
|
397
|
+
# Accuracy 0.9430 (0.9049–0.9664) -0.0044 vs baseline (p=1.000, mcnemar-exact)
|
|
398
|
+
# ROC AUC 0.9833 (0.9637–1.0000) -0.0097 vs baseline (p=0.285, delong)
|
|
399
|
+
# Brier score 0.0375 (0.0216–0.0535) -0.0001 vs baseline (p=0.989, paired-bootstrap)
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Intervals are analytic by default (Wilson, DeLong, Student-t; no extra cost), `ci="bootstrap"` for any metric,
|
|
403
|
+
`ci=False` to turn them off; baseline tests are paired and Holm-adjusted.
|
|
404
|
+
|
|
405
|
+
## Report cards (TRIPOD+AI, model cards)
|
|
406
|
+
|
|
407
|
+
```python
|
|
408
|
+
card = es.report_card(y_true, y_prob, threshold=0.2, groups=site, group_name="site")
|
|
409
|
+
print(card.paragraph()) # results paragraph with intervals, ready for a paper
|
|
410
|
+
card.to_markdown()
|
|
411
|
+
card.to_latex()
|
|
412
|
+
# card.to_docx("performance.docx") # Word: pip install "evalsuite-python[docx]"
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
Discrimination, calibration, Brier score, threshold measures, net benefit and subgroup performance, plus the
|
|
416
|
+
TRIPOD+AI checklist; `standard="model-card"` fills a model card's quantitative sections.
|
|
417
|
+
|
|
418
|
+
## LLM leaderboards
|
|
419
|
+
|
|
420
|
+
```python
|
|
421
|
+
board = es.leaderboard({"model-a": "runs/a.jsonl", "model-b": "runs/b.jsonl"}, scorer="gsm8k")
|
|
422
|
+
print(board.summary()) # ranks shared when differences are not significant (McNemar, Holm)
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
Scorers (exact match, GSM8K, boxed, choice, numeric, ...), per-category tables, contamination and LLM-judge
|
|
426
|
+
position checks; also `evalsuite leaderboard runs/*.jsonl` and the [in-browser tool](https://evalsuite-nine.vercel.app/tools).
|
|
427
|
+
|
|
428
|
+
## Monitoring
|
|
429
|
+
|
|
430
|
+
```python
|
|
431
|
+
mon = es.Monitor(
|
|
432
|
+
window=1000, alerts={"roc_auc": ("<", 0.8), "psi": (">", 0.25)}, reference_scores=validation_probabilities
|
|
433
|
+
)
|
|
434
|
+
alerts = mon.update(y_true_batch, y_pred=pred_batch, y_prob=prob_batch)
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
Sliding-window metrics, PSI and Kolmogorov–Smirnov drift (also before labels arrive, with `observe`), alert
|
|
438
|
+
callbacks and `snapshot()` with intervals.
|
|
439
|
+
|
|
440
|
+
## Integrations
|
|
441
|
+
|
|
442
|
+
```python
|
|
443
|
+
from evalsuite import integrations as ei
|
|
444
|
+
|
|
445
|
+
cross_val_score(model, X, y, scoring=ei.sklearn_scorer("mcc"))
|
|
446
|
+
Trainer(..., compute_metrics=ei.hf_compute_metrics(["accuracy", "f1"]))
|
|
447
|
+
model.fit(X, y, callbacks=[ei.keras_callback(X_val, y_val)])
|
|
448
|
+
ei.log_mlflow(result)
|
|
449
|
+
ei.log_wandb(result)
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
## Planning a test set
|
|
453
|
+
|
|
454
|
+
```python
|
|
455
|
+
es.sample_size_two_proportions(0.80, 0.83, discordance=0.10) # items to detect +3 points between two models
|
|
456
|
+
es.sample_size_proportion(0.9, 0.02) # items for accuracy ± 2 points
|
|
457
|
+
es.sample_size_auc(0.85, prevalence=0.2, half_width=0.03) # positives and negatives for an AUC interval
|
|
458
|
+
es.power_two_proportions(500, 0.80, 0.83, discordance=0.10) # power with the items you have
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
## Clustered data
|
|
462
|
+
|
|
463
|
+
Several scans per patient, several questions per document or several sites make ordinary intervals too narrow.
|
|
464
|
+
Pass the cluster of each row and every interval and baseline test resamples whole clusters:
|
|
465
|
+
|
|
466
|
+
```python
|
|
467
|
+
patient = np.repeat(np.arange(40), 5) # 200 rows, 5 per patient
|
|
468
|
+
result = es.evaluate(y_true, y_pred, clusters=patient)
|
|
469
|
+
es.bootstrap_ci("roc_auc", y_true, y_prob=y_prob, clusters=patient)
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
## Fairness
|
|
473
|
+
|
|
474
|
+
```python
|
|
475
|
+
group = np.where(np.arange(200) % 3 == 0, "A", "B")
|
|
476
|
+
report = es.fairness_report(y_true, y_pred, y_prob, groups={"group": group})
|
|
477
|
+
print(report.summary()) # per-group rates with CIs, parity / equalized-odds gaps with CIs, Holm-adjusted tests
|
|
478
|
+
```
|
|
479
|
+
|
|
480
|
+
Several attributes give intersectional groups (`groups={"sex": sex, "age": age}`); gap definitions match
|
|
481
|
+
Fairlearn's.
|
|
482
|
+
|
|
483
|
+
## Survival analysis
|
|
484
|
+
|
|
485
|
+
```python
|
|
486
|
+
time = np.arange(1, 201) * 0.5
|
|
487
|
+
event = np.arange(200) % 4 != 0
|
|
488
|
+
risk = -time + np.sin(np.arange(200))
|
|
489
|
+
es.concordance_index(time, event, risk) # Harrell's C (ipcw=True: Uno's C)
|
|
490
|
+
es.time_dependent_auc(time, event, risk, [20, 40, 60]) # cumulative/dynamic AUC
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
`brier_score_survival` and `integrated_brier_score` take predicted survival probabilities. All agree with
|
|
494
|
+
scikit-survival to 1e-15 (Harrell's C is about 17× faster).
|
|
495
|
+
|
|
496
|
+
## LLM judges, rubrics and RAG
|
|
497
|
+
|
|
498
|
+
```python
|
|
499
|
+
judgements = [
|
|
500
|
+
{"model_a": "m1", "model_b": "m2", "verdict": "A", "verdict_swapped": "A", "length_a": 120, "length_b": 80},
|
|
501
|
+
{"model_a": "m2", "model_b": "m1", "verdict": "B", "verdict_swapped": "tie", "length_a": 60, "length_b": 150},
|
|
502
|
+
{"model_a": "m1", "model_b": "m2", "verdict": "tie", "verdict_swapped": "tie", "length_a": 90, "length_b": 95},
|
|
503
|
+
]
|
|
504
|
+
print(es.judge_report(judgements, n_resamples=200).summary())
|
|
505
|
+
# win rates, Bradley–Terry, position consistency, length bias, self-preference, agreement with humans
|
|
506
|
+
|
|
507
|
+
rag = es.rag_report(
|
|
508
|
+
[
|
|
509
|
+
{"retrieved": ["d1", "d7"], "relevant": ["d1"], "answer": "Paris", "reference": "Paris"},
|
|
510
|
+
{"retrieved": ["d3"], "relevant": ["d2"], "answer": "Rome", "reference": "Oslo"},
|
|
511
|
+
]
|
|
512
|
+
)
|
|
513
|
+
print(rag.summary()) # retrieval / grounding / answer metrics, and each failure blamed on a stage
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
Leaderboards know common benchmarks: `es.leaderboard(runs, benchmark="gsm8k", references=es.load_benchmark("gsm8k"))`
|
|
517
|
+
(also `mmlu`, `arc`, `truthfulqa`, `humaneval`; datasets via `pip install "evalsuite-python[benchmarks]"`).
|
|
518
|
+
|
|
519
|
+
## One HTML report
|
|
520
|
+
|
|
521
|
+
```python
|
|
522
|
+
page = es.html_report(
|
|
523
|
+
{"Test set": es.evaluate(y_true, y_pred, y_prob=y_prob), "Notes": "Model v3."},
|
|
524
|
+
title="Model evaluation",
|
|
525
|
+
path="report.html",
|
|
526
|
+
)
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
Any EvalSuite result, Matplotlib figure or Markdown text becomes a section of one self-contained file (no
|
|
530
|
+
scripts, no external requests).
|
|
531
|
+
|
|
532
|
+
## Evaluation in pull requests
|
|
533
|
+
|
|
534
|
+
```yaml
|
|
535
|
+
- uses: mkcs28/evalsuite-python@v1.2.0
|
|
536
|
+
with:
|
|
537
|
+
predictions: predictions.csv
|
|
538
|
+
y-true: label
|
|
539
|
+
y-pred: pred
|
|
540
|
+
baseline-pred: base_pred # e.g. the main branch's predictions
|
|
541
|
+
fail-on-regression: "true"
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
The action comments metrics with intervals and paired tests on the pull request and fails it on a significant
|
|
545
|
+
regression ([full example](examples/evalsuite-action.yml)).
|
|
546
|
+
|
|
347
547
|
## Classification report
|
|
348
548
|
|
|
349
549
|
```python
|
|
@@ -392,7 +592,9 @@ evalsuite segmentation true_masks.npy pred_masks.npy --ignore-index 255 --plot p
|
|
|
392
592
|
evalsuite detection instances_val.json detections.json --plot pr_curves.png
|
|
393
593
|
evalsuite metrics --category clinical
|
|
394
594
|
evalsuite info classification.mcc
|
|
595
|
+
evalsuite leaderboard runs/*.jsonl --scorer gsm8k -o leaderboard.md
|
|
395
596
|
evalsuite benchmark --quick
|
|
597
|
+
evalsuite upgrade # install the latest release
|
|
396
598
|
```
|
|
397
599
|
|
|
398
600
|
Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` or the `-o` extension
|
|
@@ -400,49 +602,49 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
400
602
|
|
|
401
603
|
## Performance
|
|
402
604
|
|
|
403
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite
|
|
404
|
-
NumPy 2.5, Linux x86_64). **
|
|
405
|
-
difference 2.5e-14),
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
segmentation; 1,000 images for detection and 50 for Hausdorff;
|
|
409
|
-
alphabetical order:
|
|
605
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 1.1.2, Python 3.13,
|
|
606
|
+
NumPy 2.5, Linux x86_64 with 2 cores). **Every one of the 78 comparisons agrees with the reference** (largest
|
|
607
|
+
difference 2.5e-14), 77 are faster (the other, Hochberg's correction at 100,000 p-values, is level at 0.98×),
|
|
608
|
+
and the geometric-mean speed-up across 27 cases at three sizes is **3.86×**. `evaluate()` now also computes
|
|
609
|
+
the default confidence intervals inside these timings and is still 18× faster than scikit-learn's separate
|
|
610
|
+
metric calls. At 1,000,000 samples (pixels for segmentation; 1,000 images for detection and 50 for Hausdorff;
|
|
611
|
+
10,000 examples for the LLM cases), in alphabetical order:
|
|
410
612
|
|
|
411
613
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
412
614
|
| --- | --- | ---: | ---: | ---: |
|
|
413
|
-
| 10 classes: macro F1 | scikit-learn |
|
|
414
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.
|
|
415
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
416
|
-
| binary: ROC AUC | scikit-learn |
|
|
417
|
-
| calibration: slope and intercept | statsmodels |
|
|
418
|
-
| clinical: diagnostic report (7 CIs) | statsmodels | 5.
|
|
419
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
420
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
421
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
422
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
423
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 7
|
|
424
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
425
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn |
|
|
426
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
427
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.
|
|
428
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
429
|
-
| statistics: Welch t-test | SciPy |
|
|
430
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
431
|
-
| systems: CodeBLEU n-gram terms (1000 programs) |
|
|
432
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
433
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy |
|
|
434
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
435
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
436
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
437
|
-
| text:
|
|
438
|
-
| text:
|
|
439
|
-
| text:
|
|
440
|
-
|
|
441
|
-
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics
|
|
442
|
-
statistics functions at 10,000 and 100,000 samples.
|
|
443
|
-
independent textbook formula and
|
|
444
|
-
comparisons agree**, and against the libraries the geometric-mean
|
|
445
|
-
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
615
|
+
| 10 classes: macro F1 | scikit-learn | 8.6 | 35.6 | **4.16×** |
|
|
616
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.6 | 3.2 | **2.01×** |
|
|
617
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 9.2 | 172.0 | **18.70×** |
|
|
618
|
+
| binary: ROC AUC | scikit-learn | 84.0 | 211.6 | **2.52×** |
|
|
619
|
+
| calibration: slope and intercept | statsmodels | 218.2 | 1217.0 | **5.58×** |
|
|
620
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 5.5 | 6.5 | **1.17×** |
|
|
621
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 19.5 | 76.4 | **3.91×** |
|
|
622
|
+
| decision curve: 99 thresholds | NumPy loop | 169.5 | 196.8 | **1.16×** |
|
|
623
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 40.2 | 831.8 | **20.71×** |
|
|
624
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 77.4 | 96.0 | **1.24×** |
|
|
625
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 9.7 | 11.4 | **1.18×** |
|
|
626
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 106.7 | 777.2 | **7.28×** |
|
|
627
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 34.9 | 72.2 | **2.07×** |
|
|
628
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 7.6 | 18.5 | **2.43×** |
|
|
629
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.3 | **15.93×** |
|
|
630
|
+
| statistics: Mann–Whitney U | SciPy | 127.5 | 385.5 | **3.02×** |
|
|
631
|
+
| statistics: Welch t-test | SciPy | 5.4 | 8.1 | **1.50×** |
|
|
632
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 133.2 | 295.5 | **2.22×** |
|
|
633
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | – | 435.4 | – | – |
|
|
634
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 181.8 | 242.6 | **1.33×** |
|
|
635
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 6.3 | 7.5 | **1.20×** |
|
|
636
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 127.6 | 285.0 | **2.23×** |
|
|
637
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 9.0 | 15.3 | **1.71×** |
|
|
638
|
+
| systems: maintainability index (1000 programs) | radon | 118.3 | 131.9 | **1.11×** |
|
|
639
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 92.4 | 493.8 | **5.34×** |
|
|
640
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 219.5 | 889.0 | **4.05×** |
|
|
641
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 266.7 | 2399.8 | **9.00×** |
|
|
642
|
+
|
|
643
|
+
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, re-run on 1.2.0): all 225 registered
|
|
644
|
+
metrics and statistics functions at 10,000 and 100,000 samples. 82 are compared with a reference library, 118
|
|
645
|
+
with an independent textbook formula and 25 (learned, judge-dependent, randomised, or whose reference library was
|
|
646
|
+
not installed) are timed alone; **all 200 comparisons agree**, and against the libraries the geometric-mean
|
|
647
|
+
speed-up is **5.50×** (164 of 164 measurements faster). Per-metric table in BENCHMARKS.md.
|
|
446
648
|
|
|
447
649
|
**Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
|
|
448
650
|
CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
|