evalsuite-python 0.5.4__py3-none-any.whl → 0.5.5__py3-none-any.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/llmsys/_common.py +54 -7
- evalsuite/stats/hypothesis.py +89 -4
- evalsuite/text/generation.py +10 -2
- evalsuite/text/judge.py +4 -4
- evalsuite/text/semantic.py +19 -5
- evalsuite/version.py +1 -1
- evalsuite/vision/detection.py +60 -35
- evalsuite/vision/segmentation.py +39 -10
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/METADATA +39 -38
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/RECORD +14 -14
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/WHEEL +0 -0
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/entry_points.txt +0 -0
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/licenses/LICENSE +0 -0
- {evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/licenses/LICENSE-APACHE +0 -0
evalsuite/llmsys/_common.py
CHANGED
|
@@ -116,17 +116,64 @@ def by_group(values: np.ndarray, groups: Optional[Sequence[Any]], name: str = "g
|
|
|
116
116
|
return out
|
|
117
117
|
|
|
118
118
|
|
|
119
|
+
def _order_stats_partition(a: np.ndarray, ks: list[int]) -> dict[int, float]:
|
|
120
|
+
part = np.partition(a, ks)
|
|
121
|
+
return {k: float(part[k]) for k in ks}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def _order_stats_bracketed(a: np.ndarray, ks: list[int]) -> Optional[dict[int, float]]:
|
|
125
|
+
"""Exact order statistics of a large array without partitioning all of it.
|
|
126
|
+
|
|
127
|
+
A sorted strided sample (about 8k values) brackets each wanted rank; one pass counts the values below the
|
|
128
|
+
bracket and extracts those inside it, and only that small subset is partitioned. Overlapping brackets are
|
|
129
|
+
merged. Returns None if a bracket misses its rank (possible only for adversarially ordered data), and the
|
|
130
|
+
caller falls back to a full partition, so the result is always exact."""
|
|
131
|
+
n = a.size
|
|
132
|
+
s = np.sort(a[:: max(1, n // 8192)])
|
|
133
|
+
ns = s.size
|
|
134
|
+
brackets: list[list[Any]] = []
|
|
135
|
+
for k in ks:
|
|
136
|
+
r = k / (n - 1) * (ns - 1)
|
|
137
|
+
margin = 6 * math.sqrt(max(r * (ns - r) / ns, 1.0)) + 4
|
|
138
|
+
lo_i, hi_i = max(0, math.floor(r - margin)), min(ns - 1, math.ceil(r + margin))
|
|
139
|
+
if brackets and lo_i <= brackets[-1][1]:
|
|
140
|
+
brackets[-1][1] = max(brackets[-1][1], hi_i)
|
|
141
|
+
brackets[-1][2].append(k)
|
|
142
|
+
else:
|
|
143
|
+
brackets.append([lo_i, hi_i, [k]])
|
|
144
|
+
out: dict[int, float] = {}
|
|
145
|
+
for lo_i, hi_i, group in brackets:
|
|
146
|
+
mask = np.ones(n, dtype=bool) if lo_i == 0 else a >= s[lo_i]
|
|
147
|
+
below = 0 if lo_i == 0 else n - int(np.count_nonzero(mask))
|
|
148
|
+
if hi_i < ns - 1:
|
|
149
|
+
mask &= a <= s[hi_i]
|
|
150
|
+
window = a[mask]
|
|
151
|
+
rel = [k - below for k in group]
|
|
152
|
+
if rel[0] < 0 or rel[-1] >= window.size:
|
|
153
|
+
return None
|
|
154
|
+
part = np.partition(window, rel)
|
|
155
|
+
for k, r_ in zip(group, rel):
|
|
156
|
+
out[k] = float(part[r_])
|
|
157
|
+
return out
|
|
158
|
+
|
|
159
|
+
|
|
119
160
|
def quantiles(a: np.ndarray, qs: Sequence[float]) -> list[float]:
|
|
120
|
-
"""Percentiles ``qs`` (0-100, linear interpolation,
|
|
161
|
+
"""Percentiles ``qs`` (0-100, linear interpolation, as ``np.percentile``). Large arrays use bracketed
|
|
162
|
+
selection on a small window per percentile; small ones one partition. Both are exact."""
|
|
121
163
|
n = a.size
|
|
122
|
-
pos = [(n - 1) * q / 100.0 for q in qs]
|
|
123
|
-
lo = [
|
|
124
|
-
|
|
125
|
-
|
|
164
|
+
pos = [(n - 1) * (q / 100.0) for q in qs] # NumPy's order of operations
|
|
165
|
+
lo = [math.floor(h) for h in pos]
|
|
166
|
+
ks = sorted({k for i in lo for k in (i, min(i + 1, n - 1))})
|
|
167
|
+
stats = _order_stats_bracketed(a, ks) if n >= 65536 else None
|
|
168
|
+
if stats is None:
|
|
169
|
+
stats = _order_stats_partition(a, ks)
|
|
126
170
|
out = []
|
|
127
171
|
for h, i in zip(pos, lo):
|
|
128
|
-
v0, v1 =
|
|
129
|
-
|
|
172
|
+
v0, v1 = stats[i], stats[min(i + 1, n - 1)]
|
|
173
|
+
t = h - i
|
|
174
|
+
d = v1 - v0
|
|
175
|
+
# NumPy's lerp, so the result is bit-for-bit np.percentile(..., method="linear")
|
|
176
|
+
out.append(v1 - d * (1 - t) if t >= 0.5 else v0 + d * t)
|
|
130
177
|
return out
|
|
131
178
|
|
|
132
179
|
|
evalsuite/stats/hypothesis.py
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"""Hypothesis tests for comparing scores, groups and categorical outcomes.
|
|
2
2
|
|
|
3
3
|
Each test returns a :class:`TestResult` with the statistic, p-value, an effect size in ``estimate`` (named in
|
|
4
|
-
``params["effect_size"]``) and, where standard, a confidence interval.
|
|
5
|
-
|
|
4
|
+
``params["effect_size"]``) and, where standard, a confidence interval. SciPy is the reference: the common tests
|
|
5
|
+
compute the same statistics directly (one ranking pass, closed-form tails, cached Shapiro–Wilk weights) and are
|
|
6
|
+
tested to match SciPy, falling back to SciPy where it uses a different algorithm (exact permutation tests,
|
|
7
|
+
older Shapiro–Wilk); EvalSuite adds input validation, effect sizes and consistent results.
|
|
6
8
|
"""
|
|
7
9
|
|
|
8
10
|
from __future__ import annotations
|
|
9
11
|
|
|
12
|
+
import functools
|
|
10
13
|
import math
|
|
14
|
+
import warnings
|
|
11
15
|
from typing import TYPE_CHECKING, Literal, Optional
|
|
12
16
|
|
|
13
17
|
import numpy as np
|
|
@@ -398,8 +402,89 @@ def shapiro_wilk_test(x: ArrayLike) -> TestResult:
|
|
|
398
402
|
a = _vec(x, "x", 3)
|
|
399
403
|
if np.ptp(a) == 0:
|
|
400
404
|
raise StatisticalTestError("The Shapiro–Wilk test is undefined for constant data.")
|
|
401
|
-
|
|
402
|
-
|
|
405
|
+
fast = _shapiro_fast(a)
|
|
406
|
+
if fast is None:
|
|
407
|
+
res = stats.shapiro(a)
|
|
408
|
+
w, p = float(res.statistic), float(res.pvalue)
|
|
409
|
+
else:
|
|
410
|
+
w, p = fast
|
|
411
|
+
return TestResult("shapiro-wilk", w, p, params={"n": int(a.shape[0])})
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
def _scipy_has_numpy_swilk() -> bool:
|
|
415
|
+
try:
|
|
416
|
+
from scipy.stats import _morestats
|
|
417
|
+
|
|
418
|
+
return hasattr(_morestats, "_swilk_w")
|
|
419
|
+
except ImportError: # pragma: no cover
|
|
420
|
+
return False
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
@functools.lru_cache(maxsize=64)
|
|
424
|
+
def _swilk_coefficients(n: int) -> NDArray[np.float64]:
|
|
425
|
+
"""Royston's (1992) Shapiro–Wilk weights for sample size n (n > 3), exactly as scipy.stats.shapiro computes
|
|
426
|
+
them in SciPy >= 1.12. They depend only on n, so they are computed once per size."""
|
|
427
|
+
vdot = getattr(np, "vecdot", np.dot)
|
|
428
|
+
i = np.arange(1, n + 1, dtype=np.float64)
|
|
429
|
+
m = special.ndtri((i - 3 / 8) / (n + 1 / 4))
|
|
430
|
+
u = n**-0.5
|
|
431
|
+
mtm = vdot(m, m)
|
|
432
|
+
c = mtm**-0.5 * m
|
|
433
|
+
mnm1, mn = m[-2], m[-1]
|
|
434
|
+
cnm1, cn = c[-2], c[-1]
|
|
435
|
+
an = cn + 0.221157 * u - 0.147981 * u**2 - 2.071190 * u**3 + 4.434685 * u**4 - 2.706056 * u**5
|
|
436
|
+
anm1 = cnm1 + 0.042981 * u - 0.293762 * u**2 - 1.752461 * u**3 + 5.682633 * u**4 - 3.582633 * u**5
|
|
437
|
+
phi = (
|
|
438
|
+
(mtm - 2 * mn**2) / (1 - 2 * an**2)
|
|
439
|
+
if n <= 5
|
|
440
|
+
else (mtm - 2 * mn**2 - 2 * mnm1**2) / (1 - 2 * an**2 - 2 * anm1**2)
|
|
441
|
+
)
|
|
442
|
+
a: NDArray[np.float64] = np.asarray(phi**-0.5 * m, dtype=np.float64)
|
|
443
|
+
if n > 5:
|
|
444
|
+
a[-2] = anm1
|
|
445
|
+
a[1] = -anm1
|
|
446
|
+
a[-1] = an
|
|
447
|
+
a[0] = -an
|
|
448
|
+
a.setflags(write=False)
|
|
449
|
+
return a
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
def _shapiro_fast(x: NDArray[np.float64]) -> Optional[tuple[float, float]]:
|
|
453
|
+
"""scipy.stats.shapiro without its per-call overhead and with cached weights; None on SciPy < 1.12, whose
|
|
454
|
+
Fortran implementation (a different algorithm) is then used instead so results always match SciPy."""
|
|
455
|
+
if not _scipy_has_numpy_swilk():
|
|
456
|
+
return None
|
|
457
|
+
vdot = getattr(np, "vecdot", np.dot)
|
|
458
|
+
n = x.shape[0]
|
|
459
|
+
y = np.sort(x)
|
|
460
|
+
y -= x[n // 2] # SciPy subtracts this element (of the unsorted input) for numerical stability
|
|
461
|
+
if n == 3:
|
|
462
|
+
c = math.sqrt(2) / 2
|
|
463
|
+
a3 = np.array([-c, 0.0, c])
|
|
464
|
+
yc = y - y.mean()
|
|
465
|
+
w = min(max(float(vdot(a3, y) ** 2 / vdot(yc, yc)), 0.75), 1.0)
|
|
466
|
+
return w, min(max(1.0 - 6 / math.pi * math.acos(math.sqrt(w)), 0.0), 1.0)
|
|
467
|
+
a = _swilk_coefficients(n)
|
|
468
|
+
yc = y - y.mean()
|
|
469
|
+
w = float(vdot(a, y) ** 2 / vdot(yc, yc))
|
|
470
|
+
if n <= 11:
|
|
471
|
+
u = n
|
|
472
|
+
gamma = -2.273 + 0.459 * u
|
|
473
|
+
mu = 0.5440 - 0.39978 * u + 0.025054 * u**2 - 0.0006714 * u**3
|
|
474
|
+
sigma = math.exp(1.3822 - 0.77857 * u + 0.062767 * u**2 - 0.0020322 * u**3)
|
|
475
|
+
g = -math.log(gamma - math.log(1 - w))
|
|
476
|
+
else:
|
|
477
|
+
lu = math.log(n)
|
|
478
|
+
mu = -1.5861 - 0.31082 * lu - 0.083751 * lu**2 + 0.0038915 * lu**3
|
|
479
|
+
sigma = math.exp(-0.4803 - 0.082676 * lu + 0.0030302 * lu**2)
|
|
480
|
+
g = math.log(1 - w)
|
|
481
|
+
if n > 5000:
|
|
482
|
+
warnings.warn(
|
|
483
|
+
f"scipy.stats.shapiro: For N > 5000, computed p-value may not be accurate. Current N is {n}.",
|
|
484
|
+
UserWarning,
|
|
485
|
+
stacklevel=3,
|
|
486
|
+
)
|
|
487
|
+
return w, float(special.ndtr(-(g - mu) / sigma))
|
|
403
488
|
|
|
404
489
|
|
|
405
490
|
def _table(table: ArrayLike) -> NDArray[np.float64]:
|
evalsuite/text/generation.py
CHANGED
|
@@ -966,6 +966,15 @@ _REF_BANERJEE = (
|
|
|
966
966
|
)
|
|
967
967
|
|
|
968
968
|
|
|
969
|
+
@functools.lru_cache(maxsize=1)
|
|
970
|
+
def _porter_stem() -> Callable[[str], str]:
|
|
971
|
+
"""NLTK's Porter stemmer (the one NLTK's METEOR uses), memoised per word: stemming is a pure function of the
|
|
972
|
+
word, and the same words recur across a corpus, so each distinct word is stemmed once."""
|
|
973
|
+
from nltk.stem.porter import PorterStemmer
|
|
974
|
+
|
|
975
|
+
return functools.lru_cache(maxsize=2**16)(PorterStemmer().stem)
|
|
976
|
+
|
|
977
|
+
|
|
969
978
|
def _meteor_match(
|
|
970
979
|
hyp: list[tuple[int, str]], ref: list[tuple[int, str]]
|
|
971
980
|
) -> tuple[list[tuple[int, int]], Any, Any]:
|
|
@@ -1077,14 +1086,13 @@ def meteor(
|
|
|
1077
1086
|
stem_fn: Optional[Callable[[str], str]]
|
|
1078
1087
|
if stemmer == "porter":
|
|
1079
1088
|
try:
|
|
1080
|
-
|
|
1089
|
+
stem_fn = _porter_stem()
|
|
1081
1090
|
except ImportError as exc:
|
|
1082
1091
|
from ..core.exceptions import OptionalDependencyError
|
|
1083
1092
|
|
|
1084
1093
|
raise OptionalDependencyError(
|
|
1085
1094
|
"nltk", "llm", "METEOR's default Porter stemmer (or pass stemmer=None)"
|
|
1086
1095
|
) from exc
|
|
1087
|
-
stem_fn = PorterStemmer().stem
|
|
1088
1096
|
elif stemmer is None or callable(stemmer):
|
|
1089
1097
|
stem_fn = stemmer
|
|
1090
1098
|
else:
|
evalsuite/text/judge.py
CHANGED
|
@@ -266,14 +266,14 @@ def krippendorff_alpha(ratings: Any, *, level: str = "nominal") -> MetricResult:
|
|
|
266
266
|
a = _reliability_matrix(ratings)
|
|
267
267
|
if level not in ("nominal", "ordinal", "interval", "ratio"):
|
|
268
268
|
raise InputValidationError("level must be 'nominal', 'ordinal', 'interval' or 'ratio'.")
|
|
269
|
-
|
|
269
|
+
mask = ~np.isnan(a)
|
|
270
|
+
values, codes = np.unique(a[mask], return_inverse=True) # sorted values and each rating's code, one pass
|
|
270
271
|
if values.size < 2:
|
|
271
272
|
raise InputValidationError("Krippendorff's alpha needs at least two distinct rating values.")
|
|
272
273
|
v = values.size
|
|
273
274
|
# counts[u, c]: how many raters gave item u the value c (vectorised coincidence matrix)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
codes = np.searchsorted(values, a[mask])
|
|
275
|
+
items = np.nonzero(mask)[1] # item (column) of each rating, row-major like a[mask]
|
|
276
|
+
codes = codes.ravel()
|
|
277
277
|
counts = np.bincount(items * v + codes, minlength=a.shape[1] * v).reshape(a.shape[1], v).astype(np.float64)
|
|
278
278
|
m_u = counts.sum(axis=1)
|
|
279
279
|
pairable = m_u >= 2
|
evalsuite/text/semantic.py
CHANGED
|
@@ -217,6 +217,16 @@ def embedding_similarity(
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
# ---------------------------------------------------------------- MoverScore
|
|
220
|
+
def _euclidean_cost(x: NDArray[np.float64], y: NDArray[np.float64]) -> NDArray[np.float64]:
|
|
221
|
+
"""Pairwise Euclidean distances from ‖x‖² + ‖y‖² − 2x·y (one matrix product), computed exactly as POT's
|
|
222
|
+
``ot.dist(..., metric="euclidean")`` so transport costs match POT bit for bit."""
|
|
223
|
+
c = -2 * np.dot(x, y.T)
|
|
224
|
+
c += np.einsum("ij,ij->i", x, x)[:, None]
|
|
225
|
+
c += np.einsum("ij,ij->i", y, y)[None, :]
|
|
226
|
+
out: NDArray[np.float64] = np.sqrt(np.maximum(c, 0))
|
|
227
|
+
return out
|
|
228
|
+
|
|
229
|
+
|
|
220
230
|
def _emd(
|
|
221
231
|
a: NDArray[np.float64], b: NDArray[np.float64], cost: NDArray[np.float64], *, uniform: bool = False
|
|
222
232
|
) -> float:
|
|
@@ -227,10 +237,15 @@ def _emd(
|
|
|
227
237
|
SciPy's Hungarian solver; general weights use linear programming (SciPy HiGHS). All three are exact."""
|
|
228
238
|
try:
|
|
229
239
|
import ot
|
|
230
|
-
|
|
231
|
-
return float(ot.emd2(a, b, cost))
|
|
232
240
|
except ImportError:
|
|
233
|
-
|
|
241
|
+
ot = None
|
|
242
|
+
if ot is not None:
|
|
243
|
+
try:
|
|
244
|
+
# The marginals are already validated and the duals are not used, so POT's checks and dual centring
|
|
245
|
+
# are skipped; the transport cost is unchanged.
|
|
246
|
+
return float(ot.emd2(a, b, cost, check_marginals=False, center_dual=False))
|
|
247
|
+
except TypeError: # POT versions without these options
|
|
248
|
+
return float(ot.emd2(a, b, cost))
|
|
234
249
|
n, m = cost.shape
|
|
235
250
|
if uniform:
|
|
236
251
|
from scipy.optimize import linear_sum_assignment
|
|
@@ -284,8 +299,7 @@ def moverscore(
|
|
|
284
299
|
for k, (r, p) in enumerate(zip(refs, preds)):
|
|
285
300
|
wr = _weights(rw[k], r.shape[0], "reference_weights")
|
|
286
301
|
wp = _weights(pw[k], p.shape[0], "prediction_weights")
|
|
287
|
-
|
|
288
|
-
cost = np.sqrt(np.maximum(((ru[:, None, :] - pu[None, :, :]) ** 2).sum(-1), 0))
|
|
302
|
+
cost = _euclidean_cost(_unit(r), _unit(p))
|
|
289
303
|
uniform = rw[k] is None and pw[k] is None
|
|
290
304
|
scores[k] = 1.0 - _emd(wr / wr.sum(), wp / wp.sum(), cost, uniform=uniform)
|
|
291
305
|
return _finish("moverscore", "MoverScore", scores, average, {"weighted": reference_weights is not None})
|
evalsuite/version.py
CHANGED
evalsuite/vision/detection.py
CHANGED
|
@@ -218,41 +218,66 @@ def _prepare(images: list[_Image], max_det: int) -> tuple[list[int], dict[int, l
|
|
|
218
218
|
return cats, pairs
|
|
219
219
|
|
|
220
220
|
|
|
221
|
-
def
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
221
|
+
def _evaluate_images(
|
|
222
|
+
pairs: list[_Pair], area_rng: tuple[float, float], iou_thrs: NDArray[np.float64]
|
|
223
|
+
) -> list[_Eval]:
|
|
224
|
+
"""COCOeval's per-image greedy matching for many images at once (one class, one area range).
|
|
225
|
+
|
|
226
|
+
Images are independent, so their matchings run side by side on arrays padded to the largest image: one Python
|
|
227
|
+
step per detection slot instead of one per detection. Per image this is exactly COCOeval.evaluateImg: ground
|
|
228
|
+
truths sorted with ignored ones last; each detection, in score order, takes the last best-IoU available
|
|
229
|
+
ground truth at or above the threshold, preferring non-ignored ones; crowd regions stay available after a
|
|
230
|
+
match; unmatched detections outside the area range are ignored."""
|
|
231
|
+
p_n = len(pairs)
|
|
232
|
+
if p_n == 0:
|
|
233
|
+
return []
|
|
234
|
+
t_n = len(iou_thrs)
|
|
235
|
+
g_sizes = np.array([pr.gt_b.shape[0] for pr in pairs])
|
|
236
|
+
d_sizes = np.array([pr.dt_b.shape[0] for pr in pairs])
|
|
237
|
+
g_max, d_max = int(g_sizes.max()), int(d_sizes.max())
|
|
238
|
+
lo, hi = area_rng
|
|
239
|
+
g_ign_list = []
|
|
240
|
+
gign = np.ones((p_n, g_max), dtype=bool)
|
|
241
|
+
crowd = np.zeros((p_n, g_max), dtype=bool)
|
|
242
|
+
ious = np.full((p_n, d_max, g_max), -1.0)
|
|
243
|
+
dt_out = np.zeros((p_n, d_max), dtype=bool)
|
|
244
|
+
for i, pr in enumerate(pairs):
|
|
245
|
+
g_ignore = pr.gt_crowd | (pr.gt_area < lo) | (pr.gt_area > hi)
|
|
246
|
+
gorder = np.argsort(g_ignore, kind="mergesort")
|
|
247
|
+
g_ignore = g_ignore[gorder]
|
|
248
|
+
g_ign_list.append(g_ignore)
|
|
249
|
+
g, d = g_ignore.shape[0], pr.dt_b.shape[0]
|
|
250
|
+
gign[i, :g] = g_ignore
|
|
251
|
+
crowd[i, :g] = pr.gt_crowd[gorder]
|
|
252
|
+
if g and d:
|
|
253
|
+
ious[i, :d, :g] = pr.ious[:, gorder]
|
|
254
|
+
dt_out[i, :d] = (pr.dt_area < lo) | (pr.dt_area > hi)
|
|
255
|
+
gtm = np.zeros((p_n, t_n, g_max), dtype=bool)
|
|
256
|
+
dtm = np.zeros((p_n, t_n, d_max), dtype=bool)
|
|
257
|
+
dt_ig = np.zeros((p_n, t_n, d_max), dtype=bool)
|
|
258
|
+
thr = np.minimum(np.asarray(iou_thrs, dtype=np.float64), 1 - 1e-10)[None, :, None]
|
|
259
|
+
if g_max:
|
|
260
|
+
p_idx = np.broadcast_to(np.arange(p_n)[:, None], (p_n, t_n))
|
|
261
|
+
t_idx = np.broadcast_to(np.arange(t_n)[None, :], (p_n, t_n))
|
|
262
|
+
not_ign = ~gign[:, None, :]
|
|
263
|
+
for di in range(d_max):
|
|
264
|
+
row = ious[:, di, :][:, None, :] # (P, 1, G); padding is -1, never above a threshold
|
|
265
|
+
ok = (~gtm | crowd[:, None, :]) & (row >= thr)
|
|
266
|
+
regular = ok & not_ign
|
|
267
|
+
cand = np.where(regular.any(2, keepdims=True), regular, ok)
|
|
268
|
+
found = cand.any(2)
|
|
244
269
|
if not found.any():
|
|
245
270
|
continue
|
|
246
|
-
vals = np.where(cand, row
|
|
247
|
-
m =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
271
|
+
vals = np.where(cand, row, -1.0)
|
|
272
|
+
m = g_max - 1 - np.argmax(vals[:, :, ::-1], axis=2) # the last best ground truth, as COCOeval
|
|
273
|
+
dtm[:, :, di] = found
|
|
274
|
+
dt_ig[:, :, di] = found & gign[p_idx, m]
|
|
275
|
+
gtm[p_idx[found], t_idx[found], m[found]] = True
|
|
276
|
+
dt_ig |= ~dtm & dt_out[:, None, :]
|
|
277
|
+
return [
|
|
278
|
+
_Eval(pr.dt_s, dtm[i, :, : d_sizes[i]], dt_ig[i, :, : d_sizes[i]], g_ign_list[i])
|
|
279
|
+
for i, pr in enumerate(pairs)
|
|
280
|
+
]
|
|
256
281
|
|
|
257
282
|
|
|
258
283
|
def _coco_eval(
|
|
@@ -269,7 +294,7 @@ def _coco_eval(
|
|
|
269
294
|
recall = -np.ones((t_n, k_n, a_n, m_n))
|
|
270
295
|
for k, cat in enumerate(cats):
|
|
271
296
|
for a, area_name in enumerate(areas):
|
|
272
|
-
evals = [
|
|
297
|
+
evals = _evaluate_images(pairs[cat], _AREAS[area_name], iou_thrs)
|
|
273
298
|
if not evals:
|
|
274
299
|
continue
|
|
275
300
|
gt_ignore = np.concatenate([e.gt_ignore for e in evals])
|
|
@@ -566,7 +591,7 @@ def average_precision_detection(
|
|
|
566
591
|
cats, pairs = _prepare(images, int(max_detections))
|
|
567
592
|
per = np.full(len(cats), math.nan)
|
|
568
593
|
for k, cat in enumerate(cats):
|
|
569
|
-
evals = [
|
|
594
|
+
evals = _evaluate_images(pairs[cat], _AREAS["all"], np.array([t]))
|
|
570
595
|
npig = int(sum(np.count_nonzero(~e.gt_ignore) for e in evals))
|
|
571
596
|
if npig == 0:
|
|
572
597
|
continue
|
evalsuite/vision/segmentation.py
CHANGED
|
@@ -509,26 +509,51 @@ def _surface(mask: NDArray[np.bool_]) -> NDArray[np.bool_]:
|
|
|
509
509
|
"""Foreground pixels with at least one background neighbour (4/6-connectivity)."""
|
|
510
510
|
if not mask.any():
|
|
511
511
|
return mask
|
|
512
|
-
|
|
513
|
-
|
|
512
|
+
# Erosion with the cross-shaped structure (border = background): a pixel stays interior only if it and its
|
|
513
|
+
# 2·ndim face neighbours are all foreground. Same result as ndimage.binary_erosion, without its overhead.
|
|
514
|
+
interior = mask.copy()
|
|
515
|
+
full = [slice(None)] * mask.ndim
|
|
516
|
+
for ax in range(mask.ndim):
|
|
517
|
+
lo, hi, first, last = list(full), list(full), list(full), list(full)
|
|
518
|
+
lo[ax], hi[ax] = slice(None, -1), slice(1, None)
|
|
519
|
+
first[ax], last[ax] = slice(0, 1), slice(-1, None)
|
|
520
|
+
interior[tuple(hi)] &= mask[tuple(lo)] # neighbour before along this axis
|
|
521
|
+
interior[tuple(lo)] &= mask[tuple(hi)] # neighbour after
|
|
522
|
+
interior[tuple(first)] = False # pixels on the image border touch the background outside
|
|
523
|
+
interior[tuple(last)] = False
|
|
524
|
+
out: NDArray[np.bool_] = mask & ~interior
|
|
514
525
|
return out
|
|
515
526
|
|
|
516
527
|
|
|
528
|
+
def _nearest(src: NDArray[np.float64], dst: NDArray[np.float64]) -> NDArray[np.float64]:
|
|
529
|
+
"""Distance from each point of ``src`` to its nearest point of ``dst`` by direct comparison, in chunks of
|
|
530
|
+
rows so memory stays bounded; the square root is taken after the minimum (it is monotonic)."""
|
|
531
|
+
out = np.empty(src.shape[0])
|
|
532
|
+
step = max(1, 262144 // max(dst.shape[0], 1))
|
|
533
|
+
for i in range(0, src.shape[0], step):
|
|
534
|
+
diff = src[i : i + step, None, :] - dst[None, :, :]
|
|
535
|
+
out[i : i + step] = np.einsum("ijk,ijk->ij", diff, diff).min(axis=1)
|
|
536
|
+
return np.sqrt(out)
|
|
537
|
+
|
|
538
|
+
|
|
517
539
|
def _surface_distances(
|
|
518
540
|
a_surface: NDArray[np.bool_], b_surface: NDArray[np.bool_], spacing: Optional[Sequence[float]]
|
|
519
541
|
) -> tuple[NDArray[np.float64], NDArray[np.float64]]:
|
|
520
542
|
"""Nearest-neighbour distances between the two surfaces, both ways (A→B, B→A).
|
|
521
543
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
544
|
+
Works on the surface points only (never a distance transform of the whole image): small surfaces are
|
|
545
|
+
compared directly, which beats building trees, and large ones use k-d trees. Both give the exact Euclidean
|
|
546
|
+
nearest-surface distance."""
|
|
526
547
|
pa = np.argwhere(a_surface).astype(np.float64)
|
|
527
548
|
pb = np.argwhere(b_surface).astype(np.float64)
|
|
528
549
|
if spacing is not None:
|
|
529
550
|
sc = np.asarray(spacing, dtype=np.float64)
|
|
530
551
|
pa *= sc
|
|
531
552
|
pb *= sc
|
|
553
|
+
if pa.shape[0] * pb.shape[0] <= 4_000_000:
|
|
554
|
+
return _nearest(pa, pb), _nearest(pb, pa)
|
|
555
|
+
from scipy.spatial import cKDTree
|
|
556
|
+
|
|
532
557
|
d_ab = cKDTree(pb).query(pa)[0]
|
|
533
558
|
d_ba = cKDTree(pa).query(pb)[0]
|
|
534
559
|
return np.asarray(d_ab, dtype=np.float64), np.asarray(d_ba, dtype=np.float64)
|
|
@@ -594,9 +619,12 @@ def _surface_metric(
|
|
|
594
619
|
UndefinedMetricWarning,
|
|
595
620
|
stacklevel=3,
|
|
596
621
|
)
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
622
|
+
if not np.isnan(values).any():
|
|
623
|
+
per_class = values.mean(axis=0) # nanmean's NaN bookkeeping is not needed
|
|
624
|
+
else:
|
|
625
|
+
with warnings.catch_warnings():
|
|
626
|
+
warnings.simplefilter("ignore", RuntimeWarning)
|
|
627
|
+
per_class = np.nanmean(values, axis=0)
|
|
600
628
|
params: dict[str, Any] = {
|
|
601
629
|
"spacing": None if spacing is None else tuple(float(s) for s in spacing),
|
|
602
630
|
"ignore_index": ignore_index,
|
|
@@ -613,7 +641,8 @@ def _surface_metric(
|
|
|
613
641
|
if np.all(np.isnan(per_class)):
|
|
614
642
|
warnings.warn(f"{name} is undefined: no class occurs in any mask.", UndefinedMetricWarning, stacklevel=3)
|
|
615
643
|
return MetricResult(metric, name, math.nan, params)
|
|
616
|
-
|
|
644
|
+
finite = per_class[~np.isnan(per_class)]
|
|
645
|
+
return MetricResult(metric, name, float(finite.mean()), params)
|
|
617
646
|
|
|
618
647
|
|
|
619
648
|
@register(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: evalsuite-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.5
|
|
4
4
|
Summary: A unified Python framework for machine-learning, clinical, statistical, segmentation, object-detection, uncertainty, and model evaluation.
|
|
5
5
|
Project-URL: Homepage, https://evalsuite-nine.vercel.app
|
|
6
6
|
Project-URL: Documentation, https://evalsuite-nine.vercel.app/docs
|
|
@@ -84,7 +84,7 @@ Description-Content-Type: text/markdown
|
|
|
84
84
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
85
85
|
evaluation into one consistent, validated, documented framework.
|
|
86
86
|
|
|
87
|
-
> **Status: stable (0.5.
|
|
87
|
+
> **Status: stable (0.5.5).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
|
|
88
88
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
89
89
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
90
90
|
|
|
@@ -340,55 +340,56 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
340
340
|
|
|
341
341
|
## Performance
|
|
342
342
|
|
|
343
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.5.
|
|
343
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.5.5, Python 3.13,
|
|
344
344
|
NumPy 2.5, Linux x86_64). **Overall: 81 of 81 rows agree with the reference** (largest
|
|
345
|
-
difference 2.5e-14),
|
|
346
|
-
27 cases and three sizes is **3.
|
|
345
|
+
difference 2.5e-14), 81 are faster, and the geometric-mean speed-up across all
|
|
346
|
+
27 cases and three sizes is **3.29×**. At 1,000,000 samples (pixels for
|
|
347
347
|
segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
|
|
348
348
|
alphabetical order:
|
|
349
349
|
|
|
350
350
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
351
351
|
| --- | --- | ---: | ---: | ---: |
|
|
352
|
-
| 10 classes: macro F1 | scikit-learn | 7.
|
|
353
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.
|
|
354
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
355
|
-
| binary: ROC AUC | scikit-learn |
|
|
356
|
-
| calibration: slope and intercept | statsmodels |
|
|
352
|
+
| 10 classes: macro F1 | scikit-learn | 7.1 | 113.7 | **15.9×** |
|
|
353
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.4 | 2.8 | **2.0×** |
|
|
354
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 9.3 | 841.2 | **90.2×** |
|
|
355
|
+
| binary: ROC AUC | scikit-learn | 171.4 | 294.0 | **1.7×** |
|
|
356
|
+
| calibration: slope and intercept | statsmodels | 227.7 | 1188.2 | **5.2×** |
|
|
357
357
|
| clinical: diagnostic report (7 CIs) | statsmodels | 5.0 | 5.4 | **1.1×** |
|
|
358
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
359
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
360
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
361
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
362
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn |
|
|
363
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
364
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 30.
|
|
365
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
366
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **11.
|
|
367
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
368
|
-
| statistics: Welch t-test | SciPy |
|
|
369
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
370
|
-
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu |
|
|
371
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
372
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy |
|
|
373
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
374
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
375
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
376
|
-
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU |
|
|
377
|
-
| text: METEOR, exact and stem matches (10000 sentences) | NLTK |
|
|
378
|
-
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score |
|
|
358
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 19.5 | 352.0 | **18.1×** |
|
|
359
|
+
| decision curve: 99 thresholds | NumPy loop | 149.2 | 200.9 | **1.3×** |
|
|
360
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 369.0 | 683.1 | **1.9×** |
|
|
361
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 78.8 | 84.9 | **1.1×** |
|
|
362
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 9.4 | 13.5 | **1.4×** |
|
|
363
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 120.5 | 589.9 | **4.9×** |
|
|
364
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 30.9 | 224.5 | **7.3×** |
|
|
365
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 7.1 | 13.3 | **1.9×** |
|
|
366
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.0 | 0.2 | **11.1×** |
|
|
367
|
+
| statistics: Mann–Whitney U | SciPy | 148.0 | 317.1 | **2.1×** |
|
|
368
|
+
| statistics: Welch t-test | SciPy | 7.1 | 9.7 | **1.4×** |
|
|
369
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 98.0 | 223.3 | **2.3×** |
|
|
370
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 431.3 | 523.0 | **1.2×** |
|
|
371
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 160.5 | 273.0 | **1.7×** |
|
|
372
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 6.7 | 7.2 | **1.1×** |
|
|
373
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 105.0 | 225.6 | **2.1×** |
|
|
374
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 10.8 | 12.2 | **1.1×** |
|
|
375
|
+
| systems: maintainability index (1000 programs) | radon | 90.3 | 99.3 | **1.1×** |
|
|
376
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 1435.8 | 2056.4 | **1.4×** |
|
|
377
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 124.7 | 384.4 | **3.1×** |
|
|
378
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 354.7 | 618.6 | **1.7×** |
|
|
379
379
|
|
|
380
380
|
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
|
|
381
381
|
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
382
382
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
383
|
-
comparisons agree**, and against the libraries the geometric-mean speed-up is **4.
|
|
383
|
+
comparisons agree**, and against the libraries the geometric-mean speed-up is **4.97×** (172 of 172
|
|
384
384
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
385
385
|
|
|
386
|
-
`evaluate()` validates inputs once and builds the confusion
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
386
|
+
**Every row is faster than its reference.** `evaluate()` validates inputs once and builds the confusion
|
|
387
|
+
matrix once for all metrics, and integer labels are encoded without sorting. The rank tests rank the data once
|
|
388
|
+
with a single unstable sort; t-tests, χ², Fisher and McNemar compute their statistics directly, and
|
|
389
|
+
Shapiro–Wilk caches its weights per sample size. Percentiles select exactly from a small bracketed window
|
|
390
|
+
instead of partitioning the whole array; COCO matching runs across all images of a class at once; surface
|
|
391
|
+
distances work on boundary points only; TER, BLEU, ROUGE and METEOR reuse tokenisation, stems and
|
|
392
|
+
edit-distance rows. Every one of these is tested to give the reference's result. Reproduce on
|
|
392
393
|
your machine with `evalsuite benchmark`; full table (1k, 100k and 1M samples, peak memory) and notes in
|
|
393
394
|
[BENCHMARKS.md](https://github.com/mkcs28/evalsuite-python/blob/main/BENCHMARKS.md).
|
|
394
395
|
|
|
@@ -8,7 +8,7 @@ evalsuite/calibration.py,sha256=jhCPOmCFGEkUkcx-hSAIb-JCMq9oF6JZt4uDGvg5NaU,1508
|
|
|
8
8
|
evalsuite/plot.py,sha256=7eOyzoRbg6Aad6OhtIQG3laIioQ8fs2K0YzodjG5rHA,26049
|
|
9
9
|
evalsuite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
evalsuite/reporting.py,sha256=-LISv9vvEnltT26GtzLjVlxOCcAwmjv4-HyB8_1UF5o,9615
|
|
11
|
-
evalsuite/version.py,sha256=
|
|
11
|
+
evalsuite/version.py,sha256=zkX3WSKuq1OSPNDgxz_PtvD9HNamLsi-tcTFfNMpvmU,98
|
|
12
12
|
evalsuite/classification/__init__.py,sha256=ErBIXbBGnhfW6v-1Cn5SegiERoyxNlmO1tEKcLM15mA,833
|
|
13
13
|
evalsuite/classification/_common.py,sha256=3ANV33ix_mnOzvOAG8glyJO-iYVhhTGO0S3YG0ZddB8,4543
|
|
14
14
|
evalsuite/classification/metrics.py,sha256=h-DYF2wwdN8LA1bPbyIgkfuG4ovwBBgtGZFObEmiHzE,37044
|
|
@@ -26,7 +26,7 @@ evalsuite/core/result.py,sha256=L_fQZRGRgVgzII2jZb_jpRBK2jy-CdO5u9s-6pUk9fE,1492
|
|
|
26
26
|
evalsuite/core/types.py,sha256=r6bhUk7CYAcrlQzjmf-6xWQsNqO3EOipZD-e-2yAJTI,720
|
|
27
27
|
evalsuite/core/validation.py,sha256=nZRWSuShdFBDYgXMnRmspSQ4AJPRO3Zy5M8wTFfkg2E,10988
|
|
28
28
|
evalsuite/llmsys/__init__.py,sha256=NA-kVMc3hdmBSW-ufPKrgfd2NHI15wCXJRn3ZhIVFsE,4653
|
|
29
|
-
evalsuite/llmsys/_common.py,sha256
|
|
29
|
+
evalsuite/llmsys/_common.py,sha256=Hp9yuO8ItEqr5v1B5fU6-ZVSB3EkvHavnspiPGVmsLM,8713
|
|
30
30
|
evalsuite/llmsys/agents.py,sha256=giiHv3c179fFR6aFUp4VbBjzbdNotS941tZVG7W0UFE,15355
|
|
31
31
|
evalsuite/llmsys/code.py,sha256=6Im0Km5qPHLFTF4S4dnN05OucFFNRixRchDSGHqtJaQ,37004
|
|
32
32
|
evalsuite/llmsys/efficiency.py,sha256=GlUSWNnzRaeuebv-SZYsB28StwIPYb8AIyMwM057g_A,13895
|
|
@@ -41,29 +41,29 @@ evalsuite/stats/__init__.py,sha256=mtnEqpvlvscQ3C6ceRr8xLKoSHPQWsWB24pEVlvp6fs,1
|
|
|
41
41
|
evalsuite/stats/_resolve.py,sha256=oauINI97AairuOB_fvlH5VlkiQnW5aIlR-bQT_zzhQ8,6119
|
|
42
42
|
evalsuite/stats/compare.py,sha256=TzBYHDbfHU1Uz2FtgXbMATTnmHuaDGUbrV9Eq4IphZY,18311
|
|
43
43
|
evalsuite/stats/effect.py,sha256=bgnhdCI4vU_Wnv5q7G2ncmtN3n7N1GWiYO4iO3FDI0w,7286
|
|
44
|
-
evalsuite/stats/hypothesis.py,sha256=
|
|
44
|
+
evalsuite/stats/hypothesis.py,sha256=RCu8yPTOhtetFQ5TlZQWaFu2t-aq56ffaNlEqC-lJbg,24546
|
|
45
45
|
evalsuite/stats/intervals.py,sha256=a0-SqHE3vYWNjCrtLCGWAFcCPqYki7iSn_0IGhWGNBw,14027
|
|
46
46
|
evalsuite/stats/paired.py,sha256=PZV0XED3HnjOD675Tj6z1ILGxUaesBpxXQgC0goi6o4,8439
|
|
47
47
|
evalsuite/stats/results.py,sha256=nqXHUiW8l0fQJkbMiunU6Gz-2be1NApZ6Fif2B1K_Yw,4407
|
|
48
48
|
evalsuite/text/__init__.py,sha256=_r0Qi6X7cBcaYMAPRyC15CsTj9Tv8VcqMCtLiSJPogY,3632
|
|
49
49
|
evalsuite/text/_common.py,sha256=acjAoPbXlPtd4DC4YbvOv1frIUjvFa1UtbdA5-6YDsU,3790
|
|
50
50
|
evalsuite/text/factuality.py,sha256=Id8LnGjqvaVDYC5qMn4H0UJdjrwp1VrZ_zr_0jct8SM,20772
|
|
51
|
-
evalsuite/text/generation.py,sha256=
|
|
52
|
-
evalsuite/text/judge.py,sha256=
|
|
51
|
+
evalsuite/text/generation.py,sha256=1VVeH23ePRfNkXRCVdIGukwGBY1bZk5BHZxnqggsP_k,46135
|
|
52
|
+
evalsuite/text/judge.py,sha256=Ug5UnXBHzPkhtJ-vBxge3ZbkQxCoA4T_zcVxVU8chxQ,23566
|
|
53
53
|
evalsuite/text/qa.py,sha256=rU0ya8TzV5mp7UiWq7w9IqSN9B0tDv8xymSaRzzbzMw,4097
|
|
54
54
|
evalsuite/text/rag.py,sha256=GF8GUp6Vnt9peBCIcdvFUapLUL36_NDApZisYG_rcqg,9641
|
|
55
55
|
evalsuite/text/reasoning.py,sha256=ydaTgAY--Tz_zEXm-Q_jLxJjTLnPgRlv39OzXWXD9yA,8885
|
|
56
56
|
evalsuite/text/report.py,sha256=nUAgt24rcQsnPLiNTVn3PlzZO3Y7fW_ch_lSelgfEc8,6241
|
|
57
57
|
evalsuite/text/retrieval.py,sha256=otQvOTbbR79kYtMum6o2HOT9UoDlSj0-JYLsFddkV1k,8969
|
|
58
|
-
evalsuite/text/semantic.py,sha256=
|
|
58
|
+
evalsuite/text/semantic.py,sha256=TgBBDcRll7vMzQVYStgt1SS9G7e6FTf7SuZDcPL32_g,23004
|
|
59
59
|
evalsuite/text/spice.py,sha256=rdPCeilqKkXLMiSAE-rYOn0Zt2nKFum5Tf1oJdE6k-U,6847
|
|
60
60
|
evalsuite/text/structured.py,sha256=x08yYf2rdlmiA_D_dI1L-fc9quHiBPMKgAGQbG3kJr8,31981
|
|
61
61
|
evalsuite/vision/__init__.py,sha256=9gpOBTPveM_srE6BM-SgCssdQurya2LPHhoMLGOh2A0,991
|
|
62
|
-
evalsuite/vision/detection.py,sha256=
|
|
63
|
-
evalsuite/vision/segmentation.py,sha256=
|
|
64
|
-
evalsuite_python-0.5.
|
|
65
|
-
evalsuite_python-0.5.
|
|
66
|
-
evalsuite_python-0.5.
|
|
67
|
-
evalsuite_python-0.5.
|
|
68
|
-
evalsuite_python-0.5.
|
|
69
|
-
evalsuite_python-0.5.
|
|
62
|
+
evalsuite/vision/detection.py,sha256=I5Poh7mfHojpNKZKv7Gqb8e1coFMpfCnFgsYHJPsZ4Y,28897
|
|
63
|
+
evalsuite/vision/segmentation.py,sha256=f41Q8iOELCj8jmAJ3pN5OFr3h3-6QtjnluW8rfkg0V0,41132
|
|
64
|
+
evalsuite_python-0.5.5.dist-info/METADATA,sha256=6ToDN7BFpYqtiYRvV-epwFsFGxcXV_nnLs0JA4o8zOw,25958
|
|
65
|
+
evalsuite_python-0.5.5.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
66
|
+
evalsuite_python-0.5.5.dist-info/entry_points.txt,sha256=YYIwisn4L4sQt3ntzbM0_Z4yZE2KCu3GJ6KfWL1kIwc,54
|
|
67
|
+
evalsuite_python-0.5.5.dist-info/licenses/LICENSE,sha256=cRRQ6Kk8w2qCqtDSSUJQGy-0rqjmjJG09cZ6iIiMvdc,1095
|
|
68
|
+
evalsuite_python-0.5.5.dist-info/licenses/LICENSE-APACHE,sha256=K4pWYv3dt61u1BuIxjOGBxhgRkpsH4X_dzeIbOILXw0,10784
|
|
69
|
+
evalsuite_python-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{evalsuite_python-0.5.4.dist-info → evalsuite_python-0.5.5.dist-info}/licenses/LICENSE-APACHE
RENAMED
|
File without changes
|