evalsuite-python 0.7.1__tar.gz → 0.8.5__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.5}/CHANGELOG.md +64 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/PKG-INFO +27 -2
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/README.md +26 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/pyproject.toml +2 -0
- evalsuite_python-0.8.5/rust/Cargo.lock +1277 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/Cargo.toml +1 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/README.md +2 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-py/src/lib.rs +177 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/intervals.py +2 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/retrieval.py +46 -14
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/version.py +1 -1
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/test_native.py +56 -0
- evalsuite_python-0.7.1/rust/Cargo.lock +0 -192
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/CONTRIBUTING.md +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/LICENSE +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/LICENSE-APACHE +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/Cargo.toml +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/agreement.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/coco.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/curve.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/groups.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/hash.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/lib.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/meteor.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/permutation.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/qa.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/ranks.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/resample.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/surface.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/ter.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-core/src/text.rs +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/rust/evalsuite-py/Cargo.toml +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/__main__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/_bench_metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/_lazy.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/_native.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/api.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/benchmarks.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/calibration.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/classification/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/classification/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/classification/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/cli/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/cli/main.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/clinical/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/clinical/report.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/context.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/exceptions.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/export.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/registry.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/result.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/types.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/core/validation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/agents.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/code.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/efficiency.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/longcontext.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/multilingual.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/robustness.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/safety.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/llmsys/uncertainty.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/plot.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/py.typed +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/regression/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/regression/metrics.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/reporting.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/_resolve.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/compare.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/effect.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/hypothesis.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/paired.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/stats/results.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/_common.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/factuality.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/generation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/judge.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/qa.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/rag.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/reasoning.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/report.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/semantic.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/spice.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/text/structured.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/vision/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/vision/detection.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/src/evalsuite/vision/segmentation.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/classification/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/classification/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/clinical/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/clinical/test_outputs.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/clinical/test_v020.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/conftest.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/integration/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/integration/test_qa.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/integration/test_readme_examples.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/integration/test_repo_hygiene.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_fast_text.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_hardening.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_safety_robustness.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/output/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/output/test_benchmarks.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/output/test_cli.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/output/test_plot.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/output/test_reporting.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/regression/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/regression/test_against_sklearn.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/stats/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/stats/test_branches.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/stats/test_compare.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/stats/test_fast_paths.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/stats/test_reference.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/text/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/text/test_against_references.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/text/test_text_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/text/test_v040.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/unit/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/unit/test_core.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/unit/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/vision/__init__.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/vision/test_detection.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/vision/test_edges.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/tests/vision/test_outputs.py +0 -0
- {evalsuite_python-0.7.1 → evalsuite_python-0.8.5}/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.5] - 2026-11-25
|
|
10
|
+
|
|
11
|
+
The Rust edition is complete, gains a command-line tool, and the Python retrieval metrics run on it.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- **`code_complexity`, full CodeBLEU and a Python syntax check in the crate** (`code::code_complexity`,
|
|
15
|
+
`code::codebleu_python`, `code::python_syntax_ok`, `code::strip_python_comments`): Python source is parsed
|
|
16
|
+
with `rustpython-parser` into a CPython-shaped tree and tokenized as Python 3.12's `tokenize`, with radon's
|
|
17
|
+
complexity, Halstead and raw-line rules and CodeBLEU's sub-tree and data-flow matching. Every registered metric
|
|
18
|
+
of the Python package now has a Rust counterpart.
|
|
19
|
+
- **`evalsuite-cli`** (`cargo install evalsuite-cli`): the `evalsuite` command evaluates CSV, TSV, JSON and
|
|
20
|
+
JSON-lines files (`evaluate` for classification or regression, `diagnostic`, `calibration`, `text`,
|
|
21
|
+
`metrics`) as text, JSON, CSV or Markdown, with the same numbers as the Python CLI.
|
|
22
|
+
- **`clinical::diagnostic_report`** in the crate: the 2×2 table and every measure with its interval.
|
|
23
|
+
- **Property tests** for the crate (invariants independent of the fixtures) and **Criterion benchmarks**
|
|
24
|
+
(`cargo bench -p evalsuite`); results in BENCHMARKS.md.
|
|
25
|
+
- **Python retrieval metrics on Rust**: Precision, Recall and Hit rate @k, MRR, MAP and NDCG validate and look
|
|
26
|
+
up ids with Python's own dict and set semantics from Rust and repeat the arithmetic exactly (bit-identical,
|
|
27
|
+
checked by `tests/test_native.py` on mixed id types and graded judgements): 3–3.5× faster.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
- Faster crate kernels: label encoding in one hashed pass, unweighted accuracy without encoding (11–21× the
|
|
31
|
+
Python speed), selection instead of sorting for the median (2×), parallel BLEU tokenization.
|
|
32
|
+
- The crate's parity fixtures cover 36,514 cases (460 new ones for Python source analysis); `crates.yml`
|
|
33
|
+
publishes `evalsuite-core`, `evalsuite` and `evalsuite-cli` together.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
- `proportion_ci(method="wilson")` (Python and Rust) keeps the estimate inside the interval at 0 and n
|
|
37
|
+
successes: rounding gave an upper bound of 0.9999999999999999 at n of n (Rust: a lower bound of 3e-17 at 0).
|
|
38
|
+
|
|
39
|
+
### Not moved to Rust
|
|
40
|
+
- Regression metrics: NumPy already handles the arrays and most of the time is input validation that stays in
|
|
41
|
+
Python, so a Rust call would gain little.
|
|
42
|
+
- Judge statistics (Bradley–Terry, Krippendorff's alpha) and other NumPy-vectorised groups: their results depend
|
|
43
|
+
on NumPy's SIMD `log` / `exp` and BLAS matrix products, which Rust cannot reproduce bit for bit on every CPU,
|
|
44
|
+
and the package's rule is that native results equal the Python ones exactly.
|
|
45
|
+
|
|
46
|
+
## [0.8.0] - 2026-11-25
|
|
47
|
+
|
|
48
|
+
A full Rust edition of EvalSuite: the new [`evalsuite`](https://crates.io/crates/evalsuite) crate on crates.io.
|
|
49
|
+
The Python package is unchanged apart from its version number.
|
|
50
|
+
|
|
51
|
+
### Added
|
|
52
|
+
- **`evalsuite` crate** (pure Rust, `#![forbid(unsafe_code)]`): every registered metric and statistics function
|
|
53
|
+
of the Python package except `code_complexity` — classification, regression, clinical, calibration and
|
|
54
|
+
uncertainty, hypothesis tests and bootstrap intervals, retrieval, segmentation, detection, text generation,
|
|
55
|
+
QA and reasoning, embedding metrics, SPICE, LLM-judge statistics, structured outputs and tool use, RAG,
|
|
56
|
+
factuality, and the LLM-systems groups (agents, efficiency, long context, multilingual, robustness, safety,
|
|
57
|
+
code). It includes a built-in JSON Schema validator, PII detectors and an exact earth mover's distance.
|
|
58
|
+
- **Verified against the Python package**: `scripts/rust_fixtures.py` records 36,054 randomised cases (ties,
|
|
59
|
+
degenerate and invalid inputs included) and the crate's tests replay them all, to a relative tolerance of
|
|
60
|
+
1e-12 for most metrics (1e-9 for iterative ones); every input Python rejects is rejected too. CI runs them.
|
|
61
|
+
- **Publishing workflow** `.github/workflows/crates.yml`: on a version tag it tests, then publishes
|
|
62
|
+
`evalsuite-core` and `evalsuite` with the `CARGO_REGISTRY_TOKEN` secret, behind the `crates-io` environment.
|
|
63
|
+
Versions already on crates.io are skipped.
|
|
64
|
+
|
|
65
|
+
### Differences in the crate (documented in its README)
|
|
66
|
+
- `code_complexity` is not ported (it relies on CPython's `ast` and `tokenize`); `syntax_validity_rate` takes a
|
|
67
|
+
checker and `codebleu` takes the syntax / data-flow match scores from the caller's parser.
|
|
68
|
+
- METEOR, ROUGE and SPICE take optional stemmer / synonym functions instead of NLTK's Porter stemmer and WordNet.
|
|
69
|
+
- MAUVE's clustering, `add_typos` and WEAT's random re-partitions use the crate's seeded generator (the Python
|
|
70
|
+
package's `resampling="native"` stream), not NumPy's.
|
|
71
|
+
- `stats::compare` uses paired bootstrap tests throughout; surface distances support 2-D and 3-D masks.
|
|
72
|
+
|
|
9
73
|
## [0.7.1] - 2026-11-25
|
|
10
74
|
|
|
11
75
|
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.5
|
|
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,16 @@ 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.5).** 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, checked case by case against this package. **0.8.5** completes it (code complexity, CodeBLEU), adds
|
|
97
|
+
> the `evalsuite` command-line tool (`cargo install evalsuite-cli`) and runs the retrieval metrics on Rust (3×).
|
|
95
98
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
96
99
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
97
100
|
|
|
@@ -120,6 +123,27 @@ taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_t
|
|
|
120
123
|
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
121
124
|
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
122
125
|
|
|
126
|
+
### Rust
|
|
127
|
+
|
|
128
|
+
The same metrics are available as a pure-Rust crate, verified against this package on 36,514 recorded cases,
|
|
129
|
+
and as a standalone command (`cargo install evalsuite-cli`):
|
|
130
|
+
|
|
131
|
+
```toml
|
|
132
|
+
[dependencies]
|
|
133
|
+
evalsuite = "0.8"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```rust
|
|
137
|
+
let acc = evalsuite::classification::accuracy(&[1, 0, 1, 1], &[1, 0, 0, 1], None).unwrap(); // 0.75
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
evalsuite evaluate preds.csv --y-true label --y-pred pred --y-prob score
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list, performance and the few
|
|
145
|
+
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command.
|
|
146
|
+
|
|
123
147
|
## Why EvalSuite
|
|
124
148
|
|
|
125
149
|
- **One consistent API.** Every metric returns a result object that behaves like a number and exports to
|
|
@@ -507,6 +531,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
507
531
|
## Links
|
|
508
532
|
|
|
509
533
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
534
|
+
- crates.io: https://crates.io/crates/evalsuite (library), https://crates.io/crates/evalsuite-cli (command)
|
|
510
535
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
511
536
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
512
537
|
|
|
@@ -10,13 +10,16 @@
|
|
|
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.5).** 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, checked case by case against this package. **0.8.5** completes it (code complexity, CodeBLEU), adds
|
|
22
|
+
> the `evalsuite` command-line tool (`cargo install evalsuite-cli`) and runs the retrieval metrics on Rust (3×).
|
|
20
23
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
21
24
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
22
25
|
|
|
@@ -45,6 +48,27 @@ taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_t
|
|
|
45
48
|
xoshiro256++): reproducible with `random_state` and faster on large inputs, but a different random stream from
|
|
46
49
|
the default NumPy one, so interval endpoints and p-values differ slightly (statistically equivalent).
|
|
47
50
|
|
|
51
|
+
### Rust
|
|
52
|
+
|
|
53
|
+
The same metrics are available as a pure-Rust crate, verified against this package on 36,514 recorded cases,
|
|
54
|
+
and as a standalone command (`cargo install evalsuite-cli`):
|
|
55
|
+
|
|
56
|
+
```toml
|
|
57
|
+
[dependencies]
|
|
58
|
+
evalsuite = "0.8"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
```rust
|
|
62
|
+
let acc = evalsuite::classification::accuracy(&[1, 0, 1, 1], &[1, 0, 0, 1], None).unwrap(); // 0.75
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
evalsuite evaluate preds.csv --y-true label --y-pred pred --y-prob score
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
See [rust/evalsuite/README.md](rust/evalsuite/README.md) for the module list, performance and the few
|
|
70
|
+
documented differences, and [rust/evalsuite-cli/README.md](rust/evalsuite-cli/README.md) for the command.
|
|
71
|
+
|
|
48
72
|
## Why EvalSuite
|
|
49
73
|
|
|
50
74
|
- **One consistent API.** Every metric returns a result object that behaves like a number and exports to
|
|
@@ -432,6 +456,7 @@ fallback; `tests/test_native.py` checks that the two give identical results. See
|
|
|
432
456
|
## Links
|
|
433
457
|
|
|
434
458
|
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
459
|
+
- crates.io: https://crates.io/crates/evalsuite (library), https://crates.io/crates/evalsuite-cli (command)
|
|
435
460
|
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
436
461
|
- Website source: https://github.com/mkcs28/evalsuite
|
|
437
462
|
|
|
@@ -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"
|