evalsuite-python 0.7.0__tar.gz → 0.8.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-0.7.0 → evalsuite_python-0.8.0}/CHANGELOG.md +64 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/PKG-INFO +63 -40
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/README.md +62 -39
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/pyproject.toml +2 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/Cargo.lock +181 -2
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/Cargo.toml +1 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/README.md +2 -1
- evalsuite_python-0.8.0/rust/evalsuite-core/src/curve.rs +250 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/groups.rs +14 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/lib.rs +4 -0
- evalsuite_python-0.8.0/rust/evalsuite-core/src/permutation.rs +92 -0
- evalsuite_python-0.8.0/rust/evalsuite-core/src/qa.rs +97 -0
- evalsuite_python-0.8.0/rust/evalsuite-core/src/ranks.rs +99 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/resample.rs +3 -3
- evalsuite_python-0.8.0/rust/evalsuite-core/src/surface.rs +287 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-py/src/lib.rs +242 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/classification/metrics.py +11 -4
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/agents.py +6 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/safety.py +29 -5
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/_resolve.py +73 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/intervals.py +20 -3
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/qa.py +25 -2
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/reasoning.py +18 -5
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/version.py +1 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/vision/segmentation.py +17 -1
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/test_native.py +145 -1
- evalsuite_python-0.7.0/rust/evalsuite-core/src/curve.rs +0 -118
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/CONTRIBUTING.md +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/LICENSE +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/LICENSE-APACHE +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/Cargo.toml +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/agreement.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/coco.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/hash.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/meteor.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/ter.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/text.rs +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/rust/evalsuite-py/Cargo.toml +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/__main__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/_bench_metrics.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/_lazy.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/_native.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/api.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/benchmarks.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/calibration.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/classification/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/classification/_common.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/cli/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/cli/main.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/clinical/metrics.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/clinical/report.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/context.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/exceptions.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/export.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/registry.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/result.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/types.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/core/validation.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/_common.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/code.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/efficiency.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/longcontext.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/multilingual.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/robustness.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/uncertainty.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/plot.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/py.typed +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/regression/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/regression/metrics.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/reporting.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/compare.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/effect.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/hypothesis.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/paired.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/stats/results.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/_common.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/factuality.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/generation.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/judge.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/rag.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/report.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/retrieval.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/semantic.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/spice.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/text/structured.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/vision/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/src/evalsuite/vision/detection.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/classification/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/classification/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/clinical/test_outputs.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/clinical/test_v020.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/conftest.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/integration/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/integration/test_qa.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/integration/test_readme_examples.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/integration/test_repo_hygiene.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_edges.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_fast_text.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_hardening.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_safety_robustness.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/output/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/output/test_benchmarks.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/output/test_cli.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/output/test_plot.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/output/test_reporting.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/regression/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/regression/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/stats/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/stats/test_branches.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/stats/test_compare.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/stats/test_fast_paths.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/stats/test_reference.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/text/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/text/test_against_references.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/text/test_text_edges.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/text/test_v040.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/unit/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/unit/test_core.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/unit/test_edges.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/vision/__init__.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/vision/test_detection.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/vision/test_edges.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/vision/test_outputs.py +0 -0
- {evalsuite_python-0.7.0 → evalsuite_python-0.8.0}/tests/vision/test_segmentation.py +0 -0
|
@@ -6,6 +6,70 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.8.0] - 2026-11-25
|
|
10
|
+
|
|
11
|
+
A full Rust edition of EvalSuite: the new [`evalsuite`](https://crates.io/crates/evalsuite) crate on crates.io.
|
|
12
|
+
The Python package is unchanged apart from its version number.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`evalsuite` crate** (pure Rust, `#![forbid(unsafe_code)]`): every registered metric and statistics function
|
|
16
|
+
of the Python package except `code_complexity` — classification, regression, clinical, calibration and
|
|
17
|
+
uncertainty, hypothesis tests and bootstrap intervals, retrieval, segmentation, detection, text generation,
|
|
18
|
+
QA and reasoning, embedding metrics, SPICE, LLM-judge statistics, structured outputs and tool use, RAG,
|
|
19
|
+
factuality, and the LLM-systems groups (agents, efficiency, long context, multilingual, robustness, safety,
|
|
20
|
+
code). It includes a built-in JSON Schema validator, PII detectors and an exact earth mover's distance.
|
|
21
|
+
- **Verified against the Python package**: `scripts/rust_fixtures.py` records 36,054 randomised cases (ties,
|
|
22
|
+
degenerate and invalid inputs included) and the crate's tests replay them all, to a relative tolerance of
|
|
23
|
+
1e-12 for most metrics (1e-9 for iterative ones); every input Python rejects is rejected too. CI runs them.
|
|
24
|
+
- **Publishing workflow** `.github/workflows/crates.yml`: on a version tag it tests, then publishes
|
|
25
|
+
`evalsuite-core` and `evalsuite` with the `CARGO_REGISTRY_TOKEN` secret, behind the `crates-io` environment.
|
|
26
|
+
Versions already on crates.io are skipped.
|
|
27
|
+
|
|
28
|
+
### Differences in the crate (documented in its README)
|
|
29
|
+
- `code_complexity` is not ported (it relies on CPython's `ast` and `tokenize`); `syntax_validity_rate` takes a
|
|
30
|
+
checker and `codebleu` takes the syntax / data-flow match scores from the caller's parser.
|
|
31
|
+
- METEOR, ROUGE and SPICE take optional stemmer / synonym functions instead of NLTK's Porter stemmer and WordNet.
|
|
32
|
+
- MAUVE's clustering, `add_typos` and WEAT's random re-partitions use the crate's seeded generator (the Python
|
|
33
|
+
package's `resampling="native"` stream), not NumPy's.
|
|
34
|
+
- `stats::compare` uses paired bootstrap tests throughout; surface distances support 2-D and 3-D masks.
|
|
35
|
+
|
|
36
|
+
## [0.7.1] - 2026-11-25
|
|
37
|
+
|
|
38
|
+
More statistics, vision and QA work in the compiled core. Every default result is unchanged (bit-identical to
|
|
39
|
+
the Python fallback, checked by `tests/test_native.py`); the new `resampling="native"` option of
|
|
40
|
+
`weat_effect_size` is opt-in.
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
- **Bootstrap of ROC AUC and average precision** (`bootstrap_ci`, `paired_bootstrap_test`, `compare`): every
|
|
44
|
+
resample's curve in one parallel compiled call. With unit weights a resample is one linear pass over the data's
|
|
45
|
+
presorted order with multiplicities (counts are exact integers, so no re-sort); with weights each resample is
|
|
46
|
+
gathered and stably sorted. The BCa jackknife reuses one presort for every left-out block. A 2,000-resample BCa
|
|
47
|
+
interval on 100,000 observations: 28.9 s → 5.9 s (4.0 s with `resampling="native"`, 2 cores).
|
|
48
|
+
- **DeLong test and DeLong AUC intervals**: one sort per model yields all three mid-rankings (exact
|
|
49
|
+
half-integers) instead of three SciPy `rankdata` calls: 3×.
|
|
50
|
+
- **QA metrics**: SQuAD answer normalisation, exact match and token F1 in the core for ASCII text (Unicode text
|
|
51
|
+
keeps Python's case mapping): `token_f1` 6.3×, `exact_match` 2.4×, and `majority_vote_accuracy` normalises in
|
|
52
|
+
one batch.
|
|
53
|
+
- **Hausdorff distance / HD95 / average symmetric surface distance**: surfaces extracted in parallel and exact
|
|
54
|
+
nearest-surface distances from a dense-bitmap shell search with an exact k-d tree fallback, using the same
|
|
55
|
+
arithmetic as the direct comparison: 1.2–6× faster on 2-D and 3-D masks, identical results.
|
|
56
|
+
- **Calibration** (`calibration_curve`, `expected_calibration_error`, and the metrics built on them): bin search
|
|
57
|
+
and the three weighted bin sums in one pass: 4.4× at 1,000,000 samples.
|
|
58
|
+
- **WEAT permutation test**: exact enumeration of the splits in the core (53×, identical p-values), and
|
|
59
|
+
opt-in `resampling="native"` for the random splits (26×; seeded and thread-count independent, a different
|
|
60
|
+
random stream from NumPy's).
|
|
61
|
+
- Tool-call metrics reuse one JSON encoder for their call keys (byte-identical keys, 1.3×).
|
|
62
|
+
- Parity tests for every new kernel, and the thread-count invariance test now covers the new parallel paths.
|
|
63
|
+
|
|
64
|
+
### Not ported
|
|
65
|
+
- No concordance / C-index metric exists in EvalSuite, so there was nothing to port (adding one is a feature,
|
|
66
|
+
not a port).
|
|
67
|
+
- Turning words into ids for the text metrics: a compiled interner gave no gain, because the Python 3.9 stable
|
|
68
|
+
ABI the wheels target has to copy every string, which costs as much as Python's dict lookup.
|
|
69
|
+
- EvalSuite has no fairness module; the multilingual per-language split is a dictionary lookup.
|
|
70
|
+
- Multiple-testing corrections (`adjust_pvalues`): a compiled sort was slower than NumPy 2's SIMD sort at
|
|
71
|
+
10,000–100,000 p-values and only marginally faster at 1,000,000, so the NumPy code stays.
|
|
72
|
+
|
|
9
73
|
## [0.7.0] - 2026-11-24
|
|
10
74
|
|
|
11
75
|
More of EvalSuite runs in the compiled Rust core. Every result is unchanged: each new kernel is bit-identical to
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evalsuite-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Intended Audience :: Science/Research
|
|
6
6
|
Classifier: Intended Audience :: Healthcare Industry
|
|
@@ -85,11 +85,15 @@ Project-URL: Source, https://github.com/mkcs28/evalsuite-python
|
|
|
85
85
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
86
86
|
evaluation into one consistent, validated, documented framework.
|
|
87
87
|
|
|
88
|
-
> **Status: stable (0.
|
|
88
|
+
> **Status: stable (0.8.0).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
|
|
89
89
|
> **0.6 adds a compiled Rust core**: same API and identical results, with text metrics, COCO evaluation and
|
|
90
90
|
> bootstrap resampling several times faster and multithreaded (prebuilt wheels for Linux, macOS and Windows).
|
|
91
91
|
> **0.7.0** moves ROC AUC / average precision (and so `evaluate()`), the LLM-systems consistency metrics,
|
|
92
92
|
> groundedness, citation coverage, toxicity, exposure and Elo into the core.
|
|
93
|
+
> **0.7.1** adds bootstrapped ROC AUC / AP (4–5× faster intervals), DeLong, QA exact match / F1,
|
|
94
|
+
> Hausdorff / surface distances, calibration and the WEAT permutation test.
|
|
95
|
+
> **0.8.0** adds a **full Rust edition on crates.io** ([`evalsuite`](https://crates.io/crates/evalsuite)): every
|
|
96
|
+
> metric except `code_complexity`, checked case by case against this package.
|
|
93
97
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
94
98
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
95
99
|
|
|
@@ -113,10 +117,26 @@ is needed. Anywhere else pip falls back to a pure-Python wheel that gives exactl
|
|
|
113
117
|
|
|
114
118
|
The core runs independent examples (sentences, images, classes, resamples) in parallel on all CPU cores; set
|
|
115
119
|
`EVALSUITE_NUM_THREADS` to cap the number of threads. Results never depend on the thread count: sums are always
|
|
116
|
-
taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_test`, `compare`)
|
|
117
|
-
`resampling="native"` to draw
|
|
118
|
-
`random_state` and faster on large inputs, but a different random stream from
|
|
119
|
-
interval endpoints differ slightly (statistically equivalent).
|
|
120
|
+
taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_test`, `compare`) and
|
|
121
|
+
`weat_effect_size` accept `resampling="native"` to draw resamples (or permutations) in the core (seeded
|
|
122
|
+
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
123
|
+
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
124
|
+
|
|
125
|
+
### Rust
|
|
126
|
+
|
|
127
|
+
The same metrics are available as a pure-Rust crate, verified against this package on 36,054 recorded cases:
|
|
128
|
+
|
|
129
|
+
```toml
|
|
130
|
+
[dependencies]
|
|
131
|
+
evalsuite = "0.8"
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
```rust
|
|
135
|
+
let acc = evalsuite::classification::accuracy(&[1, 0, 1, 1], &[1, 0, 0, 1], None).unwrap(); // 0.75
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list and the few documented
|
|
139
|
+
differences.
|
|
120
140
|
|
|
121
141
|
## Why EvalSuite
|
|
122
142
|
|
|
@@ -358,55 +378,57 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
358
378
|
|
|
359
379
|
## Performance
|
|
360
380
|
|
|
361
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.7.
|
|
381
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.7.1, Python 3.13,
|
|
362
382
|
NumPy 2.5, Linux x86_64). **Overall: 81 of 81 rows agree with the reference** (largest
|
|
363
|
-
difference 2.5e-14),
|
|
364
|
-
and
|
|
365
|
-
27 cases and three sizes is **4.
|
|
383
|
+
difference 2.5e-14), 80 are faster (the other, the maintainability index, runs Python's own `ast` parser
|
|
384
|
+
like radon and lands at 0.89× on this run), and the geometric-mean speed-up across all
|
|
385
|
+
27 cases and three sizes is **4.30×**. At 1,000,000 samples (pixels for
|
|
366
386
|
segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
|
|
367
387
|
alphabetical order:
|
|
368
388
|
|
|
369
389
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
370
390
|
| --- | --- | ---: | ---: | ---: |
|
|
371
|
-
| 10 classes: macro F1 | scikit-learn |
|
|
372
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.
|
|
373
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
374
|
-
| binary: ROC AUC | scikit-learn |
|
|
375
|
-
| calibration: slope and intercept | statsmodels |
|
|
376
|
-
| clinical: diagnostic report (7 CIs) | statsmodels |
|
|
377
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
378
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
379
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
380
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
381
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn |
|
|
382
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
383
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn |
|
|
384
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
385
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **12.
|
|
386
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
387
|
-
| statistics: Welch t-test | SciPy |
|
|
388
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
389
|
-
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu |
|
|
390
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
391
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 8.
|
|
392
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
393
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
394
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
395
|
-
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU |
|
|
396
|
-
| text: METEOR, exact and stem matches (10000 sentences) | NLTK |
|
|
397
|
-
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score |
|
|
391
|
+
| 10 classes: macro F1 | scikit-learn | 9.2 | 106.2 | **11.5×** |
|
|
392
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.7 | 3.6 | **2.1×** |
|
|
393
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 10.0 | 932.8 | **93.4×** |
|
|
394
|
+
| binary: ROC AUC | scikit-learn | 86.2 | 305.1 | **3.5×** |
|
|
395
|
+
| calibration: slope and intercept | statsmodels | 209.6 | 1146.2 | **5.5×** |
|
|
396
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 5.2 | 5.9 | **1.1×** |
|
|
397
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 20.9 | 381.9 | **18.3×** |
|
|
398
|
+
| decision curve: 99 thresholds | NumPy loop | 145.7 | 190.2 | **1.3×** |
|
|
399
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 37.2 | 731.1 | **19.7×** |
|
|
400
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 74.3 | 79.7 | **1.1×** |
|
|
401
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 7.9 | 13.4 | **1.7×** |
|
|
402
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 156.1 | 583.6 | **3.7×** |
|
|
403
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 36.1 | 248.7 | **6.9×** |
|
|
404
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 4.6 | 16.6 | **3.6×** |
|
|
405
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **12.4×** |
|
|
406
|
+
| statistics: Mann–Whitney U | SciPy | 135.5 | 303.6 | **2.2×** |
|
|
407
|
+
| statistics: Welch t-test | SciPy | 7.1 | 10.4 | **1.5×** |
|
|
408
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 103.6 | 211.7 | **2.0×** |
|
|
409
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 334.9 | 592.4 | **1.8×** |
|
|
410
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 162.4 | 265.7 | **1.6×** |
|
|
411
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 8.4 | 9.6 | **1.1×** |
|
|
412
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 108.1 | 252.4 | **2.3×** |
|
|
413
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 13.2 | 15.0 | **1.1×** |
|
|
414
|
+
| systems: maintainability index (1000 programs) | radon | 100.8 | 89.5 | 0.89× |
|
|
415
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 206.2 | 2405.2 | **11.7×** |
|
|
416
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 72.2 | 404.0 | **5.6×** |
|
|
417
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 179.5 | 678.9 | **3.8×** |
|
|
398
418
|
|
|
399
419
|
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
|
|
400
420
|
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
401
421
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
402
|
-
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.
|
|
422
|
+
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.64×** (171 of 172
|
|
403
423
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
404
424
|
|
|
405
425
|
**Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
|
|
406
426
|
CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
|
|
407
427
|
ROC AUC and average precision (one sort per column, shared by both inside `evaluate()`), the LLM-systems
|
|
408
|
-
consistency, groundedness, citation, toxicity and exposure metrics, Elo ratings
|
|
409
|
-
|
|
428
|
+
consistency, groundedness, citation, toxicity and exposure metrics, Elo ratings, bootstrap resampling (including
|
|
429
|
+
whole bootstrap and jackknife runs of ROC AUC / AP), DeLong, QA exact match and F1,
|
|
430
|
+
Hausdorff and surface distances, calibration bins and the WEAT permutation test run in the compiled,
|
|
431
|
+
multithreaded Rust core; bootstrap intervals, paired bootstrap tests and
|
|
410
432
|
`compare()` evaluate confusion-matrix metrics from counts of each resample's (true, predicted) pairs instead of
|
|
411
433
|
copies of the data. `evaluate()` validates inputs once and builds the confusion
|
|
412
434
|
matrix once for all metrics, and integer labels are encoded without sorting. The rank tests rank the data once
|
|
@@ -503,6 +525,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
503
525
|
## Links
|
|
504
526
|
|
|
505
527
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
528
|
+
- crates.io: https://crates.io/crates/evalsuite
|
|
506
529
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
507
530
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
508
531
|
|
|
@@ -10,11 +10,15 @@
|
|
|
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 (0.
|
|
13
|
+
> **Status: stable (0.8.0).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
|
|
14
14
|
> **0.6 adds a compiled Rust core**: same API and identical results, with text metrics, COCO evaluation and
|
|
15
15
|
> bootstrap resampling several times faster and multithreaded (prebuilt wheels for Linux, macOS and Windows).
|
|
16
16
|
> **0.7.0** moves ROC AUC / average precision (and so `evaluate()`), the LLM-systems consistency metrics,
|
|
17
17
|
> groundedness, citation coverage, toxicity, exposure and Elo into the core.
|
|
18
|
+
> **0.7.1** adds bootstrapped ROC AUC / AP (4–5× faster intervals), DeLong, QA exact match / F1,
|
|
19
|
+
> Hausdorff / surface distances, calibration and the WEAT permutation test.
|
|
20
|
+
> **0.8.0** adds a **full Rust edition on crates.io** ([`evalsuite`](https://crates.io/crates/evalsuite)): every
|
|
21
|
+
> metric except `code_complexity`, checked case by case against this package.
|
|
18
22
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
19
23
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
20
24
|
|
|
@@ -38,10 +42,26 @@ is needed. Anywhere else pip falls back to a pure-Python wheel that gives exactl
|
|
|
38
42
|
|
|
39
43
|
The core runs independent examples (sentences, images, classes, resamples) in parallel on all CPU cores; set
|
|
40
44
|
`EVALSUITE_NUM_THREADS` to cap the number of threads. Results never depend on the thread count: sums are always
|
|
41
|
-
taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_test`, `compare`)
|
|
42
|
-
`resampling="native"` to draw
|
|
43
|
-
`random_state` and faster on large inputs, but a different random stream from
|
|
44
|
-
interval endpoints differ slightly (statistically equivalent).
|
|
45
|
+
taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_test`, `compare`) and
|
|
46
|
+
`weat_effect_size` accept `resampling="native"` to draw resamples (or permutations) in the core (seeded
|
|
47
|
+
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
48
|
+
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
49
|
+
|
|
50
|
+
### Rust
|
|
51
|
+
|
|
52
|
+
The same metrics are available as a pure-Rust crate, verified against this package on 36,054 recorded cases:
|
|
53
|
+
|
|
54
|
+
```toml
|
|
55
|
+
[dependencies]
|
|
56
|
+
evalsuite = "0.8"
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```rust
|
|
60
|
+
let acc = evalsuite::classification::accuracy(&[1, 0, 1, 1], &[1, 0, 0, 1], None).unwrap(); // 0.75
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list and the few documented
|
|
64
|
+
differences.
|
|
45
65
|
|
|
46
66
|
## Why EvalSuite
|
|
47
67
|
|
|
@@ -283,55 +303,57 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
283
303
|
|
|
284
304
|
## Performance
|
|
285
305
|
|
|
286
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.7.
|
|
306
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.7.1, Python 3.13,
|
|
287
307
|
NumPy 2.5, Linux x86_64). **Overall: 81 of 81 rows agree with the reference** (largest
|
|
288
|
-
difference 2.5e-14),
|
|
289
|
-
and
|
|
290
|
-
27 cases and three sizes is **4.
|
|
308
|
+
difference 2.5e-14), 80 are faster (the other, the maintainability index, runs Python's own `ast` parser
|
|
309
|
+
like radon and lands at 0.89× on this run), and the geometric-mean speed-up across all
|
|
310
|
+
27 cases and three sizes is **4.30×**. At 1,000,000 samples (pixels for
|
|
291
311
|
segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
|
|
292
312
|
alphabetical order:
|
|
293
313
|
|
|
294
314
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
295
315
|
| --- | --- | ---: | ---: | ---: |
|
|
296
|
-
| 10 classes: macro F1 | scikit-learn |
|
|
297
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.
|
|
298
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
299
|
-
| binary: ROC AUC | scikit-learn |
|
|
300
|
-
| calibration: slope and intercept | statsmodels |
|
|
301
|
-
| clinical: diagnostic report (7 CIs) | statsmodels |
|
|
302
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
303
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
304
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
305
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
306
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn |
|
|
307
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
308
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn |
|
|
309
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
310
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **12.
|
|
311
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
312
|
-
| statistics: Welch t-test | SciPy |
|
|
313
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
314
|
-
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu |
|
|
315
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
316
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 8.
|
|
317
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
318
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
319
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
320
|
-
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU |
|
|
321
|
-
| text: METEOR, exact and stem matches (10000 sentences) | NLTK |
|
|
322
|
-
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score |
|
|
316
|
+
| 10 classes: macro F1 | scikit-learn | 9.2 | 106.2 | **11.5×** |
|
|
317
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.7 | 3.6 | **2.1×** |
|
|
318
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 10.0 | 932.8 | **93.4×** |
|
|
319
|
+
| binary: ROC AUC | scikit-learn | 86.2 | 305.1 | **3.5×** |
|
|
320
|
+
| calibration: slope and intercept | statsmodels | 209.6 | 1146.2 | **5.5×** |
|
|
321
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 5.2 | 5.9 | **1.1×** |
|
|
322
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 20.9 | 381.9 | **18.3×** |
|
|
323
|
+
| decision curve: 99 thresholds | NumPy loop | 145.7 | 190.2 | **1.3×** |
|
|
324
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 37.2 | 731.1 | **19.7×** |
|
|
325
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 74.3 | 79.7 | **1.1×** |
|
|
326
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 7.9 | 13.4 | **1.7×** |
|
|
327
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 156.1 | 583.6 | **3.7×** |
|
|
328
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 36.1 | 248.7 | **6.9×** |
|
|
329
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 4.6 | 16.6 | **3.6×** |
|
|
330
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **12.4×** |
|
|
331
|
+
| statistics: Mann–Whitney U | SciPy | 135.5 | 303.6 | **2.2×** |
|
|
332
|
+
| statistics: Welch t-test | SciPy | 7.1 | 10.4 | **1.5×** |
|
|
333
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 103.6 | 211.7 | **2.0×** |
|
|
334
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 334.9 | 592.4 | **1.8×** |
|
|
335
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 162.4 | 265.7 | **1.6×** |
|
|
336
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 8.4 | 9.6 | **1.1×** |
|
|
337
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 108.1 | 252.4 | **2.3×** |
|
|
338
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 13.2 | 15.0 | **1.1×** |
|
|
339
|
+
| systems: maintainability index (1000 programs) | radon | 100.8 | 89.5 | 0.89× |
|
|
340
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 206.2 | 2405.2 | **11.7×** |
|
|
341
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 72.2 | 404.0 | **5.6×** |
|
|
342
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 179.5 | 678.9 | **3.8×** |
|
|
323
343
|
|
|
324
344
|
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
|
|
325
345
|
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
326
346
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
327
|
-
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.
|
|
347
|
+
comparisons agree**, and against the libraries the geometric-mean speed-up is **6.64×** (171 of 172
|
|
328
348
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
329
349
|
|
|
330
350
|
**Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
|
|
331
351
|
CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
|
|
332
352
|
ROC AUC and average precision (one sort per column, shared by both inside `evaluate()`), the LLM-systems
|
|
333
|
-
consistency, groundedness, citation, toxicity and exposure metrics, Elo ratings
|
|
334
|
-
|
|
353
|
+
consistency, groundedness, citation, toxicity and exposure metrics, Elo ratings, bootstrap resampling (including
|
|
354
|
+
whole bootstrap and jackknife runs of ROC AUC / AP), DeLong, QA exact match and F1,
|
|
355
|
+
Hausdorff and surface distances, calibration bins and the WEAT permutation test run in the compiled,
|
|
356
|
+
multithreaded Rust core; bootstrap intervals, paired bootstrap tests and
|
|
335
357
|
`compare()` evaluate confusion-matrix metrics from counts of each resample's (true, predicted) pairs instead of
|
|
336
358
|
copies of the data. `evaluate()` validates inputs once and builds the confusion
|
|
337
359
|
matrix once for all metrics, and integer labels are encoded without sorting. The rank tests rank the data once
|
|
@@ -428,6 +450,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
428
450
|
## Links
|
|
429
451
|
|
|
430
452
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
453
|
+
- crates.io: https://crates.io/crates/evalsuite
|
|
431
454
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
432
455
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
433
456
|
|
|
@@ -121,6 +121,8 @@ ignore = ["N803", "N806", "RUF022", "UP007", "UP045", "RUF001", "RUF002", "RUF00
|
|
|
121
121
|
"tests/*" = ["S101", "N802", "E501"]
|
|
122
122
|
# Metric modules carry full literature references, which are not wrapped.
|
|
123
123
|
"src/evalsuite/*/metrics.py" = ["E501"]
|
|
124
|
+
# Developer script recording parity fixtures for the Rust crate: each case's lambda runs immediately.
|
|
125
|
+
"scripts/rust_fixtures.py" = ["B007", "B023", "E501", "E731", "E741", "RUF005"]
|
|
124
126
|
|
|
125
127
|
[tool.mypy]
|
|
126
128
|
python_version = "3.10"
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
# It is not intended for manual editing.
|
|
3
3
|
version = 3
|
|
4
4
|
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "bit-set"
|
|
16
|
+
version = "0.8.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"bit-vec",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "bit-vec"
|
|
25
|
+
version = "0.8.0"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
|
28
|
+
|
|
5
29
|
[[package]]
|
|
6
30
|
name = "crossbeam-deque"
|
|
7
31
|
version = "0.8.8"
|
|
@@ -33,34 +57,104 @@ version = "1.19.0"
|
|
|
33
57
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
58
|
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
|
|
35
59
|
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "equivalent"
|
|
62
|
+
version = "1.0.3"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "evalsuite"
|
|
68
|
+
version = "0.8.0"
|
|
69
|
+
dependencies = [
|
|
70
|
+
"evalsuite-core",
|
|
71
|
+
"fancy-regex",
|
|
72
|
+
"libm",
|
|
73
|
+
"rayon",
|
|
74
|
+
"regex",
|
|
75
|
+
"roxmltree",
|
|
76
|
+
"serde_json",
|
|
77
|
+
]
|
|
78
|
+
|
|
36
79
|
[[package]]
|
|
37
80
|
name = "evalsuite-core"
|
|
38
|
-
version = "0.
|
|
81
|
+
version = "0.8.0"
|
|
39
82
|
dependencies = [
|
|
40
83
|
"rayon",
|
|
41
84
|
]
|
|
42
85
|
|
|
43
86
|
[[package]]
|
|
44
87
|
name = "evalsuite-py"
|
|
45
|
-
version = "0.
|
|
88
|
+
version = "0.8.0"
|
|
46
89
|
dependencies = [
|
|
47
90
|
"evalsuite-core",
|
|
48
91
|
"pyo3",
|
|
49
92
|
"rayon",
|
|
50
93
|
]
|
|
51
94
|
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "fancy-regex"
|
|
97
|
+
version = "0.14.0"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "6e24cb5a94bcae1e5408b0effca5cd7172ea3c5755049c5f3af4cd283a165298"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"bit-set",
|
|
102
|
+
"regex-automata",
|
|
103
|
+
"regex-syntax",
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
[[package]]
|
|
107
|
+
name = "foldhash"
|
|
108
|
+
version = "0.2.0"
|
|
109
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
110
|
+
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "hashbrown"
|
|
114
|
+
version = "0.17.2"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc"
|
|
117
|
+
|
|
52
118
|
[[package]]
|
|
53
119
|
name = "heck"
|
|
54
120
|
version = "0.5.0"
|
|
55
121
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
122
|
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
57
123
|
|
|
124
|
+
[[package]]
|
|
125
|
+
name = "indexmap"
|
|
126
|
+
version = "2.14.2"
|
|
127
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
129
|
+
dependencies = [
|
|
130
|
+
"equivalent",
|
|
131
|
+
"hashbrown",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "itoa"
|
|
136
|
+
version = "1.0.19"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|
139
|
+
|
|
58
140
|
[[package]]
|
|
59
141
|
name = "libc"
|
|
60
142
|
version = "0.2.191"
|
|
61
143
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
62
144
|
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
63
145
|
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "libm"
|
|
148
|
+
version = "0.2.16"
|
|
149
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
+
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "memchr"
|
|
154
|
+
version = "2.8.3"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
157
|
+
|
|
64
158
|
[[package]]
|
|
65
159
|
name = "once_cell"
|
|
66
160
|
version = "1.21.4"
|
|
@@ -168,6 +262,85 @@ dependencies = [
|
|
|
168
262
|
"crossbeam-utils",
|
|
169
263
|
]
|
|
170
264
|
|
|
265
|
+
[[package]]
|
|
266
|
+
name = "regex"
|
|
267
|
+
version = "1.13.2"
|
|
268
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
|
+
checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
|
|
270
|
+
dependencies = [
|
|
271
|
+
"aho-corasick",
|
|
272
|
+
"memchr",
|
|
273
|
+
"regex-automata",
|
|
274
|
+
"regex-syntax",
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
[[package]]
|
|
278
|
+
name = "regex-automata"
|
|
279
|
+
version = "0.4.19"
|
|
280
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
+
checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
|
|
282
|
+
dependencies = [
|
|
283
|
+
"aho-corasick",
|
|
284
|
+
"memchr",
|
|
285
|
+
"regex-syntax",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "regex-syntax"
|
|
290
|
+
version = "0.8.12"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "roxmltree"
|
|
296
|
+
version = "0.20.0"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97"
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "serde"
|
|
302
|
+
version = "1.0.229"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
305
|
+
dependencies = [
|
|
306
|
+
"serde_core",
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "serde_core"
|
|
311
|
+
version = "1.0.229"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"serde_derive",
|
|
316
|
+
]
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "serde_derive"
|
|
320
|
+
version = "1.0.229"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"proc-macro2",
|
|
325
|
+
"quote",
|
|
326
|
+
"syn",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "serde_json"
|
|
331
|
+
version = "1.0.154"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
334
|
+
dependencies = [
|
|
335
|
+
"foldhash",
|
|
336
|
+
"indexmap",
|
|
337
|
+
"itoa",
|
|
338
|
+
"memchr",
|
|
339
|
+
"serde",
|
|
340
|
+
"serde_core",
|
|
341
|
+
"zmij",
|
|
342
|
+
]
|
|
343
|
+
|
|
171
344
|
[[package]]
|
|
172
345
|
name = "syn"
|
|
173
346
|
version = "3.0.10"
|
|
@@ -190,3 +363,9 @@ name = "unicode-ident"
|
|
|
190
363
|
version = "1.0.27"
|
|
191
364
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
192
365
|
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
366
|
+
|
|
367
|
+
[[package]]
|
|
368
|
+
name = "zmij"
|
|
369
|
+
version = "1.0.23"
|
|
370
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
371
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|