evalsuite-python 1.1.0__tar.gz → 1.1.2__tar.gz

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