evalsuite-python 1.3.5__tar.gz → 2.0.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.
Files changed (179) hide show
  1. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/CHANGELOG.md +70 -0
  2. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/PKG-INFO +38 -8
  3. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/README.md +33 -7
  4. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/pyproject.toml +7 -0
  5. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/Cargo.lock +6 -6
  6. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/Cargo.toml +1 -1
  7. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-py/src/lib.rs +34 -0
  8. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/__init__.py +174 -1
  9. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/_bench_metrics.py +118 -1
  10. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/_update.py +40 -10
  11. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/agreement.py +10 -1
  12. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/api.py +15 -2
  13. evalsuite_python-2.0.0/src/evalsuite/auto_report.py +258 -0
  14. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/bayes.py +26 -8
  15. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/benchmarks.py +13 -0
  16. evalsuite_python-2.0.0/src/evalsuite/cache.py +258 -0
  17. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/calibration.py +4 -0
  18. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/cards.py +55 -10
  19. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/cli/main.py +126 -2
  20. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/clinical/report.py +4 -0
  21. evalsuite_python-2.0.0/src/evalsuite/comparisons.py +415 -0
  22. evalsuite_python-2.0.0/src/evalsuite/conformal.py +502 -0
  23. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/exceptions.py +17 -0
  24. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/registry.py +4 -0
  25. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/result.py +8 -0
  26. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/validation.py +21 -1
  27. evalsuite_python-2.0.0/src/evalsuite/data_quality.py +583 -0
  28. evalsuite_python-2.0.0/src/evalsuite/dataframe.py +123 -0
  29. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/drift.py +4 -0
  30. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/fairness.py +4 -0
  31. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/forecasting.py +4 -0
  32. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/harness.py +6 -1
  33. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/judging.py +8 -0
  34. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llm_benchmarks.py +8 -1
  35. evalsuite_python-2.0.0/src/evalsuite/llm_eval.py +630 -0
  36. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/longcontext.py +4 -3
  37. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/multilingual.py +2 -1
  38. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/robustness.py +4 -6
  39. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/safety.py +2 -1
  40. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/monitor.py +5 -4
  41. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/multilabel.py +12 -0
  42. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/plot.py +92 -0
  43. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/rag_report.py +4 -0
  44. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/recalibration.py +11 -3
  45. evalsuite_python-2.0.0/src/evalsuite/reclassification.py +366 -0
  46. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/reporting.py +4 -0
  47. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/_resolve.py +6 -1
  48. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/compare.py +14 -3
  49. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/effect.py +5 -5
  50. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/hypothesis.py +3 -3
  51. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/intervals.py +2 -2
  52. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/paired.py +53 -21
  53. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/planning.py +9 -2
  54. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/survival.py +2 -1
  55. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/factuality.py +4 -3
  56. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/generation.py +2 -1
  57. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/judge.py +3 -2
  58. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/qa.py +2 -0
  59. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/rag.py +2 -1
  60. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/report.py +4 -0
  61. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/semantic.py +3 -2
  62. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/structured.py +3 -1
  63. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/version.py +1 -1
  64. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/vision/detection.py +7 -2
  65. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/vision/segmentation.py +4 -0
  66. evalsuite_python-2.0.0/src/evalsuite/workflow.py +305 -0
  67. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/integration/test_readme_examples.py +1 -0
  68. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/output/test_benchmarks.py +4 -2
  69. evalsuite_python-2.0.0/tests/test_cache.py +97 -0
  70. evalsuite_python-2.0.0/tests/test_properties.py +108 -0
  71. evalsuite_python-2.0.0/tests/test_v140.py +101 -0
  72. evalsuite_python-2.0.0/tests/test_v200.py +642 -0
  73. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/CONTRIBUTING.md +0 -0
  74. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/LICENSE +0 -0
  75. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/LICENSE-APACHE +0 -0
  76. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/Cargo.toml +0 -0
  77. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/README.md +0 -0
  78. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/agreement.rs +0 -0
  79. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/coco.rs +0 -0
  80. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/curve.rs +0 -0
  81. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/groups.rs +0 -0
  82. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/hash.rs +0 -0
  83. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/lib.rs +0 -0
  84. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/meteor.rs +0 -0
  85. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/permutation.rs +0 -0
  86. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/qa.rs +0 -0
  87. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/ranks.rs +0 -0
  88. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/resample.rs +0 -0
  89. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/surface.rs +0 -0
  90. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/survival.rs +0 -0
  91. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/ter.rs +0 -0
  92. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-core/src/text.rs +0 -0
  93. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/rust/evalsuite-py/Cargo.toml +0 -0
  94. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/__main__.py +0 -0
  95. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/_evalci.py +0 -0
  96. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/_lazy.py +0 -0
  97. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/_native.py +0 -0
  98. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/classification/__init__.py +0 -0
  99. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/classification/_common.py +0 -0
  100. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/classification/metrics.py +0 -0
  101. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/cli/__init__.py +0 -0
  102. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/clinical/__init__.py +0 -0
  103. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/clinical/metrics.py +0 -0
  104. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/__init__.py +0 -0
  105. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/context.py +0 -0
  106. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/export.py +0 -0
  107. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/core/types.py +0 -0
  108. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/html_report.py +0 -0
  109. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/integrations.py +0 -0
  110. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/__init__.py +0 -0
  111. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/_common.py +0 -0
  112. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/agents.py +0 -0
  113. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/code.py +0 -0
  114. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/efficiency.py +0 -0
  115. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/llmsys/uncertainty.py +0 -0
  116. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/py.typed +0 -0
  117. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/regression/__init__.py +0 -0
  118. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/regression/metrics.py +0 -0
  119. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/__init__.py +0 -0
  120. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/stats/results.py +0 -0
  121. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/__init__.py +0 -0
  122. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/_common.py +0 -0
  123. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/reasoning.py +0 -0
  124. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/retrieval.py +0 -0
  125. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/text/spice.py +0 -0
  126. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/src/evalsuite/vision/__init__.py +0 -0
  127. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/__init__.py +0 -0
  128. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/classification/__init__.py +0 -0
  129. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/classification/test_against_sklearn.py +0 -0
  130. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/clinical/__init__.py +0 -0
  131. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/clinical/test_outputs.py +0 -0
  132. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/clinical/test_v020.py +0 -0
  133. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/conftest.py +0 -0
  134. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/integration/__init__.py +0 -0
  135. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/integration/test_qa.py +0 -0
  136. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/integration/test_repo_hygiene.py +0 -0
  137. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/__init__.py +0 -0
  138. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_code_longcontext_efficiency.py +0 -0
  139. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_edges.py +0 -0
  140. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_fast_text.py +0 -0
  141. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_hardening.py +0 -0
  142. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_safety_robustness.py +0 -0
  143. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/llmsys/test_uncertainty_agents_multilingual.py +0 -0
  144. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/output/__init__.py +0 -0
  145. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/output/test_cli.py +0 -0
  146. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/output/test_plot.py +0 -0
  147. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/output/test_reporting.py +0 -0
  148. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/regression/__init__.py +0 -0
  149. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/regression/test_against_sklearn.py +0 -0
  150. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/stats/__init__.py +0 -0
  151. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/stats/test_branches.py +0 -0
  152. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/stats/test_compare.py +0 -0
  153. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/stats/test_fast_paths.py +0 -0
  154. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/stats/test_reference.py +0 -0
  155. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_cards.py +0 -0
  156. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_harness.py +0 -0
  157. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_integrations.py +0 -0
  158. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_monitor.py +0 -0
  159. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_native.py +0 -0
  160. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_update.py +0 -0
  161. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v111_fixes.py +0 -0
  162. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v12.py +0 -0
  163. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v121.py +0 -0
  164. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v121_coverage.py +0 -0
  165. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v13.py +0 -0
  166. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v135.py +0 -0
  167. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/test_v13_edges.py +0 -0
  168. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/text/__init__.py +0 -0
  169. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/text/test_against_references.py +0 -0
  170. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/text/test_text_edges.py +0 -0
  171. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/text/test_v040.py +0 -0
  172. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/unit/__init__.py +0 -0
  173. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/unit/test_core.py +0 -0
  174. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/unit/test_edges.py +0 -0
  175. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/vision/__init__.py +0 -0
  176. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/vision/test_detection.py +0 -0
  177. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/vision/test_edges.py +0 -0
  178. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/vision/test_outputs.py +0 -0
  179. {evalsuite_python-1.3.5 → evalsuite_python-2.0.0}/tests/vision/test_segmentation.py +0 -0
@@ -6,6 +6,76 @@ All notable changes to this project are documented here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.0.0] - 2026-11-28
10
+
11
+ A major feature release. Existing results are unchanged; every addition is new API.
12
+
13
+ ### Added
14
+ - **Conformal prediction**: `conformal_classification` (LAC, APS, RAPS; per-class or per-group coverage) and
15
+ `conformal_regression` (absolute, normalized, CQR), with coverage, set-size and width reports.
16
+ - **`evalsuite report data.csv`** / `auto_report`: detects the task and columns and writes a full HTML report.
17
+ - **Data quality**: `leakage_report` (exact / near duplicates, shared IDs, MinHash text near-duplicates, target
18
+ leakage), `label_issues` (confident learning, matches cleanlab), `dataset_card`.
19
+ - **Checklists**: STARD (with the 2×2 table) and CONSORT-AI, auto-filled like TRIPOD+AI.
20
+ - **Statistics**: `noninferiority_test`, `equivalence_test` (TOST), `nemenyi_test` (matches scikit-posthocs),
21
+ `ipw_metric`; plots `critical_difference` and `forest`.
22
+ - **Clinical**: `reclassification` (categorical and continuous NRI, IDI) and `external_validation`.
23
+ - **LLM and AI systems**: `run_model` (OpenAI, Anthropic or any callable; on-disk cache, concurrency, retries;
24
+ keys only from environment variables), `agent_report`, `conversation_report`, `cost_quality_report` with a
25
+ Pareto front, `contamination_check`.
26
+ - **Workflow**: `log_to_mlflow`, `log_to_wandb`, `record_history` / `check_regression` (`evalsuite history`),
27
+ `evalsuite serve`, `df.evalsuite` for pandas and Polars, a Dockerfile.
28
+ - **Ease of use**: did-you-mean suggestions for misspelt functions and metrics, `_repr_html_` on every report,
29
+ `EvalSuiteDeprecationWarning` and a deprecation policy.
30
+ - **Trust and reach**: documentation site (MkDocs), conda recipe, build provenance attestation and CycloneDX
31
+ SBOM on releases, OpenSSF Scorecard; Hypothesis property tests.
32
+ - The per-metric benchmark now covers the 1.3 and 2.0 functions against pingouin, cleanlab, scikit-posthocs,
33
+ baycomp, properscoring and scikit-learn.
34
+
35
+ ### Changed
36
+ - Faster, with identical results: isotonic recalibration (pool-adjacent-violators in the compiled core; about 2×
37
+ at 100,000 rows), `nemenyi_test` (about 5×) and `bayes_correlated_ttest` (about 5×; posterior draws are made
38
+ only when `.samples` is used).
39
+
40
+ ### Fixed
41
+ - `label_issues` now matches cleanlab's confident learning exactly (an example whose most likely class is its
42
+ given label is never flagged; with several confident classes the most likely one is suggested).
43
+
44
+ ## [1.4.0] - 2026-11-28
45
+
46
+ Smoother, cleaner and easier to keep tidy. Results are unchanged.
47
+
48
+ ### Added
49
+
50
+ - **Cache management.** One cache folder (`EVALSUITE_CACHE`, else the platform cache directory) for downloaded
51
+ benchmark data (`load_benchmark` now downloads there by default) and the update-check record.
52
+ `es.cache_info()` / `es.clear_cache(older_than=, max_size=, dry_run=)` and `evalsuite cache info|clear`.
53
+ - **Automatic cache clearing**, at most once a day in a background thread after import: entries unused for 90
54
+ days, then the least recently used until the cache is below 2 GB (`EVALSUITE_CACHE_MAX_AGE`,
55
+ `EVALSUITE_CACHE_MAX_SIZE`, `EVALSUITE_CACHE_AUTO_CLEAN=0`). Whole entries only, renamed out of the way before
56
+ deletion so an interrupted run never leaves half a download; folders without EvalSuite's marker file are
57
+ never touched.
58
+
59
+ ### Fixed
60
+
61
+ - Package-wide fuzz of every public function: non-numeric values (strings, None) in numeric arguments raised a
62
+ raw `ValueError("could not convert string to float")` in about 30 functions; they now raise
63
+ `InputValidationError` naming the argument and the offending value.
64
+ - Clear errors for wrong argument types: `compare` given an array instead of a dict of models, `ranking_report`
65
+ given arrays, sample-size functions given arrays, `list_metrics` given a non-string, `normalize_answer`,
66
+ `extract_json` and `format_multiple_choice` given non-strings, tool-call metrics given numeric matrices.
67
+ - `evaluate` with infinite or NaN labels no longer emits a NumPy `RuntimeWarning` before its error.
68
+ - The type checker reports no issues.
69
+
70
+ ### Changed
71
+
72
+ - Wheels exclude `__pycache__`, `.pyc` files and any stray local build of the compiled core. Wheel sizes are
73
+ unchanged (about 0.75–1.06 MB per platform, 0.41 MB pure Python): the package already shipped no tests,
74
+ notebooks, benchmark data or duplicate files.
75
+ - A test checks that each feature area (text, LLM systems, vision, clinical, survival, forecasting, drift,
76
+ judging, RAG, fairness, multi-label, agreement, Bayesian, recalibration, calibration, reports, cache, CLI)
77
+ imports without SciPy, pandas, Matplotlib, scikit-learn or PyTorch.
78
+
9
79
  ## [1.3.5] - 2026-11-28
10
80
 
11
81
  A deep clean of the 1.3 modules and bounded-memory resampling. Results are unchanged except where a bug is
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evalsuite-python
3
- Version: 1.3.5
3
+ Version: 2.0.0
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Science/Research
6
6
  Classifier: Intended Audience :: Healthcare Industry
@@ -26,6 +26,7 @@ Requires-Dist: pandas>=1.4
26
26
  Requires-Dist: matplotlib>=3.5 ; extra == 'all'
27
27
  Requires-Dist: pillow>=9 ; extra == 'all'
28
28
  Requires-Dist: nltk>=3.8 ; extra == 'all'
29
+ Requires-Dist: anthropic>=0.30 ; extra == 'anthropic'
29
30
  Requires-Dist: datasets>=2.14 ; extra == 'benchmarks'
30
31
  Requires-Dist: pytest>=7 ; extra == 'dev'
31
32
  Requires-Dist: pytest-cov>=4 ; extra == 'dev'
@@ -58,11 +59,13 @@ Requires-Dist: keras>=3 ; extra == 'keras'
58
59
  Requires-Dist: lightning>=2 ; extra == 'lightning'
59
60
  Requires-Dist: nltk>=3.8 ; extra == 'llm'
60
61
  Requires-Dist: mlflow>=2 ; extra == 'mlflow'
62
+ Requires-Dist: openai>=1.0 ; extra == 'openai'
61
63
  Requires-Dist: matplotlib>=3.5 ; extra == 'plot'
62
64
  Requires-Dist: scikit-learn>=1.2 ; extra == 'sklearn'
63
65
  Requires-Dist: pillow>=9 ; extra == 'vision'
64
66
  Requires-Dist: wandb>=0.16 ; extra == 'wandb'
65
67
  Provides-Extra: all
68
+ Provides-Extra: anthropic
66
69
  Provides-Extra: benchmarks
67
70
  Provides-Extra: dev
68
71
  Provides-Extra: docx
@@ -70,6 +73,7 @@ Provides-Extra: keras
70
73
  Provides-Extra: lightning
71
74
  Provides-Extra: llm
72
75
  Provides-Extra: mlflow
76
+ Provides-Extra: openai
73
77
  Provides-Extra: plot
74
78
  Provides-Extra: sklearn
75
79
  Provides-Extra: vision
@@ -104,11 +108,24 @@ evaluation into one consistent, validated, documented framework.
104
108
  > **On an older version? Upgrade once:** `pip install -U evalsuite-python`. From 1.1.2 on, EvalSuite tells you
105
109
  > when a newer release is out (`evalsuite upgrade`).
106
110
 
107
- > **Status: stable (1.3.5).** [Example notebooks](notebooks/README.md) (Colab) ·
111
+ > **Status: stable (2.0.0).** [Example notebooks](notebooks/README.md) (Colab) ·
108
112
  > [in-browser tools](https://evalsuite-nine.vercel.app/tools) · [changelog](CHANGELOG.md)
109
113
 
110
114
  **What's new**
111
115
 
116
+ - **2.0** — conformal prediction (LAC / APS / RAPS sets, absolute / normalized / CQR intervals, per-group
117
+ coverage); `evalsuite report data.csv` works out the task and writes a full HTML report; leakage checks
118
+ (exact and near duplicates, shared IDs, text near-duplicates, target leakage), label-issue finding
119
+ (cleanlab-exact) and dataset cards; STARD and CONSORT-AI checklists next to TRIPOD+AI; non-inferiority,
120
+ equivalence (TOST), Nemenyi with critical-difference plots, NRI / IDI, external validation, forest plots and
121
+ IPW metrics; LLM runs with caching (`run_model`), agent, conversation and cost–quality reports and a
122
+ contamination check; MLflow / W&B logging, an evaluation history with regression checks, `evalsuite serve`,
123
+ `df.evalsuite`; did-you-mean errors and notebook display for every report; a docs site, conda recipe, signed
124
+ build provenance and an SBOM.
125
+ - **1.4** — a cache you can see and clear (`evalsuite cache info` / `clear`), cleared automatically (unused for
126
+ 90 days or beyond 2 GB); a package-wide fuzz: non-numeric input now raises a clear `InputValidationError`
127
+ naming the argument in every function, and wrong argument types are explained; every feature area loads
128
+ without SciPy, pandas or Matplotlib until used.
112
129
  - **1.3.5** — a deep clean of the 1.3 modules (ranking counts a document once and rejects NaN scores, temperature
113
130
  scaling maps string labels to the right columns, clearer errors on degenerate data, `to_html` on every report)
114
131
  and bounded memory: bootstrap intervals on 100,000 rows peak at about 90 MB instead of 1.6 GB, with identical
@@ -614,7 +631,7 @@ scripts, no external requests).
614
631
  ## Evaluation in pull requests
615
632
 
616
633
  ```yaml
617
- - uses: mkcs28/evalsuite-python@v1.3.5
634
+ - uses: mkcs28/evalsuite-python@v2.0.0
618
635
  with:
619
636
  predictions: predictions.csv
620
637
  y-true: label
@@ -659,6 +676,19 @@ Every result (`evaluate`, `classification_report`, `compare`, single metrics) ex
659
676
  `to_json()`, `to_csv()`, `to_dataframe()`, `to_markdown()`, `to_latex()` and `to_html()`, and `save(path)` picks
660
677
  the format from the extension. HTML pages are standalone (inline CSS, no scripts) and escape all text.
661
678
 
679
+ ## Cache
680
+
681
+ ```python
682
+ es.cache_info() # where EvalSuite keeps downloaded benchmark data, and how much
683
+ es.clear_cache(older_than="30d") # or es.clear_cache() for everything
684
+ ```
685
+
686
+ `evalsuite cache info` and `evalsuite cache clear [--older-than 30d] [--max-size 1GB] [--dry-run]` do the same
687
+ from the shell. The cache is also cleared automatically, at most once a day in the background: entries unused
688
+ for 90 days go, then the least recently used until it is under 2 GB. Change this with `EVALSUITE_CACHE_MAX_AGE`
689
+ and `EVALSUITE_CACHE_MAX_SIZE`, turn it off with `EVALSUITE_CACHE_AUTO_CLEAN=0`, and move the folder with
690
+ `EVALSUITE_CACHE`. Only folders EvalSuite created are ever touched.
691
+
662
692
  ## Command line
663
693
 
664
694
  ```bash
@@ -722,11 +752,11 @@ metric calls. At 1,000,000 samples (pixels for segmentation; 1,000 images for de
722
752
  | text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 219.5 | 889.0 | **4.05×** |
723
753
  | text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 266.7 | 2399.8 | **9.00×** |
724
754
 
725
- **Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, re-run on 1.2.0): all 225 registered
726
- metrics and statistics functions at 10,000 and 100,000 samples. 82 are compared with a reference library, 118
727
- with an independent textbook formula and 25 (learned, judge-dependent, randomised, or whose reference library was
728
- not installed) are timed alone; **all 200 comparisons agree**, and against the libraries the geometric-mean
729
- speed-up is **5.50×** (164 of 164 measurements faster). Per-metric table in BENCHMARKS.md.
755
+ **Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, re-run on 2.0.0, now including the
756
+ 1.3 and 2.0 functions): all 238 registered metrics and statistics functions at 10,000 and 100,000 samples. 90 are
757
+ compared with a reference library (now also pingouin, cleanlab, scikit-posthocs, baycomp and properscoring), 120
758
+ with an independent textbook formula and 28 are timed alone; **all 210 comparisons agree**, and against the
759
+ libraries the geometric-mean speed-up is **5.88×** (169 of 180 measurements faster). Per-metric table in BENCHMARKS.md.
730
760
 
731
761
  **Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
732
762
  CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
@@ -13,11 +13,24 @@ evaluation into one consistent, validated, documented framework.
13
13
  > **On an older version? Upgrade once:** `pip install -U evalsuite-python`. From 1.1.2 on, EvalSuite tells you
14
14
  > when a newer release is out (`evalsuite upgrade`).
15
15
 
16
- > **Status: stable (1.3.5).** [Example notebooks](notebooks/README.md) (Colab) ·
16
+ > **Status: stable (2.0.0).** [Example notebooks](notebooks/README.md) (Colab) ·
17
17
  > [in-browser tools](https://evalsuite-nine.vercel.app/tools) · [changelog](CHANGELOG.md)
18
18
 
19
19
  **What's new**
20
20
 
21
+ - **2.0** — conformal prediction (LAC / APS / RAPS sets, absolute / normalized / CQR intervals, per-group
22
+ coverage); `evalsuite report data.csv` works out the task and writes a full HTML report; leakage checks
23
+ (exact and near duplicates, shared IDs, text near-duplicates, target leakage), label-issue finding
24
+ (cleanlab-exact) and dataset cards; STARD and CONSORT-AI checklists next to TRIPOD+AI; non-inferiority,
25
+ equivalence (TOST), Nemenyi with critical-difference plots, NRI / IDI, external validation, forest plots and
26
+ IPW metrics; LLM runs with caching (`run_model`), agent, conversation and cost–quality reports and a
27
+ contamination check; MLflow / W&B logging, an evaluation history with regression checks, `evalsuite serve`,
28
+ `df.evalsuite`; did-you-mean errors and notebook display for every report; a docs site, conda recipe, signed
29
+ build provenance and an SBOM.
30
+ - **1.4** — a cache you can see and clear (`evalsuite cache info` / `clear`), cleared automatically (unused for
31
+ 90 days or beyond 2 GB); a package-wide fuzz: non-numeric input now raises a clear `InputValidationError`
32
+ naming the argument in every function, and wrong argument types are explained; every feature area loads
33
+ without SciPy, pandas or Matplotlib until used.
21
34
  - **1.3.5** — a deep clean of the 1.3 modules (ranking counts a document once and rejects NaN scores, temperature
22
35
  scaling maps string labels to the right columns, clearer errors on degenerate data, `to_html` on every report)
23
36
  and bounded memory: bootstrap intervals on 100,000 rows peak at about 90 MB instead of 1.6 GB, with identical
@@ -523,7 +536,7 @@ scripts, no external requests).
523
536
  ## Evaluation in pull requests
524
537
 
525
538
  ```yaml
526
- - uses: mkcs28/evalsuite-python@v1.3.5
539
+ - uses: mkcs28/evalsuite-python@v2.0.0
527
540
  with:
528
541
  predictions: predictions.csv
529
542
  y-true: label
@@ -568,6 +581,19 @@ Every result (`evaluate`, `classification_report`, `compare`, single metrics) ex
568
581
  `to_json()`, `to_csv()`, `to_dataframe()`, `to_markdown()`, `to_latex()` and `to_html()`, and `save(path)` picks
569
582
  the format from the extension. HTML pages are standalone (inline CSS, no scripts) and escape all text.
570
583
 
584
+ ## Cache
585
+
586
+ ```python
587
+ es.cache_info() # where EvalSuite keeps downloaded benchmark data, and how much
588
+ es.clear_cache(older_than="30d") # or es.clear_cache() for everything
589
+ ```
590
+
591
+ `evalsuite cache info` and `evalsuite cache clear [--older-than 30d] [--max-size 1GB] [--dry-run]` do the same
592
+ from the shell. The cache is also cleared automatically, at most once a day in the background: entries unused
593
+ for 90 days go, then the least recently used until it is under 2 GB. Change this with `EVALSUITE_CACHE_MAX_AGE`
594
+ and `EVALSUITE_CACHE_MAX_SIZE`, turn it off with `EVALSUITE_CACHE_AUTO_CLEAN=0`, and move the folder with
595
+ `EVALSUITE_CACHE`. Only folders EvalSuite created are ever touched.
596
+
571
597
  ## Command line
572
598
 
573
599
  ```bash
@@ -631,11 +657,11 @@ metric calls. At 1,000,000 samples (pixels for segmentation; 1,000 images for de
631
657
  | text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 219.5 | 889.0 | **4.05×** |
632
658
  | text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 266.7 | 2399.8 | **9.00×** |
633
659
 
634
- **Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, re-run on 1.2.0): all 225 registered
635
- metrics and statistics functions at 10,000 and 100,000 samples. 82 are compared with a reference library, 118
636
- with an independent textbook formula and 25 (learned, judge-dependent, randomised, or whose reference library was
637
- not installed) are timed alone; **all 200 comparisons agree**, and against the libraries the geometric-mean
638
- speed-up is **5.50×** (164 of 164 measurements faster). Per-metric table in BENCHMARKS.md.
660
+ **Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`, re-run on 2.0.0, now including the
661
+ 1.3 and 2.0 functions): all 238 registered metrics and statistics functions at 10,000 and 100,000 samples. 90 are
662
+ compared with a reference library (now also pingouin, cleanlab, scikit-posthocs, baycomp and properscoring), 120
663
+ with an independent textbook formula and 28 are timed alone; **all 210 comparisons agree**, and against the
664
+ libraries the geometric-mean speed-up is **5.88×** (169 of 180 measurements faster). Per-metric table in BENCHMARKS.md.
639
665
 
640
666
  **Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
641
667
  CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
@@ -49,6 +49,8 @@ mlflow = ["mlflow>=2"]
49
49
  docx = ["python-docx>=1.0"]
50
50
  benchmarks = ["datasets>=2.14"]
51
51
  wandb = ["wandb>=0.16"]
52
+ openai = ["openai>=1.0"]
53
+ anthropic = ["anthropic>=0.30"]
52
54
  all = ["matplotlib>=3.5", "pillow>=9", "nltk>=3.8"]
53
55
  dev = [
54
56
  "pytest>=7",
@@ -111,6 +113,11 @@ exclude = [
111
113
  { path = "**/__pycache__/**", format = "sdist" },
112
114
  { path = "**/*.pyc", format = "sdist" },
113
115
  { path = "rust/target/**", format = "sdist" },
116
+ # wheels carry only the package: never caches or a stray local build of the compiled core
117
+ { path = "**/__pycache__/**", format = "wheel" },
118
+ { path = "**/*.pyc", format = "wheel" },
119
+ { path = "src/evalsuite/_core*.so", format = "wheel" },
120
+ { path = "src/evalsuite/_core*.pyd", format = "wheel" },
114
121
  ]
115
122
 
116
123
  [tool.hatch.build.targets.sdist]
@@ -319,7 +319,7 @@ checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
319
319
 
320
320
  [[package]]
321
321
  name = "evalsuite"
322
- version = "1.3.5"
322
+ version = "2.0.0"
323
323
  dependencies = [
324
324
  "criterion",
325
325
  "evalsuite-core",
@@ -334,14 +334,14 @@ dependencies = [
334
334
 
335
335
  [[package]]
336
336
  name = "evalsuite-capi"
337
- version = "1.3.5"
337
+ version = "2.0.0"
338
338
  dependencies = [
339
339
  "evalsuite",
340
340
  ]
341
341
 
342
342
  [[package]]
343
343
  name = "evalsuite-cli"
344
- version = "1.3.5"
344
+ version = "2.0.0"
345
345
  dependencies = [
346
346
  "clap",
347
347
  "csv",
@@ -351,14 +351,14 @@ dependencies = [
351
351
 
352
352
  [[package]]
353
353
  name = "evalsuite-core"
354
- version = "1.3.5"
354
+ version = "2.0.0"
355
355
  dependencies = [
356
356
  "rayon",
357
357
  ]
358
358
 
359
359
  [[package]]
360
360
  name = "evalsuite-py"
361
- version = "1.3.5"
361
+ version = "2.0.0"
362
362
  dependencies = [
363
363
  "evalsuite-core",
364
364
  "pyo3",
@@ -367,7 +367,7 @@ dependencies = [
367
367
 
368
368
  [[package]]
369
369
  name = "evalsuite-wasm"
370
- version = "1.3.5"
370
+ version = "2.0.0"
371
371
  dependencies = [
372
372
  "evalsuite",
373
373
  "js-sys",
@@ -3,7 +3,7 @@ members = ["evalsuite-core", "evalsuite-py"]
3
3
  resolver = "2"
4
4
 
5
5
  [workspace.package]
6
- version = "1.3.5"
6
+ version = "2.0.0"
7
7
  edition = "2021"
8
8
  rust-version = "1.82"
9
9
  license = "MIT OR Apache-2.0"
@@ -396,6 +396,39 @@ fn coco_evaluate<'py>(
396
396
  ))
397
397
  }
398
398
 
399
+ /// Pool-adjacent-violators on per-x means `y` with weights `w` (float64 views of `n` elements): the pooled block
400
+ /// values and block lengths. The same operations in the same order as `evalsuite.recalibration._pava`, so results
401
+ /// are identical bit for bit.
402
+ #[pyfunction]
403
+ fn pava(py: Python<'_>, y: (usize, usize), w: (usize, usize)) -> PyResult<(Vec<f64>, Vec<u64>)> {
404
+ let ys: &[f64] = view(y.0, y.1)?;
405
+ let ws: &[f64] = view(w.0, w.1)?;
406
+ if ys.len() != ws.len() {
407
+ return Err(PyValueError::new_err("y and w must have the same length"));
408
+ }
409
+ Ok(py.detach(|| {
410
+ let mut vals: Vec<f64> = Vec::with_capacity(ys.len());
411
+ let mut wts: Vec<f64> = Vec::with_capacity(ys.len());
412
+ let mut lens: Vec<u64> = Vec::with_capacity(ys.len());
413
+ for (&v, &wt) in ys.iter().zip(ws) {
414
+ vals.push(v);
415
+ wts.push(wt);
416
+ lens.push(1);
417
+ while vals.len() > 1 && vals[vals.len() - 2] > vals[vals.len() - 1] {
418
+ let v2 = vals.pop().unwrap();
419
+ let w2 = wts.pop().unwrap();
420
+ let l2 = lens.pop().unwrap();
421
+ let last = vals.len() - 1;
422
+ let tot = wts[last] + w2;
423
+ vals[last] = (vals[last] * wts[last] + v2 * w2) / tot;
424
+ wts[last] = tot;
425
+ lens[last] += l2;
426
+ }
427
+ }
428
+ (vals, lens)
429
+ }))
430
+ }
431
+
399
432
  /// Harrell's concordance sums `(numerator, denominator, comparable pairs)`. `time`, `risk` and `weight` are float64
400
433
  /// views and `event` a uint8 view, all of `n` elements, kept alive and unchanged by the caller during the call.
401
434
  #[pyfunction]
@@ -1163,6 +1196,7 @@ fn _core(m: &Bound<'_, PyModule>) -> PyResult<()> {
1163
1196
  m.add_function(wrap_pyfunction!(codebleu_stats, m)?)?;
1164
1197
  m.add_function(wrap_pyfunction!(distinct_ngrams, m)?)?;
1165
1198
  m.add_function(wrap_pyfunction!(num_threads, m)?)?;
1199
+ m.add_function(wrap_pyfunction!(pava, m)?)?;
1166
1200
  m.add_function(wrap_pyfunction!(retrieval_scores, m)?)?;
1167
1201
  Ok(())
1168
1202
  }