evalsuite-python 0.7.1__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.1 → evalsuite_python-0.8.0}/CHANGELOG.md +27 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/PKG-INFO +21 -2
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/README.md +20 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/pyproject.toml +2 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/Cargo.lock +181 -2
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/Cargo.toml +1 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/README.md +2 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/version.py +1 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/CONTRIBUTING.md +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/LICENSE +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/LICENSE-APACHE +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/Cargo.toml +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/agreement.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/coco.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/curve.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/groups.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/hash.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/lib.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/meteor.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/permutation.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/qa.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/ranks.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/resample.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/surface.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/ter.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-core/src/text.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-py/Cargo.toml +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/rust/evalsuite-py/src/lib.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/__main__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/_bench_metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/_lazy.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/_native.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/api.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/benchmarks.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/calibration.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/classification/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/classification/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/classification/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/cli/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/cli/main.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/clinical/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/clinical/report.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/context.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/exceptions.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/export.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/registry.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/result.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/types.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/core/validation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/agents.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/code.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/efficiency.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/longcontext.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/multilingual.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/robustness.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/safety.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/llmsys/uncertainty.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/plot.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/py.typed +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/regression/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/regression/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/reporting.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/_resolve.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/compare.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/effect.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/hypothesis.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/intervals.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/paired.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/stats/results.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/factuality.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/generation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/judge.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/qa.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/rag.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/reasoning.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/report.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/retrieval.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/semantic.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/spice.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/text/structured.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/vision/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/vision/detection.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/src/evalsuite/vision/segmentation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/classification/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/classification/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/clinical/test_outputs.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/clinical/test_v020.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/conftest.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/integration/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/integration/test_qa.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/integration/test_readme_examples.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/integration/test_repo_hygiene.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_fast_text.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_hardening.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_safety_robustness.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/output/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/output/test_benchmarks.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/output/test_cli.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/output/test_plot.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/output/test_reporting.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/regression/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/regression/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/stats/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/stats/test_branches.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/stats/test_compare.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/stats/test_fast_paths.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/stats/test_reference.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/test_native.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/text/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/text/test_against_references.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/text/test_text_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/text/test_v040.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/unit/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/unit/test_core.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/unit/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/vision/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/vision/test_detection.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/vision/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/vision/test_outputs.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/vision/test_segmentation.py +0 -0
|
@@ -6,6 +6,33 @@ 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
|
+
|
|
9
36
|
## [0.7.1] - 2026-11-25
|
|
10
37
|
|
|
11
38
|
More statistics, vision and QA work in the compiled core. Every default result is unchanged (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,13 +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
93
|
> **0.7.1** adds bootstrapped ROC AUC / AP (4–5× faster intervals), DeLong, QA exact match / F1,
|
|
94
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.
|
|
95
97
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
96
98
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
97
99
|
|
|
@@ -120,6 +122,22 @@ taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_t
|
|
|
120
122
|
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
121
123
|
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
122
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.
|
|
140
|
+
|
|
123
141
|
## Why EvalSuite
|
|
124
142
|
|
|
125
143
|
- **One consistent API.** Every metric returns a result object that behaves like a number and exports to
|
|
@@ -507,6 +525,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
507
525
|
## Links
|
|
508
526
|
|
|
509
527
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
528
|
+
- crates.io: https://crates.io/crates/evalsuite
|
|
510
529
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
511
530
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
512
531
|
|
|
@@ -10,13 +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
18
|
> **0.7.1** adds bootstrapped ROC AUC / AP (4–5× faster intervals), DeLong, QA exact match / F1,
|
|
19
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.
|
|
20
22
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
21
23
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
22
24
|
|
|
@@ -45,6 +47,22 @@ taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_t
|
|
|
45
47
|
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
46
48
|
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
47
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.
|
|
65
|
+
|
|
48
66
|
## Why EvalSuite
|
|
49
67
|
|
|
50
68
|
- **One consistent API.** Every metric returns a result object that behaves like a number and exports to
|
|
@@ -432,6 +450,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
432
450
|
## Links
|
|
433
451
|
|
|
434
452
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
453
|
+
- crates.io: https://crates.io/crates/evalsuite
|
|
435
454
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
436
455
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
437
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"
|
|
@@ -5,6 +5,7 @@ BLEU/chrF/ROUGE n-gram statistics, longest common subsequence, METEOR alignment,
|
|
|
5
5
|
bootstrap resample counting. Every kernel is tested to give exactly the result of EvalSuite's reference Python
|
|
6
6
|
implementation (and, through it, of sacreBLEU, rouge-score, NLTK and pycocotools).
|
|
7
7
|
|
|
8
|
-
Most users want the Python package
|
|
8
|
+
Most users want the Python package (`pip install evalsuite-python`) or the pure-Rust metrics crate
|
|
9
|
+
[`evalsuite`](https://crates.io/crates/evalsuite), which builds on these kernels.
|
|
9
10
|
|
|
10
11
|
Licensed under either of MIT or Apache-2.0, at your option.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/classification/test_against_sklearn.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{evalsuite_python-0.7.1 → evalsuite_python-0.8.0}/tests/llmsys/test_code_longcontext_efficiency.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|