evalsuite-python 1.1.1__tar.gz → 1.1.2__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.1.2}/CHANGELOG.md +20 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/PKG-INFO +150 -56
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/README.md +149 -55
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/Cargo.lock +6 -6
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/Cargo.toml +1 -1
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/__init__.py +13 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/_evalci.py +30 -12
- evalsuite_python-1.1.2/src/evalsuite/_update.py +170 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/cli/main.py +43 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/version.py +1 -1
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/integration/test_readme_examples.py +20 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/integration/test_repo_hygiene.py +3 -0
- evalsuite_python-1.1.2/tests/test_update.py +76 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/CONTRIBUTING.md +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/LICENSE +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/LICENSE-APACHE +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/pyproject.toml +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/Cargo.toml +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/README.md +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/agreement.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/coco.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/curve.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/groups.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/hash.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/lib.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/meteor.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/permutation.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/qa.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/ranks.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/resample.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/surface.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/ter.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-core/src/text.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-py/Cargo.toml +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/rust/evalsuite-py/src/lib.rs +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/__main__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/_bench_metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/_lazy.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/_native.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/api.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/benchmarks.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/calibration.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/cards.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/classification/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/classification/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/classification/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/cli/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/clinical/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/clinical/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/clinical/report.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/context.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/exceptions.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/export.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/registry.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/result.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/types.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/core/validation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/harness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/integrations.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/agents.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/code.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/efficiency.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/longcontext.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/multilingual.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/robustness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/safety.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/llmsys/uncertainty.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/monitor.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/plot.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/py.typed +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/regression/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/regression/metrics.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/reporting.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/_resolve.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/compare.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/effect.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/hypothesis.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/intervals.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/paired.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/stats/results.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/_common.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/factuality.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/generation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/judge.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/qa.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/rag.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/reasoning.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/report.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/retrieval.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/semantic.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/spice.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/text/structured.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/vision/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/vision/detection.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/src/evalsuite/vision/segmentation.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/classification/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/classification/test_against_sklearn.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/clinical/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/clinical/test_outputs.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/clinical/test_v020.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/conftest.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/integration/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/integration/test_qa.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_fast_text.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_hardening.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_safety_robustness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/output/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/output/test_benchmarks.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/output/test_cli.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/output/test_plot.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/output/test_reporting.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/regression/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/regression/test_against_sklearn.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/stats/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/stats/test_branches.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/stats/test_compare.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/stats/test_fast_paths.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/stats/test_reference.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_cards.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_harness.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_integrations.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_monitor.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_native.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/test_v111_fixes.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/text/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/text/test_against_references.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/text/test_text_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/text/test_v040.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/unit/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/unit/test_core.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/unit/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/vision/__init__.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/vision/test_detection.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/vision/test_edges.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/vision/test_outputs.py +0 -0
- {evalsuite_python-1.1.1 → evalsuite_python-1.1.2}/tests/vision/test_segmentation.py +0 -0
|
@@ -6,6 +6,26 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.1.2] - 2026-11-26
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **Staying current**: on import, a one-line notice (at most once a day) when a newer release is on PyPI. The
|
|
13
|
+
lookup runs in a background thread with a one-day cache, so importing never waits on the network; it is off in
|
|
14
|
+
CI and under pytest, and `EVALSUITE_NO_UPDATE_CHECK=1` turns it off. `evalsuite upgrade` / `es.upgrade()`
|
|
15
|
+
install the latest release into the running Python environment; `evalsuite version --check` and
|
|
16
|
+
`es.check_for_update()` report installed and latest versions. The Rust CLI gains `evalsuite upgrade`
|
|
17
|
+
(`cargo install evalsuite-cli`). pip itself never upgrades an installed package unless asked, and no package
|
|
18
|
+
can change that.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- READMEs refreshed: a "What's new" summary, upgrade instructions, sections for intervals and baselines, report
|
|
22
|
+
cards, leaderboards, monitoring, integrations and the JavaScript / C / R / Julia bindings; the main
|
|
23
|
+
performance table and BENCHMARKS.md re-measured on 1.1.2 (78 of 78 comparisons agree with the reference
|
|
24
|
+
libraries, 77 faster, 3.86× geometric mean).
|
|
25
|
+
- `evaluate()` regression intervals: one pass of dot products for MAE, MSE, RMSE and mean bias instead of a
|
|
26
|
+
temporary array per metric (regression `evaluate()` with intervals 2× faster at 1,000,000 samples, now ahead
|
|
27
|
+
of scikit-learn again).
|
|
28
|
+
|
|
9
29
|
## [1.1.1] - 2026-11-26
|
|
10
30
|
|
|
11
31
|
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.1.
|
|
3
|
+
Version: 1.1.2
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Intended Audience :: Science/Research
|
|
6
6
|
Classifier: Intended Audience :: Healthcare Industry
|
|
@@ -97,22 +97,26 @@ Project-URL: Source, https://github.com/mkcs28/evalsuite-python
|
|
|
97
97
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
98
98
|
evaluation into one consistent, validated, documented framework.
|
|
99
99
|
|
|
100
|
-
> **Status: stable (1.1.
|
|
101
|
-
>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
100
|
+
> **Status: stable (1.1.2).** [Example notebooks](notebooks/README.md) (Colab) ·
|
|
101
|
+
> [in-browser tools](https://evalsuite-nine.vercel.app/tools) · [changelog](CHANGELOG.md)
|
|
102
|
+
|
|
103
|
+
**What's new**
|
|
104
|
+
|
|
105
|
+
- **1.1.2** — a once-a-day notice when a newer release exists, and a one-command upgrade (`evalsuite upgrade`
|
|
106
|
+
or `es.upgrade()`); every README refreshed with current benchmark numbers.
|
|
107
|
+
- **1.1.1** — hardening: every engine metric fuzzed (no crashes on malformed input), NaN / Infinity preserved in
|
|
108
|
+
every language, bug fixes in `evaluate()`'s task detection, 2.4–6× faster engine bootstrap intervals.
|
|
109
|
+
- **1.1** — the engine everywhere: clinical, calibration, retrieval and segmentation metrics with confidence
|
|
110
|
+
intervals in JavaScript, C, R and Julia; an R source package; Colab notebooks; BLEU and HD95 faster than the
|
|
111
|
+
Python path.
|
|
112
|
+
- **1.0** — `evaluate()` reports confidence intervals by default and tests against a baseline; an LLM
|
|
113
|
+
leaderboard that knows when models are tied; scikit-learn, Hugging Face, Keras, Lightning, MLflow and W&B
|
|
114
|
+
integrations; monitoring with drift alerts; TRIPOD+AI and model-card report cards; npm (WebAssembly), C, R
|
|
115
|
+
and Julia bindings.
|
|
116
|
+
- **0.8** — a full Rust edition on crates.io ([`evalsuite`](https://crates.io/crates/evalsuite)) and the
|
|
117
|
+
`evalsuite-cli` command. **0.6–0.7** — a compiled, multithreaded Rust core with identical results.
|
|
118
|
+
**0.5** — LLM systems (safety, robustness, agents, code, long context, efficiency). **0.1–0.4** —
|
|
119
|
+
classification, regression, clinical, statistics, vision and LLM evaluation.
|
|
116
120
|
|
|
117
121
|
## Installation
|
|
118
122
|
|
|
@@ -120,6 +124,12 @@ evaluation into one consistent, validated, documented framework.
|
|
|
120
124
|
pip install evalsuite-python
|
|
121
125
|
```
|
|
122
126
|
|
|
127
|
+
To move to the newest release later, run `evalsuite upgrade` (or `pip install -U evalsuite-python`). pip never
|
|
128
|
+
replaces an installed package on its own, so EvalSuite prints a one-line notice, at most once a day, when a
|
|
129
|
+
newer release is on PyPI; the check runs in the background and never slows `import evalsuite`
|
|
130
|
+
(`EVALSUITE_NO_UPDATE_CHECK=1` turns it off; it is always off in CI). `es.check_for_update()` and
|
|
131
|
+
`evalsuite version --check` report the installed and latest versions.
|
|
132
|
+
|
|
123
133
|
The package is installed as `evalsuite-python` and imported as `evalsuite`:
|
|
124
134
|
|
|
125
135
|
```python
|
|
@@ -146,7 +156,7 @@ and as a standalone command (`cargo install evalsuite-cli`):
|
|
|
146
156
|
|
|
147
157
|
```toml
|
|
148
158
|
[dependencies]
|
|
149
|
-
evalsuite = "
|
|
159
|
+
evalsuite = "1.1"
|
|
150
160
|
```
|
|
151
161
|
|
|
152
162
|
```rust
|
|
@@ -158,7 +168,28 @@ evalsuite evaluate preds.csv --y-true label --y-pred pred --y-prob score
|
|
|
158
168
|
```
|
|
159
169
|
|
|
160
170
|
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
|
|
171
|
+
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command
|
|
172
|
+
(`evalsuite upgrade` installs its latest release).
|
|
173
|
+
|
|
174
|
+
### JavaScript, C, R and Julia
|
|
175
|
+
|
|
176
|
+
One engine, the same numbers in every language ([bindings/README.md](bindings/README.md)):
|
|
177
|
+
|
|
178
|
+
```js
|
|
179
|
+
// npm install evalsuite@latest
|
|
180
|
+
const es = require("evalsuite");
|
|
181
|
+
es.evaluate("roc_auc", { y_true: [0, 0, 1, 1], y_prob: [0.1, 0.4, 0.35, 0.8], ci: "analytic" });
|
|
182
|
+
// { metric: "roc_auc", value: 0.75, ci_low: ..., ci_high: ..., ci_method: "delong" }
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
```r
|
|
186
|
+
library(evalsuite) # install.packages from the release tarball or R-universe
|
|
187
|
+
es_metric("f1", y_true = c(0, 1, 1, 0), y_pred = c(0, 1, 0, 0))
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
C (`evalsuite.h`, `-levalsuite_c`) and Julia (`EvalSuite.metric("f1"; y_true=..., y_pred=...)`) take the same
|
|
191
|
+
arguments. Metrics: classification, clinical, calibration, regression, text, retrieval, segmentation, drift
|
|
192
|
+
and the leaderboard, with `ci: "analytic"` or `"bootstrap"` intervals.
|
|
162
193
|
|
|
163
194
|
## Why EvalSuite
|
|
164
195
|
|
|
@@ -344,6 +375,67 @@ es.time_to_first_token(request_times=[0.0, 1.0], first_token_times=[0.21, 1.35])
|
|
|
344
375
|
es.inference_cost([1200, 800], [300, 150], input_price=3.0, output_price=15.0) # prices per 1M tokens
|
|
345
376
|
```
|
|
346
377
|
|
|
378
|
+
## Confidence intervals and baselines by default
|
|
379
|
+
|
|
380
|
+
```python
|
|
381
|
+
result = es.evaluate(y_true, new_pred, y_prob=new_prob, baseline_pred=old_pred, baseline_prob=old_prob)
|
|
382
|
+
print(result.summary())
|
|
383
|
+
# Random forest vs logistic regression, breast-cancer test split (notebooks/01):
|
|
384
|
+
# Accuracy 0.9430 (0.9049–0.9664) -0.0044 vs baseline (p=1.000, mcnemar-exact)
|
|
385
|
+
# ROC AUC 0.9833 (0.9637–1.0000) -0.0097 vs baseline (p=0.285, delong)
|
|
386
|
+
# Brier score 0.0375 (0.0216–0.0535) -0.0001 vs baseline (p=0.989, paired-bootstrap)
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
Intervals are analytic by default (Wilson, DeLong, Student-t; no extra cost), `ci="bootstrap"` for any metric,
|
|
390
|
+
`ci=False` to turn them off; baseline tests are paired and Holm-adjusted.
|
|
391
|
+
|
|
392
|
+
## Report cards (TRIPOD+AI, model cards)
|
|
393
|
+
|
|
394
|
+
```python
|
|
395
|
+
card = es.report_card(y_true, y_prob, threshold=0.2, groups=site, group_name="site")
|
|
396
|
+
print(card.paragraph()) # results paragraph with intervals, ready for a paper
|
|
397
|
+
card.to_markdown()
|
|
398
|
+
card.to_latex()
|
|
399
|
+
# card.to_docx("performance.docx") # Word: pip install "evalsuite-python[docx]"
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Discrimination, calibration, Brier score, threshold measures, net benefit and subgroup performance, plus the
|
|
403
|
+
TRIPOD+AI checklist; `standard="model-card"` fills a model card's quantitative sections.
|
|
404
|
+
|
|
405
|
+
## LLM leaderboards
|
|
406
|
+
|
|
407
|
+
```python
|
|
408
|
+
board = es.leaderboard({"model-a": "runs/a.jsonl", "model-b": "runs/b.jsonl"}, scorer="gsm8k")
|
|
409
|
+
print(board.summary()) # ranks shared when differences are not significant (McNemar, Holm)
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Scorers (exact match, GSM8K, boxed, choice, numeric, ...), per-category tables, contamination and LLM-judge
|
|
413
|
+
position checks; also `evalsuite leaderboard runs/*.jsonl` and the [in-browser tool](https://evalsuite-nine.vercel.app/tools).
|
|
414
|
+
|
|
415
|
+
## Monitoring
|
|
416
|
+
|
|
417
|
+
```python
|
|
418
|
+
mon = es.Monitor(
|
|
419
|
+
window=1000, alerts={"roc_auc": ("<", 0.8), "psi": (">", 0.25)}, reference_scores=validation_probabilities
|
|
420
|
+
)
|
|
421
|
+
alerts = mon.update(y_true_batch, y_pred=pred_batch, y_prob=prob_batch)
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
Sliding-window metrics, PSI and Kolmogorov–Smirnov drift (also before labels arrive, with `observe`), alert
|
|
425
|
+
callbacks and `snapshot()` with intervals.
|
|
426
|
+
|
|
427
|
+
## Integrations
|
|
428
|
+
|
|
429
|
+
```python
|
|
430
|
+
from evalsuite import integrations as ei
|
|
431
|
+
|
|
432
|
+
cross_val_score(model, X, y, scoring=ei.sklearn_scorer("mcc"))
|
|
433
|
+
Trainer(..., compute_metrics=ei.hf_compute_metrics(["accuracy", "f1"]))
|
|
434
|
+
model.fit(X, y, callbacks=[ei.keras_callback(X_val, y_val)])
|
|
435
|
+
ei.log_mlflow(result)
|
|
436
|
+
ei.log_wandb(result)
|
|
437
|
+
```
|
|
438
|
+
|
|
347
439
|
## Classification report
|
|
348
440
|
|
|
349
441
|
```python
|
|
@@ -392,7 +484,9 @@ evalsuite segmentation true_masks.npy pred_masks.npy --ignore-index 255 --plot p
|
|
|
392
484
|
evalsuite detection instances_val.json detections.json --plot pr_curves.png
|
|
393
485
|
evalsuite metrics --category clinical
|
|
394
486
|
evalsuite info classification.mcc
|
|
487
|
+
evalsuite leaderboard runs/*.jsonl --scorer gsm8k -o leaderboard.md
|
|
395
488
|
evalsuite benchmark --quick
|
|
489
|
+
evalsuite upgrade # install the latest release
|
|
396
490
|
```
|
|
397
491
|
|
|
398
492
|
Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` or the `-o` extension
|
|
@@ -400,46 +494,46 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
400
494
|
|
|
401
495
|
## Performance
|
|
402
496
|
|
|
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:
|
|
497
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 1.1.2, Python 3.13,
|
|
498
|
+
NumPy 2.5, Linux x86_64 with 2 cores). **Every one of the 78 comparisons agrees with the reference** (largest
|
|
499
|
+
difference 2.5e-14), 77 are faster (the other, Hochberg's correction at 100,000 p-values, is level at 0.98×),
|
|
500
|
+
and the geometric-mean speed-up across 27 cases at three sizes is **3.86×**. `evaluate()` now also computes
|
|
501
|
+
the default confidence intervals inside these timings and is still 18× faster than scikit-learn's separate
|
|
502
|
+
metric calls. At 1,000,000 samples (pixels for segmentation; 1,000 images for detection and 50 for Hausdorff;
|
|
503
|
+
10,000 examples for the LLM cases), in alphabetical order:
|
|
410
504
|
|
|
411
505
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
412
506
|
| --- | --- | ---: | ---: | ---: |
|
|
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. 86 are compared with a reference library, 118 with an
|
|
507
|
+
| 10 classes: macro F1 | scikit-learn | 8.6 | 35.6 | **4.16×** |
|
|
508
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.6 | 3.2 | **2.01×** |
|
|
509
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 9.2 | 172.0 | **18.70×** |
|
|
510
|
+
| binary: ROC AUC | scikit-learn | 84.0 | 211.6 | **2.52×** |
|
|
511
|
+
| calibration: slope and intercept | statsmodels | 218.2 | 1217.0 | **5.58×** |
|
|
512
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 5.5 | 6.5 | **1.17×** |
|
|
513
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 19.5 | 76.4 | **3.91×** |
|
|
514
|
+
| decision curve: 99 thresholds | NumPy loop | 169.5 | 196.8 | **1.16×** |
|
|
515
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 40.2 | 831.8 | **20.71×** |
|
|
516
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 77.4 | 96.0 | **1.24×** |
|
|
517
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 9.7 | 11.4 | **1.18×** |
|
|
518
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 106.7 | 777.2 | **7.28×** |
|
|
519
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 34.9 | 72.2 | **2.07×** |
|
|
520
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 7.6 | 18.5 | **2.43×** |
|
|
521
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.3 | **15.93×** |
|
|
522
|
+
| statistics: Mann–Whitney U | SciPy | 127.5 | 385.5 | **3.02×** |
|
|
523
|
+
| statistics: Welch t-test | SciPy | 5.4 | 8.1 | **1.50×** |
|
|
524
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 133.2 | 295.5 | **2.22×** |
|
|
525
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | – | 435.4 | – | – |
|
|
526
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 181.8 | 242.6 | **1.33×** |
|
|
527
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 6.3 | 7.5 | **1.20×** |
|
|
528
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 127.6 | 285.0 | **2.23×** |
|
|
529
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 9.0 | 15.3 | **1.71×** |
|
|
530
|
+
| systems: maintainability index (1000 programs) | radon | 118.3 | 131.9 | **1.11×** |
|
|
531
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 92.4 | 493.8 | **5.34×** |
|
|
532
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 219.5 | 889.0 | **4.05×** |
|
|
533
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 266.7 | 2399.8 | **9.00×** |
|
|
534
|
+
|
|
535
|
+
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, last full run with 0.7.1): all 225
|
|
536
|
+
registered metrics and statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
443
537
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
444
538
|
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.64×** (171 of 172
|
|
445
539
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
@@ -10,22 +10,26 @@
|
|
|
10
10
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
11
11
|
evaluation into one consistent, validated, documented framework.
|
|
12
12
|
|
|
13
|
-
> **Status: stable (1.1.
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
> **Status: stable (1.1.2).** [Example notebooks](notebooks/README.md) (Colab) ·
|
|
14
|
+
> [in-browser tools](https://evalsuite-nine.vercel.app/tools) · [changelog](CHANGELOG.md)
|
|
15
|
+
|
|
16
|
+
**What's new**
|
|
17
|
+
|
|
18
|
+
- **1.1.2** — a once-a-day notice when a newer release exists, and a one-command upgrade (`evalsuite upgrade`
|
|
19
|
+
or `es.upgrade()`); every README refreshed with current benchmark numbers.
|
|
20
|
+
- **1.1.1** — hardening: every engine metric fuzzed (no crashes on malformed input), NaN / Infinity preserved in
|
|
21
|
+
every language, bug fixes in `evaluate()`'s task detection, 2.4–6× faster engine bootstrap intervals.
|
|
22
|
+
- **1.1** — the engine everywhere: clinical, calibration, retrieval and segmentation metrics with confidence
|
|
23
|
+
intervals in JavaScript, C, R and Julia; an R source package; Colab notebooks; BLEU and HD95 faster than the
|
|
24
|
+
Python path.
|
|
25
|
+
- **1.0** — `evaluate()` reports confidence intervals by default and tests against a baseline; an LLM
|
|
26
|
+
leaderboard that knows when models are tied; scikit-learn, Hugging Face, Keras, Lightning, MLflow and W&B
|
|
27
|
+
integrations; monitoring with drift alerts; TRIPOD+AI and model-card report cards; npm (WebAssembly), C, R
|
|
28
|
+
and Julia bindings.
|
|
29
|
+
- **0.8** — a full Rust edition on crates.io ([`evalsuite`](https://crates.io/crates/evalsuite)) and the
|
|
30
|
+
`evalsuite-cli` command. **0.6–0.7** — a compiled, multithreaded Rust core with identical results.
|
|
31
|
+
**0.5** — LLM systems (safety, robustness, agents, code, long context, efficiency). **0.1–0.4** —
|
|
32
|
+
classification, regression, clinical, statistics, vision and LLM evaluation.
|
|
29
33
|
|
|
30
34
|
## Installation
|
|
31
35
|
|
|
@@ -33,6 +37,12 @@ evaluation into one consistent, validated, documented framework.
|
|
|
33
37
|
pip install evalsuite-python
|
|
34
38
|
```
|
|
35
39
|
|
|
40
|
+
To move to the newest release later, run `evalsuite upgrade` (or `pip install -U evalsuite-python`). pip never
|
|
41
|
+
replaces an installed package on its own, so EvalSuite prints a one-line notice, at most once a day, when a
|
|
42
|
+
newer release is on PyPI; the check runs in the background and never slows `import evalsuite`
|
|
43
|
+
(`EVALSUITE_NO_UPDATE_CHECK=1` turns it off; it is always off in CI). `es.check_for_update()` and
|
|
44
|
+
`evalsuite version --check` report the installed and latest versions.
|
|
45
|
+
|
|
36
46
|
The package is installed as `evalsuite-python` and imported as `evalsuite`:
|
|
37
47
|
|
|
38
48
|
```python
|
|
@@ -59,7 +69,7 @@ and as a standalone command (`cargo install evalsuite-cli`):
|
|
|
59
69
|
|
|
60
70
|
```toml
|
|
61
71
|
[dependencies]
|
|
62
|
-
evalsuite = "
|
|
72
|
+
evalsuite = "1.1"
|
|
63
73
|
```
|
|
64
74
|
|
|
65
75
|
```rust
|
|
@@ -71,7 +81,28 @@ evalsuite evaluate preds.csv --y-true label --y-pred pred --y-prob score
|
|
|
71
81
|
```
|
|
72
82
|
|
|
73
83
|
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list, performance and the few
|
|
74
|
-
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command
|
|
84
|
+
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command
|
|
85
|
+
(`evalsuite upgrade` installs its latest release).
|
|
86
|
+
|
|
87
|
+
### JavaScript, C, R and Julia
|
|
88
|
+
|
|
89
|
+
One engine, the same numbers in every language ([bindings/README.md](bindings/README.md)):
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
// npm install evalsuite@latest
|
|
93
|
+
const es = require("evalsuite");
|
|
94
|
+
es.evaluate("roc_auc", { y_true: [0, 0, 1, 1], y_prob: [0.1, 0.4, 0.35, 0.8], ci: "analytic" });
|
|
95
|
+
// { metric: "roc_auc", value: 0.75, ci_low: ..., ci_high: ..., ci_method: "delong" }
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```r
|
|
99
|
+
library(evalsuite) # install.packages from the release tarball or R-universe
|
|
100
|
+
es_metric("f1", y_true = c(0, 1, 1, 0), y_pred = c(0, 1, 0, 0))
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
C (`evalsuite.h`, `-levalsuite_c`) and Julia (`EvalSuite.metric("f1"; y_true=..., y_pred=...)`) take the same
|
|
104
|
+
arguments. Metrics: classification, clinical, calibration, regression, text, retrieval, segmentation, drift
|
|
105
|
+
and the leaderboard, with `ci: "analytic"` or `"bootstrap"` intervals.
|
|
75
106
|
|
|
76
107
|
## Why EvalSuite
|
|
77
108
|
|
|
@@ -257,6 +288,67 @@ es.time_to_first_token(request_times=[0.0, 1.0], first_token_times=[0.21, 1.35])
|
|
|
257
288
|
es.inference_cost([1200, 800], [300, 150], input_price=3.0, output_price=15.0) # prices per 1M tokens
|
|
258
289
|
```
|
|
259
290
|
|
|
291
|
+
## Confidence intervals and baselines by default
|
|
292
|
+
|
|
293
|
+
```python
|
|
294
|
+
result = es.evaluate(y_true, new_pred, y_prob=new_prob, baseline_pred=old_pred, baseline_prob=old_prob)
|
|
295
|
+
print(result.summary())
|
|
296
|
+
# Random forest vs logistic regression, breast-cancer test split (notebooks/01):
|
|
297
|
+
# Accuracy 0.9430 (0.9049–0.9664) -0.0044 vs baseline (p=1.000, mcnemar-exact)
|
|
298
|
+
# ROC AUC 0.9833 (0.9637–1.0000) -0.0097 vs baseline (p=0.285, delong)
|
|
299
|
+
# Brier score 0.0375 (0.0216–0.0535) -0.0001 vs baseline (p=0.989, paired-bootstrap)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Intervals are analytic by default (Wilson, DeLong, Student-t; no extra cost), `ci="bootstrap"` for any metric,
|
|
303
|
+
`ci=False` to turn them off; baseline tests are paired and Holm-adjusted.
|
|
304
|
+
|
|
305
|
+
## Report cards (TRIPOD+AI, model cards)
|
|
306
|
+
|
|
307
|
+
```python
|
|
308
|
+
card = es.report_card(y_true, y_prob, threshold=0.2, groups=site, group_name="site")
|
|
309
|
+
print(card.paragraph()) # results paragraph with intervals, ready for a paper
|
|
310
|
+
card.to_markdown()
|
|
311
|
+
card.to_latex()
|
|
312
|
+
# card.to_docx("performance.docx") # Word: pip install "evalsuite-python[docx]"
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
Discrimination, calibration, Brier score, threshold measures, net benefit and subgroup performance, plus the
|
|
316
|
+
TRIPOD+AI checklist; `standard="model-card"` fills a model card's quantitative sections.
|
|
317
|
+
|
|
318
|
+
## LLM leaderboards
|
|
319
|
+
|
|
320
|
+
```python
|
|
321
|
+
board = es.leaderboard({"model-a": "runs/a.jsonl", "model-b": "runs/b.jsonl"}, scorer="gsm8k")
|
|
322
|
+
print(board.summary()) # ranks shared when differences are not significant (McNemar, Holm)
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Scorers (exact match, GSM8K, boxed, choice, numeric, ...), per-category tables, contamination and LLM-judge
|
|
326
|
+
position checks; also `evalsuite leaderboard runs/*.jsonl` and the [in-browser tool](https://evalsuite-nine.vercel.app/tools).
|
|
327
|
+
|
|
328
|
+
## Monitoring
|
|
329
|
+
|
|
330
|
+
```python
|
|
331
|
+
mon = es.Monitor(
|
|
332
|
+
window=1000, alerts={"roc_auc": ("<", 0.8), "psi": (">", 0.25)}, reference_scores=validation_probabilities
|
|
333
|
+
)
|
|
334
|
+
alerts = mon.update(y_true_batch, y_pred=pred_batch, y_prob=prob_batch)
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Sliding-window metrics, PSI and Kolmogorov–Smirnov drift (also before labels arrive, with `observe`), alert
|
|
338
|
+
callbacks and `snapshot()` with intervals.
|
|
339
|
+
|
|
340
|
+
## Integrations
|
|
341
|
+
|
|
342
|
+
```python
|
|
343
|
+
from evalsuite import integrations as ei
|
|
344
|
+
|
|
345
|
+
cross_val_score(model, X, y, scoring=ei.sklearn_scorer("mcc"))
|
|
346
|
+
Trainer(..., compute_metrics=ei.hf_compute_metrics(["accuracy", "f1"]))
|
|
347
|
+
model.fit(X, y, callbacks=[ei.keras_callback(X_val, y_val)])
|
|
348
|
+
ei.log_mlflow(result)
|
|
349
|
+
ei.log_wandb(result)
|
|
350
|
+
```
|
|
351
|
+
|
|
260
352
|
## Classification report
|
|
261
353
|
|
|
262
354
|
```python
|
|
@@ -305,7 +397,9 @@ evalsuite segmentation true_masks.npy pred_masks.npy --ignore-index 255 --plot p
|
|
|
305
397
|
evalsuite detection instances_val.json detections.json --plot pr_curves.png
|
|
306
398
|
evalsuite metrics --category clinical
|
|
307
399
|
evalsuite info classification.mcc
|
|
400
|
+
evalsuite leaderboard runs/*.jsonl --scorer gsm8k -o leaderboard.md
|
|
308
401
|
evalsuite benchmark --quick
|
|
402
|
+
evalsuite upgrade # install the latest release
|
|
309
403
|
```
|
|
310
404
|
|
|
311
405
|
Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` or the `-o` extension
|
|
@@ -313,46 +407,46 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
313
407
|
|
|
314
408
|
## Performance
|
|
315
409
|
|
|
316
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite
|
|
317
|
-
NumPy 2.5, Linux x86_64). **
|
|
318
|
-
difference 2.5e-14),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
segmentation; 1,000 images for detection and 50 for Hausdorff;
|
|
322
|
-
alphabetical order:
|
|
410
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 1.1.2, Python 3.13,
|
|
411
|
+
NumPy 2.5, Linux x86_64 with 2 cores). **Every one of the 78 comparisons agrees with the reference** (largest
|
|
412
|
+
difference 2.5e-14), 77 are faster (the other, Hochberg's correction at 100,000 p-values, is level at 0.98×),
|
|
413
|
+
and the geometric-mean speed-up across 27 cases at three sizes is **3.86×**. `evaluate()` now also computes
|
|
414
|
+
the default confidence intervals inside these timings and is still 18× faster than scikit-learn's separate
|
|
415
|
+
metric calls. At 1,000,000 samples (pixels for segmentation; 1,000 images for detection and 50 for Hausdorff;
|
|
416
|
+
10,000 examples for the LLM cases), in alphabetical order:
|
|
323
417
|
|
|
324
418
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
325
419
|
| --- | --- | ---: | ---: | ---: |
|
|
326
|
-
| 10 classes: macro F1 | scikit-learn |
|
|
327
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.
|
|
328
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
329
|
-
| binary: ROC AUC | scikit-learn |
|
|
330
|
-
| calibration: slope and intercept | statsmodels |
|
|
331
|
-
| clinical: diagnostic report (7 CIs) | statsmodels | 5.
|
|
332
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
333
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
334
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
335
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
336
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 7
|
|
337
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
338
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn |
|
|
339
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
340
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.
|
|
341
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
342
|
-
| statistics: Welch t-test | SciPy |
|
|
343
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
344
|
-
| systems: CodeBLEU n-gram terms (1000 programs) |
|
|
345
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
346
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy |
|
|
347
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
348
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
349
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
350
|
-
| text:
|
|
351
|
-
| text:
|
|
352
|
-
| text:
|
|
353
|
-
|
|
354
|
-
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics
|
|
355
|
-
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
420
|
+
| 10 classes: macro F1 | scikit-learn | 8.6 | 35.6 | **4.16×** |
|
|
421
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.6 | 3.2 | **2.01×** |
|
|
422
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 9.2 | 172.0 | **18.70×** |
|
|
423
|
+
| binary: ROC AUC | scikit-learn | 84.0 | 211.6 | **2.52×** |
|
|
424
|
+
| calibration: slope and intercept | statsmodels | 218.2 | 1217.0 | **5.58×** |
|
|
425
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 5.5 | 6.5 | **1.17×** |
|
|
426
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 19.5 | 76.4 | **3.91×** |
|
|
427
|
+
| decision curve: 99 thresholds | NumPy loop | 169.5 | 196.8 | **1.16×** |
|
|
428
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 40.2 | 831.8 | **20.71×** |
|
|
429
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 77.4 | 96.0 | **1.24×** |
|
|
430
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 9.7 | 11.4 | **1.18×** |
|
|
431
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 106.7 | 777.2 | **7.28×** |
|
|
432
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 34.9 | 72.2 | **2.07×** |
|
|
433
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 7.6 | 18.5 | **2.43×** |
|
|
434
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.3 | **15.93×** |
|
|
435
|
+
| statistics: Mann–Whitney U | SciPy | 127.5 | 385.5 | **3.02×** |
|
|
436
|
+
| statistics: Welch t-test | SciPy | 5.4 | 8.1 | **1.50×** |
|
|
437
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 133.2 | 295.5 | **2.22×** |
|
|
438
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | – | 435.4 | – | – |
|
|
439
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 181.8 | 242.6 | **1.33×** |
|
|
440
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 6.3 | 7.5 | **1.20×** |
|
|
441
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 127.6 | 285.0 | **2.23×** |
|
|
442
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 9.0 | 15.3 | **1.71×** |
|
|
443
|
+
| systems: maintainability index (1000 programs) | radon | 118.3 | 131.9 | **1.11×** |
|
|
444
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 92.4 | 493.8 | **5.34×** |
|
|
445
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 219.5 | 889.0 | **4.05×** |
|
|
446
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 266.7 | 2399.8 | **9.00×** |
|
|
447
|
+
|
|
448
|
+
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, last full run with 0.7.1): all 225
|
|
449
|
+
registered metrics and statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
356
450
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
357
451
|
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.64×** (171 of 172
|
|
358
452
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
@@ -319,7 +319,7 @@ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
|
|
|
319
319
|
|
|
320
320
|
[[package]]
|
|
321
321
|
name = "evalsuite"
|
|
322
|
-
version = "1.1.
|
|
322
|
+
version = "1.1.2"
|
|
323
323
|
dependencies = [
|
|
324
324
|
"criterion",
|
|
325
325
|
"evalsuite-core",
|
|
@@ -334,14 +334,14 @@ dependencies = [
|
|
|
334
334
|
|
|
335
335
|
[[package]]
|
|
336
336
|
name = "evalsuite-capi"
|
|
337
|
-
version = "1.1.
|
|
337
|
+
version = "1.1.2"
|
|
338
338
|
dependencies = [
|
|
339
339
|
"evalsuite",
|
|
340
340
|
]
|
|
341
341
|
|
|
342
342
|
[[package]]
|
|
343
343
|
name = "evalsuite-cli"
|
|
344
|
-
version = "1.1.
|
|
344
|
+
version = "1.1.2"
|
|
345
345
|
dependencies = [
|
|
346
346
|
"clap",
|
|
347
347
|
"csv",
|
|
@@ -351,14 +351,14 @@ dependencies = [
|
|
|
351
351
|
|
|
352
352
|
[[package]]
|
|
353
353
|
name = "evalsuite-core"
|
|
354
|
-
version = "1.1.
|
|
354
|
+
version = "1.1.2"
|
|
355
355
|
dependencies = [
|
|
356
356
|
"rayon",
|
|
357
357
|
]
|
|
358
358
|
|
|
359
359
|
[[package]]
|
|
360
360
|
name = "evalsuite-py"
|
|
361
|
-
version = "1.1.
|
|
361
|
+
version = "1.1.2"
|
|
362
362
|
dependencies = [
|
|
363
363
|
"evalsuite-core",
|
|
364
364
|
"pyo3",
|
|
@@ -367,7 +367,7 @@ dependencies = [
|
|
|
367
367
|
|
|
368
368
|
[[package]]
|
|
369
369
|
name = "evalsuite-wasm"
|
|
370
|
-
version = "1.1.
|
|
370
|
+
version = "1.1.2"
|
|
371
371
|
dependencies = [
|
|
372
372
|
"evalsuite",
|
|
373
373
|
"js-sys",
|