evalsuite-python 0.6.0__cp39-abi3-win_amd64.whl
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/__init__.py +268 -0
- evalsuite/__main__.py +5 -0
- evalsuite/_bench_metrics.py +2080 -0
- evalsuite/_core.pyd +0 -0
- evalsuite/_lazy.py +32 -0
- evalsuite/_native.py +60 -0
- evalsuite/api.py +275 -0
- evalsuite/benchmarks.py +946 -0
- evalsuite/calibration.py +392 -0
- evalsuite/classification/__init__.py +51 -0
- evalsuite/classification/_common.py +111 -0
- evalsuite/classification/metrics.py +945 -0
- evalsuite/cli/__init__.py +5 -0
- evalsuite/cli/main.py +606 -0
- evalsuite/clinical/__init__.py +18 -0
- evalsuite/clinical/metrics.py +342 -0
- evalsuite/clinical/report.py +366 -0
- evalsuite/core/__init__.py +1 -0
- evalsuite/core/context.py +199 -0
- evalsuite/core/exceptions.py +52 -0
- evalsuite/core/export.py +100 -0
- evalsuite/core/registry.py +90 -0
- evalsuite/core/result.py +379 -0
- evalsuite/core/types.py +23 -0
- evalsuite/core/validation.py +256 -0
- evalsuite/llmsys/__init__.py +189 -0
- evalsuite/llmsys/_common.py +215 -0
- evalsuite/llmsys/agents.py +384 -0
- evalsuite/llmsys/code.py +923 -0
- evalsuite/llmsys/efficiency.py +346 -0
- evalsuite/llmsys/longcontext.py +361 -0
- evalsuite/llmsys/multilingual.py +339 -0
- evalsuite/llmsys/robustness.py +504 -0
- evalsuite/llmsys/safety.py +509 -0
- evalsuite/llmsys/uncertainty.py +229 -0
- evalsuite/plot.py +651 -0
- evalsuite/py.typed +0 -0
- evalsuite/regression/__init__.py +41 -0
- evalsuite/regression/metrics.py +629 -0
- evalsuite/reporting.py +241 -0
- evalsuite/stats/__init__.py +46 -0
- evalsuite/stats/_resolve.py +229 -0
- evalsuite/stats/compare.py +420 -0
- evalsuite/stats/effect.py +159 -0
- evalsuite/stats/hypothesis.py +593 -0
- evalsuite/stats/intervals.py +338 -0
- evalsuite/stats/paired.py +214 -0
- evalsuite/stats/results.py +129 -0
- evalsuite/text/__init__.py +154 -0
- evalsuite/text/_common.py +97 -0
- evalsuite/text/factuality.py +469 -0
- evalsuite/text/generation.py +1346 -0
- evalsuite/text/judge.py +556 -0
- evalsuite/text/qa.py +108 -0
- evalsuite/text/rag.py +235 -0
- evalsuite/text/reasoning.py +215 -0
- evalsuite/text/report.py +158 -0
- evalsuite/text/retrieval.py +238 -0
- evalsuite/text/semantic.py +499 -0
- evalsuite/text/spice.py +162 -0
- evalsuite/text/structured.py +793 -0
- evalsuite/version.py +3 -0
- evalsuite/vision/__init__.py +47 -0
- evalsuite/vision/detection.py +696 -0
- evalsuite/vision/segmentation.py +1028 -0
- evalsuite_python-0.6.0.dist-info/METADATA +509 -0
- evalsuite_python-0.6.0.dist-info/RECORD +72 -0
- evalsuite_python-0.6.0.dist-info/WHEEL +4 -0
- evalsuite_python-0.6.0.dist-info/entry_points.txt +2 -0
- evalsuite_python-0.6.0.dist-info/licenses/LICENSE +21 -0
- evalsuite_python-0.6.0.dist-info/licenses/LICENSE-APACHE +191 -0
- evalsuite_python-0.6.0.dist-info/sboms/evalsuite-py.cyclonedx.json +576 -0
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: evalsuite-python
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Intended Audience :: Science/Research
|
|
6
|
+
Classifier: Intended Audience :: Healthcare Industry
|
|
7
|
+
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
8
|
+
Classifier: Topic :: Scientific/Engineering :: Image Recognition
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Programming Language :: Rust
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
22
|
+
Classifier: Typing :: Typed
|
|
23
|
+
Requires-Dist: numpy>=1.22
|
|
24
|
+
Requires-Dist: scipy>=1.8
|
|
25
|
+
Requires-Dist: pandas>=1.4
|
|
26
|
+
Requires-Dist: matplotlib>=3.5 ; extra == 'all'
|
|
27
|
+
Requires-Dist: pillow>=9 ; extra == 'all'
|
|
28
|
+
Requires-Dist: nltk>=3.8 ; extra == 'all'
|
|
29
|
+
Requires-Dist: pytest>=7 ; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-cov>=4 ; extra == 'dev'
|
|
31
|
+
Requires-Dist: hypothesis>=6.80 ; extra == 'dev'
|
|
32
|
+
Requires-Dist: scikit-learn>=1.4 ; extra == 'dev'
|
|
33
|
+
Requires-Dist: statsmodels>=0.13 ; extra == 'dev'
|
|
34
|
+
Requires-Dist: matplotlib>=3.5 ; extra == 'dev'
|
|
35
|
+
Requires-Dist: pillow>=9 ; extra == 'dev'
|
|
36
|
+
Requires-Dist: pycocotools>=2.0.7 ; extra == 'dev'
|
|
37
|
+
Requires-Dist: nltk>=3.8 ; extra == 'dev'
|
|
38
|
+
Requires-Dist: sacrebleu>=2.4 ; extra == 'dev'
|
|
39
|
+
Requires-Dist: rouge-score>=0.1.2 ; extra == 'dev'
|
|
40
|
+
Requires-Dist: pycocoevalcap>=1.2 ; extra == 'dev'
|
|
41
|
+
Requires-Dist: jsonschema>=4.18 ; extra == 'dev'
|
|
42
|
+
Requires-Dist: choix>=0.3 ; extra == 'dev'
|
|
43
|
+
Requires-Dist: krippendorff>=0.6 ; extra == 'dev'
|
|
44
|
+
Requires-Dist: radon>=6 ; extra == 'dev'
|
|
45
|
+
Requires-Dist: pot>=0.9 ; python_full_version < '3.14' and extra == 'dev'
|
|
46
|
+
Requires-Dist: ranx>=0.3.19 ; python_full_version < '3.14' and extra == 'dev'
|
|
47
|
+
Requires-Dist: ruff>=0.6 ; extra == 'dev'
|
|
48
|
+
Requires-Dist: mypy>=1.10 ; extra == 'dev'
|
|
49
|
+
Requires-Dist: pandas-stubs ; extra == 'dev'
|
|
50
|
+
Requires-Dist: build ; extra == 'dev'
|
|
51
|
+
Requires-Dist: twine ; extra == 'dev'
|
|
52
|
+
Requires-Dist: pip-audit ; extra == 'dev'
|
|
53
|
+
Requires-Dist: nltk>=3.8 ; extra == 'llm'
|
|
54
|
+
Requires-Dist: matplotlib>=3.5 ; extra == 'plot'
|
|
55
|
+
Requires-Dist: pillow>=9 ; extra == 'vision'
|
|
56
|
+
Provides-Extra: all
|
|
57
|
+
Provides-Extra: dev
|
|
58
|
+
Provides-Extra: llm
|
|
59
|
+
Provides-Extra: plot
|
|
60
|
+
Provides-Extra: vision
|
|
61
|
+
License-File: LICENSE
|
|
62
|
+
License-File: LICENSE-APACHE
|
|
63
|
+
Summary: A unified Python framework for machine-learning, clinical, statistical, segmentation, object-detection, uncertainty, and model evaluation.
|
|
64
|
+
Keywords: evaluation,metrics,segmentation,object detection,mAP,clinical,diagnostic accuracy,calibration,statistical tests,machine learning,statistics,classification,regression,reproducibility,rust
|
|
65
|
+
Author: Manoj Kumar C S, Nikhil D Bharadwaj
|
|
66
|
+
Maintainer: Manoj Kumar C S, Nikhil D Bharadwaj
|
|
67
|
+
License-Expression: MIT OR Apache-2.0
|
|
68
|
+
Requires-Python: >=3.9
|
|
69
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
70
|
+
Project-URL: Changelog, https://github.com/mkcs28/evalsuite-python/blob/main/CHANGELOG.md
|
|
71
|
+
Project-URL: Documentation, https://evalsuite-nine.vercel.app/docs
|
|
72
|
+
Project-URL: Homepage, https://evalsuite-nine.vercel.app
|
|
73
|
+
Project-URL: Issues, https://github.com/mkcs28/evalsuite-python/issues
|
|
74
|
+
Project-URL: Source, https://github.com/mkcs28/evalsuite-python
|
|
75
|
+
|
|
76
|
+
# EvalSuite
|
|
77
|
+
|
|
78
|
+
[](https://github.com/mkcs28/evalsuite-python/actions/workflows/ci.yml)
|
|
79
|
+
[](https://pypi.org/project/evalsuite-python/)
|
|
80
|
+
[](https://pypi.org/project/evalsuite-python/)
|
|
81
|
+
[](#license)
|
|
82
|
+
|
|
83
|
+
**Unified, reproducible evaluation for machine learning, LLM and research.**
|
|
84
|
+
|
|
85
|
+
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
86
|
+
evaluation into one consistent, validated, documented framework.
|
|
87
|
+
|
|
88
|
+
> **Status: stable (0.6.0).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
|
|
89
|
+
> **0.6.0 adds a compiled Rust core**: same API and identical results, with text metrics, COCO matching and
|
|
90
|
+
> bootstrap resampling several times faster (prebuilt wheels for Linux, macOS and Windows).
|
|
91
|
+
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
92
|
+
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
93
|
+
|
|
94
|
+
## Installation
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install evalsuite-python
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The package is installed as `evalsuite-python` and imported as `evalsuite`:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import evalsuite as es
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
EvalSuite has a **compiled core written in Rust**. pip installs a prebuilt wheel on Linux (x86_64, aarch64;
|
|
107
|
+
glibc and musl), macOS (Apple silicon, Intel) and Windows (x64, arm64) for Python 3.9 to 3.14, so no compiler
|
|
108
|
+
is needed. Anywhere else pip falls back to a pure-Python wheel that gives exactly the same results, more slowly.
|
|
109
|
+
`evalsuite._native.backend()` says which one is in use (`"rust"` or `"python"`), and
|
|
110
|
+
`EVALSUITE_PURE_PYTHON=1` selects the Python implementations on any install.
|
|
111
|
+
|
|
112
|
+
## Why EvalSuite
|
|
113
|
+
|
|
114
|
+
- **One consistent API.** Every metric returns a result object that behaves like a number and exports to
|
|
115
|
+
JSON, pandas, Markdown and LaTeX.
|
|
116
|
+
- **Explicit conventions.** Averaging, label order, the positive class and zero-division behaviour are stated
|
|
117
|
+
and recorded in every result, never silently assumed.
|
|
118
|
+
- **Validated.** Each metric is tested against scikit-learn where definitions coincide, plus property-based
|
|
119
|
+
tests and edge cases.
|
|
120
|
+
- **Documented.** Every metric carries its definition, formula, range, input requirements and references,
|
|
121
|
+
available programmatically through `metric_info()`.
|
|
122
|
+
- **Efficient.** `evaluate()` validates inputs once and computes the confusion matrix once for all metrics.
|
|
123
|
+
- **Lightweight.** Requires only NumPy, SciPy and pandas.
|
|
124
|
+
|
|
125
|
+
## Quick start
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
import evalsuite as es
|
|
129
|
+
|
|
130
|
+
y_true = [0, 1, 1, 0, 1, 0]
|
|
131
|
+
y_pred = [0, 1, 0, 0, 1, 1]
|
|
132
|
+
y_prob = [0.1, 0.9, 0.4, 0.2, 0.8, 0.6]
|
|
133
|
+
|
|
134
|
+
result = es.evaluate(y_true, y_pred, y_prob=y_prob)
|
|
135
|
+
print(result.summary())
|
|
136
|
+
|
|
137
|
+
result["f1"] # MetricResult(f1=0.666667)
|
|
138
|
+
f"{result['mcc']:.3f}" # '0.333'
|
|
139
|
+
result.to_latex(caption="Test-set performance")
|
|
140
|
+
result.to_dataframe()
|
|
141
|
+
|
|
142
|
+
es.f1(y_true, y_pred) # individual metrics
|
|
143
|
+
es.roc_auc(y_true, y_prob)
|
|
144
|
+
es.metric_info("classification.mcc").formula # documentation
|
|
145
|
+
es.list_metrics("regression")
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Comparing models
|
|
149
|
+
|
|
150
|
+
```python
|
|
151
|
+
result = es.compare(
|
|
152
|
+
y_true,
|
|
153
|
+
{"logistic": pred_lr, "forest": pred_rf, "boosting": pred_gb},
|
|
154
|
+
probabilities={"logistic": prob_lr, "forest": prob_rf, "boosting": prob_gb},
|
|
155
|
+
random_state=0,
|
|
156
|
+
)
|
|
157
|
+
print(result.summary()) # estimates with 95% CIs, paired tests, Holm-adjusted p-values
|
|
158
|
+
result.to_latex(label="tab:models")
|
|
159
|
+
|
|
160
|
+
es.bootstrap_ci("f1", y_true, y_pred, average="macro", random_state=0) # BCa interval for any metric
|
|
161
|
+
es.accuracy_ci(y_true, y_pred) # Wilson interval
|
|
162
|
+
es.delong_test(y_true, prob_a, prob_b) # two correlated AUCs
|
|
163
|
+
es.mcnemar_test(y_true, pred_a, pred_b)
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Every model is evaluated on the same bootstrap resamples, so differences are paired. Accuracy is compared
|
|
167
|
+
with McNemar's test, binary ROC AUC with DeLong's test and other metrics with a paired bootstrap test;
|
|
168
|
+
p-values are adjusted for multiple comparisons (Holm by default).
|
|
169
|
+
|
|
170
|
+
## Clinical evaluation
|
|
171
|
+
|
|
172
|
+
```python
|
|
173
|
+
report = es.diagnostic_report(y_true, y_pred) # binary test vs reference standard
|
|
174
|
+
print(report)
|
|
175
|
+
# Sensitivity, specificity, PPV, NPV (Wilson CIs), LR+ and LR− (log CIs, Simel 1991),
|
|
176
|
+
# diagnostic odds ratio (Woolf), Youden's J, accuracy and prevalence
|
|
177
|
+
|
|
178
|
+
es.lr_positive(y_true, y_pred)
|
|
179
|
+
es.youden_j(y_true, y_pred)
|
|
180
|
+
|
|
181
|
+
dca = es.decision_curve(y_true, {"model": y_prob}) # net benefit vs treat all / treat none
|
|
182
|
+
dca.useful_range() # thresholds where the model beats both
|
|
183
|
+
es.plot.decision_curve(y_true, {"model": y_prob})
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Ratios that divide by zero are `inf` or NaN with a warning, never 0.
|
|
187
|
+
|
|
188
|
+
## Calibration
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
es.calibration_report(y_true, y_prob) # Brier, ECE, MCE, intercept, slope, Hosmer–Lemeshow
|
|
192
|
+
es.calibration_slope(y_true, y_prob) # ideal 1; < 1 means predictions are too extreme
|
|
193
|
+
es.calibration_intercept(y_true, y_prob) # ideal 0 (calibration-in-the-large)
|
|
194
|
+
es.hosmer_lemeshow(y_true, y_prob, n_groups=10)
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
## Statistical tests
|
|
198
|
+
|
|
199
|
+
```python
|
|
200
|
+
es.t_test(scores_a, scores_b) # Welch by default; mean difference with CI and Cohen's d
|
|
201
|
+
es.paired_t_test(fold_scores_a, fold_scores_b)
|
|
202
|
+
es.wilcoxon_test(fold_scores_a, fold_scores_b) # with matched-pairs rank-biserial r
|
|
203
|
+
es.mann_whitney_test(a, b) # with rank-biserial r
|
|
204
|
+
es.friedman_test(scores_a, scores_b, scores_c) # with Kendall's W
|
|
205
|
+
es.kruskal_wallis_test(g1, g2, g3)
|
|
206
|
+
es.shapiro_wilk_test(residuals)
|
|
207
|
+
es.chi_square_test(table) # with Cramér's V
|
|
208
|
+
es.fisher_exact_test([[8, 2], [1, 5]])
|
|
209
|
+
es.adjust_pvalues(p_values, method="hochberg") # also holm, bonferroni, bh, by
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Every test returns a `TestResult` with the statistic, p-value and an effect size, computed with SciPy and
|
|
213
|
+
checked against SciPy and statsmodels in the test suite.
|
|
214
|
+
|
|
215
|
+
## Segmentation
|
|
216
|
+
|
|
217
|
+
```python
|
|
218
|
+
# label masks: one 2-D image, or images on the first axis (N, H, W) / (N, D, H, W), or a list of masks
|
|
219
|
+
es.dice(y_true, y_pred) # macro over classes, pixel counts summed over the dataset
|
|
220
|
+
es.iou(y_true, y_pred, average=None) # per class; classes absent from both masks are NaN, not 0
|
|
221
|
+
es.miou(y_true, y_pred, ignore_index=255)
|
|
222
|
+
es.dice(y_true, y_pred, aggregate="image") # mean of per-image scores (medical imaging convention)
|
|
223
|
+
es.boundary_iou(y_true, y_pred) # Cheng et al. 2021
|
|
224
|
+
es.hausdorff_distance(y_true, y_pred, percentile=95, spacing=(0.8, 0.8)) # HD95 in mm
|
|
225
|
+
|
|
226
|
+
report = es.segmentation_report(y_true, y_pred, class_names={0: "background", 1: "liver"})
|
|
227
|
+
print(report) # mIoU, Dice, pixel accuracy, Boundary IoU, HD95, ASSD + per-class table
|
|
228
|
+
es.plot.segmentation(image, y_true[0], y_pred[0]) # prediction fill, truth outline
|
|
229
|
+
es.plot.per_class(report, metric="iou") # per-class bars (also takes a detection report)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Object detection
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
y_true = [{"boxes": [[x1, y1, x2, y2], ...], "labels": [3, ...]}, ...] # one dict per image
|
|
236
|
+
y_pred = [{"boxes": [...], "labels": [...], "scores": [...]}, ...]
|
|
237
|
+
|
|
238
|
+
report = es.detection_report(y_true, y_pred) # the 12 COCO numbers + AP per class
|
|
239
|
+
report["map"], report["map_50"], report["mar_100"]
|
|
240
|
+
es.mean_average_precision(y_true, y_pred, iou_threshold=0.5) # mAP@.50
|
|
241
|
+
es.average_precision_detection(y_true, y_pred, interpolation="voc") # per class, VOC-style
|
|
242
|
+
es.box_iou(boxes_a, boxes_b, box_format="xywh")
|
|
243
|
+
y_true, y_pred = es.from_coco("instances_val.json", "detections.json")
|
|
244
|
+
es.plot.detection_pr(y_true, y_pred)
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
The COCO protocol (crowd regions, area ranges, max detections, 101-point interpolation) matches
|
|
248
|
+
`pycocotools` to the last digit in the test suite.
|
|
249
|
+
|
|
250
|
+
Models can be compared over the same images with intervals and paired tests, as for every other task:
|
|
251
|
+
`es.compare(y_true, {"unet": masks_a, "deeplab": masks_b})` resamples images; for detection it compares
|
|
252
|
+
mAP.
|
|
253
|
+
|
|
254
|
+
## LLM evaluation
|
|
255
|
+
|
|
256
|
+
```python
|
|
257
|
+
es.bleu(references, predictions) # sacreBLEU-identical; also chrf, ter, rouge_l, meteor, cider
|
|
258
|
+
es.text_report(references, predictions) # BLEU, chrF(++), TER, ROUGE, METEOR, EM, token F1 at once
|
|
259
|
+
es.bertscore(ref_token_embs, pred_token_embs) # from your encoder's embeddings; also mauve, moverscore
|
|
260
|
+
es.model_score(refs, preds, scorer=comet_fn) # any learned metric or judge, with intervals and compare
|
|
261
|
+
es.faithfulness(claim_verdicts) # also hallucination_rate, citation_recall, answer_correctness
|
|
262
|
+
es.bradley_terry(comparisons, scale="elo") # also win_rate, elo_ratings, krippendorff_alpha
|
|
263
|
+
es.ndcg_at_k(relevant, retrieved, k=10) # also mrr, context_precision, context_recall
|
|
264
|
+
es.json_schema_compliance(outputs, schema) # also tool_call_f1, instruction_compliance_rate
|
|
265
|
+
es.pass_at_k(n_samples, n_correct, k=10) # also benchmark_accuracy(..., style="gsm8k")
|
|
266
|
+
es.compare(references, {"a": preds_a, "b": preds_b}, metrics=["bleu", "rouge_l"]) # paired over examples
|
|
267
|
+
es.plot.ratings(comparisons) # Bradley–Terry leaderboard with intervals; also win_matrix, text_scores
|
|
268
|
+
es.spice(reference_tuples, candidate_tuples) # scene-graph F-score; parser= for captions, synonyms="wordnet"
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## LLM systems
|
|
272
|
+
|
|
273
|
+
Safety, robustness, uncertainty, agents, multilingual, code, long context and serving cost. The verdicts
|
|
274
|
+
these take (harmful or not, test passed or not, confidence) come from your own judge, classifier or sandbox;
|
|
275
|
+
EvalSuite turns them into rates with Wilson intervals and breakdowns. PII detection, CodeBLEU, cyclomatic
|
|
276
|
+
complexity and the maintainability index (identical to radon) are computed from the text itself, and
|
|
277
|
+
EvalSuite never executes generated code.
|
|
278
|
+
|
|
279
|
+
```python
|
|
280
|
+
import evalsuite as es
|
|
281
|
+
|
|
282
|
+
es.harmful_response_rate([True, False, False, True], harmful_prompt=[True, True, False, True])
|
|
283
|
+
es.over_refusal_rate(refused=[True, False, True], should_refuse=[True, False, False])
|
|
284
|
+
es.pii_leakage_rate(["mail me at a@b.io", "nothing here"]) # e-mail, phone, Luhn-checked cards, IPs
|
|
285
|
+
es.paraphrase_consistency([["Paris", "paris"], ["4", "5", "4"]])
|
|
286
|
+
es.aurc(correct=[True, True, False, True], confidence=[0.9, 0.8, 0.7, 0.4]) # also selective_risk
|
|
287
|
+
es.plan_adherence(plans=[["search", "read", "answer"]], executed=[["search", "answer"]])
|
|
288
|
+
es.language_parity({"en": [1, 1, 0, 1], "sw": [1, 0, 0, 1]})
|
|
289
|
+
es.codebleu(["def add(a, b):\n return a + b"], ["def add(x, y):\n return x + y"])
|
|
290
|
+
es.code_complexity(["def f(x):\n return 1 if x else 0"]) # cyclomatic complexity + maintainability
|
|
291
|
+
es.needle_in_haystack(correct=[1, 0, 1, 1], context_lengths=[4000, 4000, 8000, 8000], depths=[0, 0.5, 0, 0.5])
|
|
292
|
+
es.time_to_first_token(request_times=[0.0, 1.0], first_token_times=[0.21, 1.35])
|
|
293
|
+
es.inference_cost([1200, 800], [300, 150], input_price=3.0, output_price=15.0) # prices per 1M tokens
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
## Classification report
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
report = es.classification_report(y_true, y_pred)
|
|
300
|
+
print(report) # per-class precision, recall, F1, specificity, support + averages
|
|
301
|
+
report.save("report.html") # also .csv .md .tex .json .txt
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
## Plots
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
pip install "evalsuite-python[plot]" # adds matplotlib; importing evalsuite never loads it
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
```python
|
|
311
|
+
es.plot.roc(y_true, {"logistic": prob_lr, "forest": prob_rf}) # AUC in the legend
|
|
312
|
+
es.plot.pr(y_true, prob) # AP and the prevalence line
|
|
313
|
+
es.plot.calibration(y_true, prob) # reliability diagram, ECE, Brier
|
|
314
|
+
es.plot.confusion_matrix(y_true, y_pred, normalize="true")
|
|
315
|
+
es.plot.residuals(y_reg, pred_reg) # or kind="predicted"
|
|
316
|
+
es.plot.comparison(es.compare(...)) # forest plot with CIs
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Each function returns a matplotlib `Axes` (pass `ax=` to draw into your own figure). The numbers shown are
|
|
320
|
+
computed with EvalSuite's metrics, so plots and tables always agree. Several models get distinct colours
|
|
321
|
+
*and* line styles, so figures stay readable in greyscale print.
|
|
322
|
+
|
|
323
|
+
## Exports
|
|
324
|
+
|
|
325
|
+
Every result (`evaluate`, `classification_report`, `compare`, single metrics) exports to `summary()`,
|
|
326
|
+
`to_json()`, `to_csv()`, `to_dataframe()`, `to_markdown()`, `to_latex()` and `to_html()`, and `save(path)` picks
|
|
327
|
+
the format from the extension. HTML pages are standalone (inline CSS, no scripts) and escape all text.
|
|
328
|
+
|
|
329
|
+
## Command line
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
evalsuite evaluate predictions.csv --y-true label --y-pred pred --y-prob prob
|
|
333
|
+
evalsuite report predictions.csv --y-true label --y-pred pred -o report.html
|
|
334
|
+
evalsuite compare predictions.csv --y-true label --pred lr=pred_lr --pred rf=pred_rf \
|
|
335
|
+
--prob lr=p_lr --prob rf=p_rf --plot comparison.png
|
|
336
|
+
evalsuite plot roc predictions.csv --y-true label --y-prob prob -o roc.png
|
|
337
|
+
evalsuite diagnostic predictions.csv --y-true label --y-pred pred # sensitivity, LR+, DOR... with CIs
|
|
338
|
+
evalsuite calibration predictions.csv --y-true label --y-prob prob # slope, intercept, ECE, HL
|
|
339
|
+
evalsuite plot decision predictions.csv --y-true label --y-prob prob -o dca.png
|
|
340
|
+
evalsuite segmentation true_masks.npy pred_masks.npy --ignore-index 255 --plot per_class.png
|
|
341
|
+
evalsuite detection instances_val.json detections.json --plot pr_curves.png
|
|
342
|
+
evalsuite metrics --category clinical
|
|
343
|
+
evalsuite info classification.mcc
|
|
344
|
+
evalsuite benchmark --quick
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` or the `-o` extension
|
|
348
|
+
(text, json, csv, markdown, latex, html). Errors are reported in one line with exit code 2.
|
|
349
|
+
|
|
350
|
+
## Performance
|
|
351
|
+
|
|
352
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.6.0, Python 3.13,
|
|
353
|
+
NumPy 2.5, Linux x86_64). **Overall: 81 of 81 rows agree with the reference** (largest
|
|
354
|
+
difference 2.8e-14), 81 are faster, and the geometric-mean speed-up across all
|
|
355
|
+
27 cases and three sizes is **3.70×**. At 1,000,000 samples (pixels for
|
|
356
|
+
segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
|
|
357
|
+
alphabetical order:
|
|
358
|
+
|
|
359
|
+
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
360
|
+
| --- | --- | ---: | ---: | ---: |
|
|
361
|
+
| 10 classes: macro F1 | scikit-learn | 10.2 | 107.4 | **10.5×** |
|
|
362
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.3 | 2.9 | **2.3×** |
|
|
363
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 11.2 | 818.5 | **73.1×** |
|
|
364
|
+
| binary: ROC AUC | scikit-learn | 175.4 | 292.8 | **1.7×** |
|
|
365
|
+
| calibration: slope and intercept | statsmodels | 234.7 | 938.0 | **4.0×** |
|
|
366
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 4.3 | 4.4 | **1.0×** |
|
|
367
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 18.8 | 309.7 | **16.5×** |
|
|
368
|
+
| decision curve: 99 thresholds | NumPy loop | 149.3 | 230.1 | **1.5×** |
|
|
369
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 268.5 | 628.8 | **2.3×** |
|
|
370
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 69.4 | 81.2 | **1.2×** |
|
|
371
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 7.4 | 12.0 | **1.6×** |
|
|
372
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 121.7 | 546.7 | **4.5×** |
|
|
373
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 34.2 | 200.8 | **5.9×** |
|
|
374
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 11.0 | 13.4 | **1.2×** |
|
|
375
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **12.0×** |
|
|
376
|
+
| statistics: Mann–Whitney U | SciPy | 152.1 | 323.0 | **2.1×** |
|
|
377
|
+
| statistics: Welch t-test | SciPy | 7.7 | 11.6 | **1.5×** |
|
|
378
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 88.9 | 224.7 | **2.5×** |
|
|
379
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 385.3 | 505.1 | **1.3×** |
|
|
380
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 166.0 | 265.3 | **1.6×** |
|
|
381
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 10.8 | 12.1 | **1.1×** |
|
|
382
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 79.1 | 209.2 | **2.6×** |
|
|
383
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 13.7 | 15.4 | **1.1×** |
|
|
384
|
+
| systems: maintainability index (1000 programs) | radon | 84.5 | 93.4 | **1.1×** |
|
|
385
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 215.2 | 1962.8 | **9.1×** |
|
|
386
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 71.0 | 363.4 | **5.1×** |
|
|
387
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 154.6 | 608.3 | **3.9×** |
|
|
388
|
+
|
|
389
|
+
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
|
|
390
|
+
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
391
|
+
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
392
|
+
comparisons agree**, and against the libraries the geometric-mean speed-up is **5.99×** (172 of 172
|
|
393
|
+
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
394
|
+
|
|
395
|
+
**Every row is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR), COCO
|
|
396
|
+
matching and bootstrap resampling run in the compiled Rust core; bootstrap intervals, paired bootstrap tests and
|
|
397
|
+
`compare()` evaluate confusion-matrix metrics from counts of each resample's (true, predicted) pairs instead of
|
|
398
|
+
copies of the data. `evaluate()` validates inputs once and builds the confusion
|
|
399
|
+
matrix once for all metrics, and integer labels are encoded without sorting. The rank tests rank the data once
|
|
400
|
+
with a single unstable sort; t-tests, χ², Fisher and McNemar compute their statistics directly, and
|
|
401
|
+
Shapiro–Wilk caches its weights per sample size. Percentiles select exactly from a small bracketed window
|
|
402
|
+
instead of partitioning the whole array; COCO matching runs across all images of a class at once; surface
|
|
403
|
+
distances work on boundary points only; TER, BLEU, ROUGE and METEOR reuse tokenisation, stems and
|
|
404
|
+
edit-distance rows. Every one of these is tested to give the reference's result. Reproduce on
|
|
405
|
+
your machine with `evalsuite benchmark`; full table (1k, 100k and 1M samples, peak memory) and notes in
|
|
406
|
+
[BENCHMARKS.md](https://github.com/mkcs28/evalsuite-python/blob/main/BENCHMARKS.md).
|
|
407
|
+
|
|
408
|
+
## Metrics in this release
|
|
409
|
+
|
|
410
|
+
**Classification** (binary, multiclass, multilabel; micro/macro/weighted/samples/per-class averaging;
|
|
411
|
+
sample weights): accuracy, balanced accuracy, precision, recall, specificity, NPV, F1, F-beta, Jaccard,
|
|
412
|
+
MCC, Cohen's kappa (unweighted, linear, quadratic), Hamming loss, confusion matrix, ROC AUC (binary,
|
|
413
|
+
one-vs-rest, one-vs-one), average precision, ROC and PR curves, log loss, Brier score, top-k accuracy,
|
|
414
|
+
calibration curve and expected calibration error.
|
|
415
|
+
|
|
416
|
+
**Clinical** (binary; `pos_label`; sample weights): sensitivity, specificity, PPV, NPV, positive and
|
|
417
|
+
negative likelihood ratios, diagnostic odds ratio, Youden's J, net benefit and decision curves, and a
|
|
418
|
+
diagnostic report with confidence intervals for all of them.
|
|
419
|
+
|
|
420
|
+
**Calibration**: calibration curve, Brier score, expected and maximum calibration error, calibration slope
|
|
421
|
+
and intercept, Hosmer–Lemeshow test.
|
|
422
|
+
|
|
423
|
+
**Statistics**: confidence intervals (bootstrap percentile/basic/BCa, Wilson, Clopper–Pearson, DeLong),
|
|
424
|
+
paired tests (McNemar, DeLong, paired bootstrap), t-tests (Welch, Student, paired), Mann–Whitney, Wilcoxon,
|
|
425
|
+
Kruskal–Wallis, Friedman, Shapiro–Wilk, χ², Fisher's exact; effect sizes (Cohen's d, Hedges' g, Cliff's
|
|
426
|
+
delta, Cramér's V); multiple-testing corrections (Bonferroni, Holm, Hochberg, Benjamini–Hochberg,
|
|
427
|
+
Benjamini–Yekutieli).
|
|
428
|
+
|
|
429
|
+
**Segmentation** (2-D and 3-D label masks; `ignore_index`; dataset or per-image aggregation): Dice, IoU,
|
|
430
|
+
mIoU, pixel accuracy, mean pixel accuracy, Boundary IoU, Hausdorff distance and HD95, average symmetric
|
|
431
|
+
surface distance (with pixel spacing), confusion matrix and a full report.
|
|
432
|
+
|
|
433
|
+
**Object detection**: box IoU (xyxy, xywh, cxcywh), COCO mAP@[.50:.95], mAP@.50, mAP@.75, mAP and mAR by
|
|
434
|
+
object size, AP per class with COCO or VOC interpolation, precision-recall curves, COCO file import.
|
|
435
|
+
|
|
436
|
+
**Regression** (single and multi-output; sample weights): MAE, MSE, RMSE, R², adjusted R², MAPE, sMAPE,
|
|
437
|
+
MSLE, RMSLE, median absolute error, explained variance, max error, mean bias error, quantile (pinball)
|
|
438
|
+
loss, Huber loss, relative absolute error, relative squared error.
|
|
439
|
+
|
|
440
|
+
**LLM evaluation** (0.4.0): BLEU, sentence BLEU, chrF/chrF++, TER, ROUGE-1/2/L/Lsum, METEOR, CIDEr-D, SPICE,
|
|
441
|
+
perplexity, cross-entropy, Distinct-n, Self-BLEU, MAUVE, BERTScore, embedding similarity, MoverScore, learned
|
|
442
|
+
metrics via `model_score`; faithfulness, hallucination rate, groundedness, citation precision/recall, claim
|
|
443
|
+
verification, knowledge consistency, answer correctness/relevance, abstention, exact match, token F1; win
|
|
444
|
+
rate, Bradley–Terry, Elo, Krippendorff's alpha, Fleiss' kappa, judge agreement and biases, rubric scores;
|
|
445
|
+
pass@k, majority vote, benchmark accuracy; Precision/Recall/Hit rate@k, MRR, MAP, NDCG, context precision,
|
|
446
|
+
recall and relevance; JSON / JSON Schema / XML validity, required fields, tool calls, instruction following.
|
|
447
|
+
|
|
448
|
+
**LLM systems** (0.5.0): harmful-response, refusal, over-refusal, attack-success and red-team success rates,
|
|
449
|
+
expected maximum toxicity, CrowS-Pairs stereotype preference, WEAT, PII leakage, memorization exposure,
|
|
450
|
+
policy violations; adversarial, typo-noise, OOD and code-switching robustness, distribution-shift drop,
|
|
451
|
+
paraphrase / counterfactual / cross-lingual consistency, response stability, contradiction rate, failure and
|
|
452
|
+
recovery rates, prompt sensitivity, truncation sensitivity; adaptive calibration error, risk-coverage curve,
|
|
453
|
+
AURC and E-AURC, selective risk, risk at coverage, coverage at risk, confidence AUROC; task completion,
|
|
454
|
+
invalid tool calls, tool-use efficiency, steps per task, plan adherence, state tracking, tool-failure
|
|
455
|
+
recovery, loop rate, human intervention, cost per task; language ID, bitext mining, language parity, direct
|
|
456
|
+
assessment, cultural appropriateness, language consistency; unit-test pass rate, syntax validity, static
|
|
457
|
+
analysis and security findings, execution success, test coverage, patch acceptance, SWE-bench resolved rate,
|
|
458
|
+
CodeBLEU, cyclomatic complexity and maintainability index, runtime efficiency; long-context accuracy by
|
|
459
|
+
length, needle-in-a-haystack grid, position accuracy, lost-in-the-middle gap, context utilization, summary
|
|
460
|
+
coverage, compression ratio, citation coverage, cross-document consistency; TTFT, TPOT, latency percentiles,
|
|
461
|
+
throughput, token usage, cost, resource utilization, energy per request, requests per second, availability.
|
|
462
|
+
|
|
463
|
+
## Conventions
|
|
464
|
+
|
|
465
|
+
- `average="auto"` resolves to `"binary"` for binary targets and `"macro"` otherwise; the resolved value
|
|
466
|
+
is stored in `result.params["average"]`.
|
|
467
|
+
- Labels are sorted unless you pass `labels=[...]`; that order defines per-class outputs and the columns
|
|
468
|
+
of 2-D `y_prob`.
|
|
469
|
+
- Undefined ratios (zero denominators) return 0 **with an `UndefinedMetricWarning`**; pass
|
|
470
|
+
`zero_division=np.nan` to propagate NaN, or `0`/`1` to choose silently.
|
|
471
|
+
- Domain violations raise clear errors instead of being patched over (for example MAPE with zero targets).
|
|
472
|
+
|
|
473
|
+
## Development
|
|
474
|
+
|
|
475
|
+
Building from source needs a Rust toolchain ([rustup](https://rustup.rs)); the compiled core is in `rust/`
|
|
476
|
+
(`evalsuite-core`, pure Rust, and `evalsuite-py`, the PyO3 bindings), built by maturin.
|
|
477
|
+
|
|
478
|
+
```bash
|
|
479
|
+
python -m venv .venv && source .venv/bin/activate
|
|
480
|
+
pip install -e ".[dev]" # builds the Rust core into evalsuite._core
|
|
481
|
+
pytest --cov=evalsuite
|
|
482
|
+
EVALSUITE_PURE_PYTHON=1 pytest -q # the same suite without the compiled core
|
|
483
|
+
ruff check . && ruff format --check . && mypy
|
|
484
|
+
cargo test --manifest-path rust/Cargo.toml -p evalsuite-core
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
Every compiled kernel is a port of a Python implementation that stays in the package as the reference and
|
|
488
|
+
fallback; `tests/test_native.py` checks that the two give identical results. See CONTRIBUTING.md.
|
|
489
|
+
|
|
490
|
+
## Links
|
|
491
|
+
|
|
492
|
+
- PyPI: https://pypi.org/project/evalsuite-python/
|
|
493
|
+
- Website and documentation: https://evalsuite-nine.vercel.app
|
|
494
|
+
- Website source: https://github.com/mkcs28/evalsuite
|
|
495
|
+
|
|
496
|
+
## Credits
|
|
497
|
+
|
|
498
|
+
Authors and maintainers: **Manoj Kumar C S** and **Nikhil D Bharadwaj**.
|
|
499
|
+
|
|
500
|
+
## License
|
|
501
|
+
|
|
502
|
+
Dual-licensed under either of
|
|
503
|
+
|
|
504
|
+
- MIT license ([LICENSE](LICENSE))
|
|
505
|
+
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))
|
|
506
|
+
|
|
507
|
+
at your option. Unless you explicitly state otherwise, any contribution you submit for inclusion in this
|
|
508
|
+
project shall be dual-licensed as above, without any additional terms or conditions.
|
|
509
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
evalsuite/__init__.py,sha256=YOBo_B7MyeHJIgKg3qRUgjFUvyuLj7ZhWKSJd85cTWo,5898
|
|
2
|
+
evalsuite/__main__.py,sha256=WGNyO21Z-_kfcG3jzektvc6Y71yILjBMGgM-ytTqndE,122
|
|
3
|
+
evalsuite/_bench_metrics.py,sha256=Qn5k7OLLVXTeNAH4pgZ-1weAeXQ7kXypHto9_Xb2IFY,77872
|
|
4
|
+
evalsuite/_core.pyd,sha256=paqoyPYJ4NWR3RLupJworn0TdRJVFr4py2lkLAGAhCs,279040
|
|
5
|
+
evalsuite/_lazy.py,sha256=Pzgbe4sKNFUbEgWZAQIAWFHnWPu-l9sIBl4nzO-OoMU,933
|
|
6
|
+
evalsuite/_native.py,sha256=IA9fPbScdOj1XSjgtUF6bQ45LCSrb10gDTYIhdrKV4o,2136
|
|
7
|
+
evalsuite/api.py,sha256=sAj0fE2yTuA-FdI5m9StjOUZ5UUYeZYXwnOGT5nR9ZA,10502
|
|
8
|
+
evalsuite/benchmarks.py,sha256=bzdv3vhumg8iJXHlEbcH0bO87SQow3kdfjihqupUl_Y,38792
|
|
9
|
+
evalsuite/calibration.py,sha256=T980MhJ458KQGiR6_tWWE5snnm5nSg4EUBVDVMEag-w,15475
|
|
10
|
+
evalsuite/classification/__init__.py,sha256=TEFP120p4ZkHfadD9TuUkI_1Xxblo_PyJDvVbLDXs10,884
|
|
11
|
+
evalsuite/classification/_common.py,sha256=6WEo2KP2NdpgIpN67wZN5-8djQENtyhJE6LUNq18HhA,4654
|
|
12
|
+
evalsuite/classification/metrics.py,sha256=kfz4AZrLsm4WtfbElzTGYXkNzlYKYbrvxg-HkXQbLrY,37989
|
|
13
|
+
evalsuite/cli/__init__.py,sha256=P15qzw4muHGHD-OoFDuy0bX2urrOVjNUha2yQgECeCc,101
|
|
14
|
+
evalsuite/cli/main.py,sha256=gs_9_aFKAlSLmkTFUG4thXM8z7HyvVI3sEPkJj9U9Gk,24600
|
|
15
|
+
evalsuite/clinical/__init__.py,sha256=rx7YIa5WWYr38Pxq5UtsW5RQTbTytvIYqtCUM3ddTWk,567
|
|
16
|
+
evalsuite/clinical/metrics.py,sha256=rWu2E-OYoPSIdKULuC-Io_nMWUo17KYhL6RXdoikIk8,13795
|
|
17
|
+
evalsuite/clinical/report.py,sha256=L1_VuJMiZD0csVm92v6VBsZIX141cxziGJkEdl1CUGE,15362
|
|
18
|
+
evalsuite/core/__init__.py,sha256=Y5cdmoOyBw0fvlhmFkAIIoNiwXDqIQl5dS9qKBpOdfM,94
|
|
19
|
+
evalsuite/core/context.py,sha256=MrokYUitaxilh18sbgXBKKIYZW2_e3SgDOyrBQY1LQg,8868
|
|
20
|
+
evalsuite/core/exceptions.py,sha256=ChHPwqzip_sD-JLMHp9-tRar6SqkMgfQcnOOLDDSNKM,1555
|
|
21
|
+
evalsuite/core/export.py,sha256=0Az8ISw2GhQ07YWynPT4QEtB4leALPpj0aaqVWI-oBg,4403
|
|
22
|
+
evalsuite/core/registry.py,sha256=XRBN6EkXywgX8bBNhLBl4tTAS8xyxBK_KirDYf07wis,2974
|
|
23
|
+
evalsuite/core/result.py,sha256=Ej-7EUT8MppsUq8h_OBsi2GlI5z93FbJ5kB_01qXTEU,15306
|
|
24
|
+
evalsuite/core/types.py,sha256=i077FC3Dcame75t7h3iP735qBCh65eldy9lkMKu94rg,743
|
|
25
|
+
evalsuite/core/validation.py,sha256=T0lFamoAG8fCNhYzpEM1rEKSSxAWJqI9_MILxfvX_BE,11244
|
|
26
|
+
evalsuite/llmsys/__init__.py,sha256=wyPj3t58KyblOcICvzV7C_BZ9JUCIwn-rKilUADzEcU,4842
|
|
27
|
+
evalsuite/llmsys/_common.py,sha256=cmJLAb3ZepsVBdGlei9CR7wiHfWQvE9gdrpnkUnv7zQ,8928
|
|
28
|
+
evalsuite/llmsys/agents.py,sha256=7-DjazOd_8nYzIX11W3aoM_Jzdb4oSrg4ifF-fevFMY,15739
|
|
29
|
+
evalsuite/llmsys/code.py,sha256=kdMNebOV2xxJHZdlAvkQCGywG5gIGxJnnbjOIvWyX5Q,37927
|
|
30
|
+
evalsuite/llmsys/efficiency.py,sha256=GBwYATVJORBOOkuNjDnUWzBac937NtAG5Zbs80egKA0,14241
|
|
31
|
+
evalsuite/llmsys/longcontext.py,sha256=XUui1NZfD3SRNV4OITlpEaj1fpDJOnxZmbOzP3GBWMA,15506
|
|
32
|
+
evalsuite/llmsys/multilingual.py,sha256=sv4iSHB-Fw4moUgIqtifqKP58ODYRGJ6okncaFYvb5M,14580
|
|
33
|
+
evalsuite/llmsys/robustness.py,sha256=5iT-S5PLlz53-ju2J3R-AhYDdDxNVKv9a-51Nfb-fIs,20881
|
|
34
|
+
evalsuite/llmsys/safety.py,sha256=AEbdc-89A7RkeCFduI005tTMDdblWtraZapu_Bn8bGM,23059
|
|
35
|
+
evalsuite/llmsys/uncertainty.py,sha256=sSqcXT2RJywnlZobYVPPf_g1wQemrShcPyehLXQUW9o,9596
|
|
36
|
+
evalsuite/plot.py,sha256=BKTJND7fHT-9Wt4M5QTtM2QacUR6372yMC29rxQOZQc,26700
|
|
37
|
+
evalsuite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
+
evalsuite/regression/__init__.py,sha256=-Ja_7IxfF4lK89VzymFkRBfj-PgHp5IvVDOQOhwesp4,612
|
|
39
|
+
evalsuite/regression/metrics.py,sha256=qV1JFB8xcdyVr40v7Vn879Ua5gzsgS_6-f7irgxXso8,24116
|
|
40
|
+
evalsuite/reporting.py,sha256=o32chgk02Q6SXwaxDcxa2ToIUHoXVWiPTB4B9m4Fcvw,9856
|
|
41
|
+
evalsuite/stats/__init__.py,sha256=4Np4XQBJv3D7jcrnon5V11CN2_d3oCmtzcLuQNQVbKM,1233
|
|
42
|
+
evalsuite/stats/_resolve.py,sha256=hzEp_Se8Ab42c0IiClFULPLQxVxTXGVJNdkamIQAxik,10505
|
|
43
|
+
evalsuite/stats/compare.py,sha256=ngNnOKCtEneByXOPktBSavCcfGWjDYpwcc3RuQvVHu0,18731
|
|
44
|
+
evalsuite/stats/effect.py,sha256=Pc1btEQc1t5boEGN90r1T_ogVsrSwDzeHTl7AUhIeZQ,7445
|
|
45
|
+
evalsuite/stats/hypothesis.py,sha256=eOvUgO5O51qf-boIrBb-tzgLSXLfxJUjCPaY5TV4RSk,25139
|
|
46
|
+
evalsuite/stats/intervals.py,sha256=B5oZ5eWi9KvDfZNAR-_CDthgFw1f35GWj5a0SlRoMSg,14998
|
|
47
|
+
evalsuite/stats/paired.py,sha256=Ytu01y3w2axflD12BroEqgdyJIM-9McSpzwwRNyBPBM,8653
|
|
48
|
+
evalsuite/stats/results.py,sha256=F3kgh8X54olxLydXTE7uWqQKMqEKZ0TyExUbEoBOKds,4536
|
|
49
|
+
evalsuite/text/__init__.py,sha256=Eg91OPNYZQIBWdhfik-uMaaXVtT8ppwfxci0jl1F6v0,3786
|
|
50
|
+
evalsuite/text/_common.py,sha256=f22aQDQwzyIHzyxH2vMrarmw9QYyXKndJmBxaGu2H2Q,3887
|
|
51
|
+
evalsuite/text/factuality.py,sha256=vrKE4R47oY3CbRHi9b-v_jlaMMTVDGON-qY44nxDWco,21241
|
|
52
|
+
evalsuite/text/generation.py,sha256=rY20hILvWteAvsZhbZHeEpxcql5XFcSIELX6L95GnkQ,53005
|
|
53
|
+
evalsuite/text/judge.py,sha256=JvJRgpZpR9YtgjECUTptxAbZSYkdHWZD8ikCiErT4XE,24122
|
|
54
|
+
evalsuite/text/qa.py,sha256=cCZkYGsJYtqOxHg-sXtJfqmWLSEP7tNQaPhJ9KLKIig,4205
|
|
55
|
+
evalsuite/text/rag.py,sha256=KW1ssSli0auM6AmCieJFV41CEZrsCUIZsmxRoVTUY9Y,9876
|
|
56
|
+
evalsuite/text/reasoning.py,sha256=NCMduWUy9n6_qSFNDfbRBFQzVuZhmuA-aUvdUj1nhls,9100
|
|
57
|
+
evalsuite/text/report.py,sha256=Apic5fD-4lePbv26UJLy64ZxW0pQFVjbsy7YwUzIsCo,6399
|
|
58
|
+
evalsuite/text/retrieval.py,sha256=wpSOMSvWOZGwiYjHempVW6xTN7xiClSRDO3amq9nfvk,9207
|
|
59
|
+
evalsuite/text/semantic.py,sha256=3LuWcybP5Sb-hGIDHNqCSlEAUq6fBUIgEJys2QIKb9c,23503
|
|
60
|
+
evalsuite/text/spice.py,sha256=0FcqECAr6J6AiO65rCqilJl_MDD62uzot3xjeWtV0WY,7009
|
|
61
|
+
evalsuite/text/structured.py,sha256=_M12ryy3v4ZoERbt7pah18OAOSfGJnMwrcKOPOvdRFU,32774
|
|
62
|
+
evalsuite/version.py,sha256=KICZ5oktB7cBXPgaqpC8Mdkpilj3qQeXEmRZgvAhb4w,101
|
|
63
|
+
evalsuite/vision/__init__.py,sha256=EmORsfva46we9j5euB1QIGDyvGeG2V3tr2zAKILhsmU,1038
|
|
64
|
+
evalsuite/vision/detection.py,sha256=wO0s3bfh5dV0GuZnVyltR7m_m2jPhRYYQSG599b2Fv4,30443
|
|
65
|
+
evalsuite/vision/segmentation.py,sha256=3LIqKFdXsbkRWrp9T8xouVVvNkll05olDunaNAdlbKI,42160
|
|
66
|
+
evalsuite_python-0.6.0.dist-info/METADATA,sha256=awBj1UZ_ao3VuG8d7H334GEgTHUwtkhjhE3gWlka4Pw,28104
|
|
67
|
+
evalsuite_python-0.6.0.dist-info/WHEEL,sha256=xw8F9xBWUOgm5ym2S9tihj_bLJOb723bjhA0kdANo2I,95
|
|
68
|
+
evalsuite_python-0.6.0.dist-info/entry_points.txt,sha256=9SWD6kI-P9LkHqQgdvW4YtulmkRRcie6nWjS5W3eQWU,52
|
|
69
|
+
evalsuite_python-0.6.0.dist-info/licenses/LICENSE,sha256=LfOPvxuBDWYv-kUhaaCNLDI988oXMB4tIfljoh8sohw,1116
|
|
70
|
+
evalsuite_python-0.6.0.dist-info/licenses/LICENSE-APACHE,sha256=8IV17f1_XH6Xna77sbbDm7_SyJJVSb0utgp9gvAhn8E,10975
|
|
71
|
+
evalsuite_python-0.6.0.dist-info/sboms/evalsuite-py.cyclonedx.json,sha256=RHcqnmgblmZJxFHWHHLT2F2IMjwMDzZ_RZscuAqecVQ,17472
|
|
72
|
+
evalsuite_python-0.6.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Manoj Kumar C S and Nikhil D Bharadwaj
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|