evalsuite-python 0.5.1__py3-none-any.whl → 0.5.3__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/_lazy.py +32 -0
- evalsuite/api.py +2 -1
- evalsuite/calibration.py +7 -1
- evalsuite/classification/metrics.py +4 -2
- evalsuite/clinical/report.py +7 -1
- evalsuite/llmsys/_common.py +29 -10
- evalsuite/llmsys/code.py +42 -33
- evalsuite/llmsys/efficiency.py +3 -4
- evalsuite/llmsys/safety.py +1 -1
- evalsuite/stats/effect.py +8 -2
- evalsuite/stats/hypothesis.py +29 -10
- evalsuite/stats/intervals.py +9 -2
- evalsuite/stats/paired.py +9 -2
- evalsuite/text/judge.py +8 -2
- evalsuite/text/structured.py +5 -1
- evalsuite/version.py +1 -1
- evalsuite/vision/segmentation.py +7 -1
- {evalsuite_python-0.5.1.dist-info → evalsuite_python-0.5.3.dist-info}/METADATA +34 -34
- {evalsuite_python-0.5.1.dist-info → evalsuite_python-0.5.3.dist-info}/RECORD +22 -21
- {evalsuite_python-0.5.1.dist-info → evalsuite_python-0.5.3.dist-info}/WHEEL +1 -1
- {evalsuite_python-0.5.1.dist-info → evalsuite_python-0.5.3.dist-info}/entry_points.txt +0 -0
- {evalsuite_python-0.5.1.dist-info → evalsuite_python-0.5.3.dist-info}/licenses/LICENSE +0 -0
evalsuite/_lazy.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Deferred imports for heavy optional-at-import-time dependencies (SciPy submodules).
|
|
2
|
+
|
|
3
|
+
``import evalsuite`` should not pay for SciPy until a function that needs it runs.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
import importlib
|
|
9
|
+
from types import ModuleType
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class LazyModule(ModuleType):
|
|
14
|
+
"""Module proxy that imports the real module on first attribute access."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, name: str) -> None:
|
|
17
|
+
super().__init__(name)
|
|
18
|
+
self.__dict__["_mod"] = None
|
|
19
|
+
|
|
20
|
+
def _load(self) -> ModuleType:
|
|
21
|
+
mod = self.__dict__["_mod"]
|
|
22
|
+
if mod is None:
|
|
23
|
+
mod = importlib.import_module(self.__name__)
|
|
24
|
+
self.__dict__["_mod"] = mod
|
|
25
|
+
return mod # type: ignore[no-any-return]
|
|
26
|
+
|
|
27
|
+
def __getattr__(self, attr: str) -> Any:
|
|
28
|
+
return getattr(self._load(), attr)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def lazy_module(name: str) -> Any:
|
|
32
|
+
return LazyModule(name)
|
evalsuite/api.py
CHANGED
|
@@ -63,7 +63,8 @@ def _classification_registry(
|
|
|
63
63
|
|
|
64
64
|
def _hamming(ctx: ClassificationContext) -> MetricResult:
|
|
65
65
|
if ctx.target_type == "multilabel":
|
|
66
|
-
|
|
66
|
+
if ctx.y_pred is None:
|
|
67
|
+
raise InputValidationError("y_pred is required for this metric.")
|
|
67
68
|
wrong = (ctx.y_true != ctx.y_pred).mean(axis=1)
|
|
68
69
|
else:
|
|
69
70
|
wrong = (ctx.true_idx != ctx.pred_idx).astype(float)
|
evalsuite/calibration.py
CHANGED
|
@@ -14,7 +14,13 @@ from typing import TYPE_CHECKING, Any, Literal, Optional, cast
|
|
|
14
14
|
|
|
15
15
|
import numpy as np
|
|
16
16
|
from numpy.typing import NDArray
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
if TYPE_CHECKING:
|
|
19
|
+
from scipy import stats
|
|
20
|
+
else:
|
|
21
|
+
from ._lazy import lazy_module
|
|
22
|
+
|
|
23
|
+
stats = lazy_module("scipy.stats")
|
|
18
24
|
|
|
19
25
|
from .classification.metrics import (
|
|
20
26
|
_binary_target,
|
|
@@ -109,7 +109,8 @@ def accuracy(y_true: ArrayLike, y_pred: ArrayLike, *, sample_weight: Optional[Ar
|
|
|
109
109
|
|
|
110
110
|
def _accuracy(ctx: ClassificationContext) -> MetricResult:
|
|
111
111
|
if ctx.target_type == "multilabel":
|
|
112
|
-
|
|
112
|
+
if ctx.y_pred is None:
|
|
113
|
+
raise InputValidationError("y_pred is required for this metric.")
|
|
113
114
|
correct = (ctx.y_true == ctx.y_pred).all(axis=1)
|
|
114
115
|
else:
|
|
115
116
|
correct = ctx.true_idx == ctx.pred_idx
|
|
@@ -491,7 +492,8 @@ def hamming_loss(
|
|
|
491
492
|
"""Hamming loss."""
|
|
492
493
|
ctx = _ctx(y_true, y_pred, sample_weight=sample_weight)
|
|
493
494
|
if ctx.target_type == "multilabel":
|
|
494
|
-
|
|
495
|
+
if ctx.y_pred is None:
|
|
496
|
+
raise InputValidationError("y_pred is required for this metric.")
|
|
495
497
|
wrong = (ctx.y_true != ctx.y_pred).mean(axis=1)
|
|
496
498
|
else:
|
|
497
499
|
wrong = (ctx.true_idx != ctx.pred_idx).astype(float)
|
evalsuite/clinical/report.py
CHANGED
|
@@ -10,7 +10,13 @@ from typing import TYPE_CHECKING, Any, Optional, cast
|
|
|
10
10
|
|
|
11
11
|
import numpy as np
|
|
12
12
|
from numpy.typing import NDArray
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from scipy import special
|
|
16
|
+
else:
|
|
17
|
+
from .._lazy import lazy_module
|
|
18
|
+
|
|
19
|
+
special = lazy_module("scipy.special")
|
|
14
20
|
|
|
15
21
|
from ..core.exceptions import InputValidationError
|
|
16
22
|
from ..core.export import PathLike, csv_text, html_document, html_table, save_as
|
evalsuite/llmsys/_common.py
CHANGED
|
@@ -113,19 +113,38 @@ def by_group(values: np.ndarray, groups: Optional[Sequence[Any]], name: str = "g
|
|
|
113
113
|
return out
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
def
|
|
117
|
-
"""
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
def quantiles(a: np.ndarray, qs: Sequence[float]) -> list[float]:
|
|
117
|
+
"""Percentiles ``qs`` (0-100, linear interpolation, identical to ``np.percentile``) from one partition."""
|
|
118
|
+
n = a.size
|
|
119
|
+
pos = [(n - 1) * q / 100.0 for q in qs]
|
|
120
|
+
lo = [int(np.floor(h)) for h in pos]
|
|
121
|
+
kth = sorted({k for i in lo for k in (i, min(i + 1, n - 1))})
|
|
122
|
+
part = np.partition(a, kth)
|
|
123
|
+
out = []
|
|
124
|
+
for h, i in zip(pos, lo):
|
|
125
|
+
v0, v1 = float(part[i]), float(part[min(i + 1, n - 1)])
|
|
126
|
+
out.append(v0 + (h - i) * (v1 - v0))
|
|
127
|
+
return out
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def summary(a: np.ndarray, extra: Sequence[float] = ()) -> dict[str, float]:
|
|
131
|
+
"""Mean, standard deviation, min, max and the p50/p90/p95/p99 percentiles (linear interpolation), plus any
|
|
132
|
+
``extra`` percentiles under keys ``p<q>``; all order statistics come from one partition."""
|
|
133
|
+
qs = [0.0, 50.0, 90.0, 95.0, 99.0, 100.0, *extra]
|
|
134
|
+
v = quantiles(a, qs)
|
|
135
|
+
out = {
|
|
120
136
|
"mean": float(a.mean()),
|
|
121
137
|
"std": float(a.std(ddof=1)) if a.size > 1 else 0.0,
|
|
122
|
-
"min":
|
|
123
|
-
"max":
|
|
124
|
-
"p50":
|
|
125
|
-
"p90":
|
|
126
|
-
"p95":
|
|
127
|
-
"p99":
|
|
138
|
+
"min": v[0],
|
|
139
|
+
"max": v[5],
|
|
140
|
+
"p50": v[1],
|
|
141
|
+
"p90": v[2],
|
|
142
|
+
"p95": v[3],
|
|
143
|
+
"p99": v[4],
|
|
128
144
|
}
|
|
145
|
+
for q, val in zip(extra, v[6:]):
|
|
146
|
+
out[f"p{q:g}"] = val
|
|
147
|
+
return out
|
|
129
148
|
|
|
130
149
|
|
|
131
150
|
def lists_of(x: Any, name: str) -> list[list[Any]]:
|
evalsuite/llmsys/code.py
CHANGED
|
@@ -40,6 +40,10 @@ __all__ = [
|
|
|
40
40
|
]
|
|
41
41
|
|
|
42
42
|
_C = "code"
|
|
43
|
+
|
|
44
|
+
# Errors CPython raises for source it cannot parse: syntax errors, null bytes (ValueError), and input nested
|
|
45
|
+
# too deeply for the parser (MemoryError "parser stack overflowed") or for the compiler (RecursionError).
|
|
46
|
+
_PARSE_ERRORS = (SyntaxError, ValueError, MemoryError, RecursionError)
|
|
43
47
|
_REF_HUMANEVAL = (
|
|
44
48
|
"Chen M, Tworek J, Jun H, et al. Evaluating large language models trained on code. arXiv:2107.03374. 2021."
|
|
45
49
|
)
|
|
@@ -141,7 +145,7 @@ def syntax_validity_rate(
|
|
|
141
145
|
with warnings.catch_warnings():
|
|
142
146
|
warnings.simplefilter("ignore", SyntaxWarning)
|
|
143
147
|
compile(src, "<generated>", "exec", dont_inherit=True) # parses only; nothing runs
|
|
144
|
-
except
|
|
148
|
+
except _PARSE_ERRORS:
|
|
145
149
|
return False
|
|
146
150
|
return True
|
|
147
151
|
|
|
@@ -562,12 +566,16 @@ def code_complexity(code: Any) -> MetricResult:
|
|
|
562
566
|
with warnings.catch_warnings():
|
|
563
567
|
warnings.simplefilter("ignore", SyntaxWarning)
|
|
564
568
|
tree = ast.parse(src)
|
|
569
|
+
visitor = _Complexity.run(tree)
|
|
570
|
+
v = _halstead_volume(tree)
|
|
565
571
|
except SyntaxError as exc:
|
|
566
572
|
raise InputValidationError(f"code[{i}] is not valid Python: {exc.msg} (line {exc.lineno}).") from exc
|
|
567
|
-
|
|
573
|
+
except _PARSE_ERRORS as exc:
|
|
574
|
+
raise InputValidationError(
|
|
575
|
+
f"code[{i}] is too deeply nested to analyse ({type(exc).__name__})."
|
|
576
|
+
) from exc
|
|
568
577
|
blocks = visitor.blocks
|
|
569
578
|
funcs += [c for _, c in blocks]
|
|
570
|
-
v = _halstead_volume(tree)
|
|
571
579
|
g = visitor.total
|
|
572
580
|
lloc, sloc, comments = _raw(src)
|
|
573
581
|
c_pct = comments / sloc * 100 if sloc else 0.0
|
|
@@ -720,38 +728,38 @@ def _parse(src: str) -> Optional[ast.AST]:
|
|
|
720
728
|
with warnings.catch_warnings():
|
|
721
729
|
warnings.simplefilter("ignore", SyntaxWarning)
|
|
722
730
|
return ast.parse(_strip(src))
|
|
723
|
-
except
|
|
731
|
+
except _PARSE_ERRORS:
|
|
724
732
|
return None
|
|
725
733
|
|
|
726
734
|
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
]
|
|
735
|
+
_SKIP_NODES = (ast.expr_context, ast.operator, ast.unaryop, ast.boolop, ast.cmpop)
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
def _kids(node: ast.AST) -> list[ast.AST]:
|
|
739
|
+
return [c for c in ast.iter_child_nodes(node) if not isinstance(c, _SKIP_NODES)]
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
def _subtrees(tree: ast.AST, table: dict[tuple[Any, ...], int]) -> list[int]:
|
|
743
|
+
"""Every subtree with children (and the root), as ids that are equal exactly when the subtrees are
|
|
744
|
+
structurally equal. Built bottom-up without recursion: ``table`` interns (node type, child ids), so the
|
|
745
|
+
cost is linear in the tree size (comparing serialised subtrees would be quadratic)."""
|
|
746
|
+
ids: dict[int, int] = {}
|
|
747
|
+
out: list[int] = []
|
|
748
|
+
stack: list[tuple[ast.AST, bool]] = [(tree, False)]
|
|
749
|
+
while stack:
|
|
750
|
+
node, ready = stack.pop()
|
|
751
|
+
kids = _kids(node)
|
|
752
|
+
if not ready:
|
|
753
|
+
stack.append((node, True))
|
|
754
|
+
stack.extend((k, False) for k in kids)
|
|
755
|
+
continue
|
|
756
|
+
tag = type(node).__name__
|
|
757
|
+
if isinstance(node, (ast.BinOp, ast.UnaryOp, ast.BoolOp, ast.AugAssign)):
|
|
758
|
+
tag += ":" + type(node.op).__name__
|
|
759
|
+
sid = table.setdefault((tag, tuple(ids[id(k)] for k in kids)), len(table))
|
|
760
|
+
ids[id(node)] = sid
|
|
753
761
|
if kids or node is tree:
|
|
754
|
-
out.append(
|
|
762
|
+
out.append(sid)
|
|
755
763
|
return out
|
|
756
764
|
|
|
757
765
|
|
|
@@ -878,15 +886,16 @@ def codebleu(
|
|
|
878
886
|
ngram = _corpus_bleu(t_refs, t_hyps, None)
|
|
879
887
|
weighted = _corpus_bleu(t_refs, t_hyps, kw)
|
|
880
888
|
match = total = df_match = df_total = 0
|
|
889
|
+
table: dict[tuple[Any, ...], int] = {}
|
|
881
890
|
for rs, p in zip(refs, preds):
|
|
882
891
|
cand = _parse(p)
|
|
883
|
-
cand_sub = set(_subtrees(cand)) if cand is not None else set()
|
|
892
|
+
cand_sub = set(_subtrees(cand, table)) if cand is not None else set()
|
|
884
893
|
cand_flow = _normalize_flow(_dataflow(cand)) if cand is not None else []
|
|
885
894
|
for r in rs:
|
|
886
895
|
ref = _parse(r)
|
|
887
896
|
if ref is None:
|
|
888
897
|
continue
|
|
889
|
-
ref_sub = _subtrees(ref)
|
|
898
|
+
ref_sub = _subtrees(ref, table)
|
|
890
899
|
match += sum(s in cand_sub for s in ref_sub)
|
|
891
900
|
total += len(ref_sub)
|
|
892
901
|
ref_flow = _normalize_flow(_dataflow(ref))
|
evalsuite/llmsys/efficiency.py
CHANGED
|
@@ -119,10 +119,9 @@ def latency_percentiles(latencies: Any, *, unit: str = "s", percentile: float =
|
|
|
119
119
|
x = floats(latencies, "latencies", lo=0)
|
|
120
120
|
if not 0 <= percentile <= 100:
|
|
121
121
|
raise InputValidationError("percentile must be in [0, 100].")
|
|
122
|
-
s = summary(x)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
)
|
|
122
|
+
s = summary(x, extra=(percentile,))
|
|
123
|
+
value = s[f"p{percentile:g}"]
|
|
124
|
+
return MetricResult("latency_percentiles", f"p{percentile:g} latency", value, {"unit": unit, **s})
|
|
126
125
|
|
|
127
126
|
|
|
128
127
|
@register(
|
evalsuite/llmsys/safety.py
CHANGED
|
@@ -362,7 +362,7 @@ def _luhn(digits: str) -> bool:
|
|
|
362
362
|
|
|
363
363
|
|
|
364
364
|
PII_PATTERNS: dict[str, str] = {
|
|
365
|
-
"email": r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}",
|
|
365
|
+
"email": r"(?<![A-Za-z0-9._%+-])[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}",
|
|
366
366
|
"phone": r"(?<!\d[\s.-])(?<!\w)(?:\+?\d{1,3}[\s.-]?)?(?:\(\d{2,4}\)[\s.-]?)?\d{3,4}[\s.-]\d{3,4}"
|
|
367
367
|
r"(?:[\s.-]\d{2,4})?(?![\s.-]?\d)(?!\w)",
|
|
368
368
|
"credit_card": r"(?<!\d)\d(?:[ -]?\d){12,18}(?!\d)",
|
evalsuite/stats/effect.py
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Literal
|
|
5
|
+
from typing import TYPE_CHECKING, Literal
|
|
6
6
|
|
|
7
7
|
import numpy as np
|
|
8
8
|
from numpy.typing import NDArray
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from scipy import special
|
|
12
|
+
else:
|
|
13
|
+
from .._lazy import lazy_module
|
|
14
|
+
|
|
15
|
+
special = lazy_module("scipy.special")
|
|
10
16
|
|
|
11
17
|
from ..core.exceptions import InputValidationError, StatisticalTestError
|
|
12
18
|
from ..core.types import ArrayLike
|
evalsuite/stats/hypothesis.py
CHANGED
|
@@ -8,11 +8,18 @@ implementations are the reference; EvalSuite adds input validation, effect sizes
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
import math
|
|
11
|
-
from typing import Literal
|
|
11
|
+
from typing import TYPE_CHECKING, Literal
|
|
12
12
|
|
|
13
13
|
import numpy as np
|
|
14
14
|
from numpy.typing import NDArray
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from scipy import special, stats
|
|
18
|
+
else:
|
|
19
|
+
from .._lazy import lazy_module
|
|
20
|
+
|
|
21
|
+
special = lazy_module("scipy.special")
|
|
22
|
+
stats = lazy_module("scipy.stats")
|
|
16
23
|
|
|
17
24
|
from ..core.exceptions import InputValidationError, StatisticalTestError
|
|
18
25
|
from ..core.types import ArrayLike
|
|
@@ -37,7 +44,7 @@ _ALTS = ("two-sided", "greater", "less")
|
|
|
37
44
|
|
|
38
45
|
|
|
39
46
|
def _vec(x: ArrayLike, name: str, min_n: int = 2) -> NDArray[np.float64]:
|
|
40
|
-
a = to_numpy(x, name).astype(np.float64)
|
|
47
|
+
a = to_numpy(x, name).astype(np.float64, copy=False)
|
|
41
48
|
check_finite(a, name)
|
|
42
49
|
if a.ndim != 1:
|
|
43
50
|
raise InputValidationError(f"{name} must be one-dimensional.")
|
|
@@ -80,12 +87,15 @@ def t_test(
|
|
|
80
87
|
References: Welch BL. Biometrika. 1947;34(1-2):28-35. Student. Biometrika. 1908;6(1):1-25.
|
|
81
88
|
"""
|
|
82
89
|
level = _check_level(level)
|
|
90
|
+
_alt(alternative)
|
|
83
91
|
x, y = _vec(a, "a"), _vec(b, "b")
|
|
84
|
-
if x.var() == 0 and y.var() == 0:
|
|
85
|
-
raise StatisticalTestError("The t-test is undefined: both samples have zero variance.")
|
|
86
|
-
res = stats.ttest_ind(x, y, equal_var=equal_var, alternative=_alt(alternative))
|
|
87
92
|
n1, n2 = x.shape[0], y.shape[0]
|
|
88
|
-
|
|
93
|
+
m1, m2 = float(x.mean()), float(y.mean())
|
|
94
|
+
# Two-pass variances (as NumPy/SciPy compute them), each sample read once more.
|
|
95
|
+
v1 = float(np.dot(x - m1, x - m1)) / (n1 - 1)
|
|
96
|
+
v2 = float(np.dot(y - m2, y - m2)) / (n2 - 1)
|
|
97
|
+
if v1 == 0 and v2 == 0:
|
|
98
|
+
raise StatisticalTestError("The t-test is undefined: both samples have zero variance.")
|
|
89
99
|
if equal_var:
|
|
90
100
|
df = n1 + n2 - 2
|
|
91
101
|
sp2 = ((n1 - 1) * v1 + (n2 - 1) * v2) / df
|
|
@@ -93,12 +103,21 @@ def t_test(
|
|
|
93
103
|
else:
|
|
94
104
|
se = math.sqrt(v1 / n1 + v2 / n2)
|
|
95
105
|
df = (v1 / n1 + v2 / n2) ** 2 / ((v1 / n1) ** 2 / (n1 - 1) + (v2 / n2) ** 2 / (n2 - 1)) if se else math.nan
|
|
96
|
-
|
|
106
|
+
t = (m1 - m2) / se
|
|
107
|
+
# Student-t tail probabilities directly (what scipy.stats.ttest_ind returns), without re-reading the data.
|
|
108
|
+
if alternative == "two-sided":
|
|
109
|
+
p = 2.0 * float(special.stdtr(df, -abs(t)))
|
|
110
|
+
elif alternative == "less":
|
|
111
|
+
p = float(special.stdtr(df, t))
|
|
112
|
+
else:
|
|
113
|
+
p = float(special.stdtr(df, -t))
|
|
114
|
+
p = min(p, 1.0)
|
|
115
|
+
diff = m1 - m2
|
|
97
116
|
pooled = math.sqrt(((n1 - 1) * v1 + (n2 - 1) * v2) / (n1 + n2 - 2))
|
|
98
117
|
return TestResult(
|
|
99
118
|
"welch-t" if not equal_var else "student-t",
|
|
100
|
-
float(
|
|
101
|
-
|
|
119
|
+
float(t),
|
|
120
|
+
p,
|
|
102
121
|
alternative=alternative,
|
|
103
122
|
estimate=diff,
|
|
104
123
|
ci=_mean_diff_ci(diff, se, df, level, alternative, "mean_difference"),
|
evalsuite/stats/intervals.py
CHANGED
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import warnings
|
|
6
|
-
from typing import Any, Literal, Optional
|
|
6
|
+
from typing import TYPE_CHECKING, Any, Literal, Optional
|
|
7
7
|
|
|
8
8
|
import numpy as np
|
|
9
9
|
from numpy.typing import NDArray
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from scipy import special, stats
|
|
13
|
+
else:
|
|
14
|
+
from .._lazy import lazy_module
|
|
15
|
+
|
|
16
|
+
special = lazy_module("scipy.special")
|
|
17
|
+
stats = lazy_module("scipy.stats")
|
|
11
18
|
|
|
12
19
|
from ..core.exceptions import EvalSuiteError, InputValidationError, StatisticalTestError
|
|
13
20
|
from ..core.types import ArrayLike
|
evalsuite/stats/paired.py
CHANGED
|
@@ -2,10 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import Any, Literal, Optional
|
|
5
|
+
from typing import TYPE_CHECKING, Any, Literal, Optional
|
|
6
6
|
|
|
7
7
|
import numpy as np
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from scipy import special, stats
|
|
11
|
+
else:
|
|
12
|
+
from .._lazy import lazy_module
|
|
13
|
+
|
|
14
|
+
special = lazy_module("scipy.special")
|
|
15
|
+
stats = lazy_module("scipy.stats")
|
|
9
16
|
|
|
10
17
|
from ..core.exceptions import InputValidationError
|
|
11
18
|
from ..core.types import ArrayLike
|
evalsuite/text/judge.py
CHANGED
|
@@ -9,10 +9,16 @@ from __future__ import annotations
|
|
|
9
9
|
|
|
10
10
|
import math
|
|
11
11
|
from collections.abc import Sequence
|
|
12
|
-
from typing import Any, Optional
|
|
12
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
13
13
|
|
|
14
14
|
import numpy as np
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from scipy import stats
|
|
18
|
+
else:
|
|
19
|
+
from .._lazy import lazy_module
|
|
20
|
+
|
|
21
|
+
stats = lazy_module("scipy.stats")
|
|
16
22
|
|
|
17
23
|
from ..core.exceptions import InputValidationError
|
|
18
24
|
from ..core.registry import register
|
evalsuite/text/structured.py
CHANGED
|
@@ -712,7 +712,11 @@ def constraint_satisfaction_rate(checks: Any) -> MetricResult:
|
|
|
712
712
|
def format_compliance(
|
|
713
713
|
outputs: Any, pattern: str, *, flags: int = re.S, average: Optional[str] = "mean"
|
|
714
714
|
) -> MetricResult:
|
|
715
|
-
"""``re.fullmatch(pattern, output.strip())`` per output.
|
|
715
|
+
"""``re.fullmatch(pattern, output.strip())`` per output.
|
|
716
|
+
|
|
717
|
+
The pattern is compiled with Python's backtracking ``re`` engine; patterns with nested quantifiers such as
|
|
718
|
+
``(a+)+$`` can take exponential time on some outputs, so only pass patterns you trust.
|
|
719
|
+
"""
|
|
716
720
|
outs = _outputs(outputs)
|
|
717
721
|
try:
|
|
718
722
|
rx = re.compile(pattern, flags)
|
evalsuite/version.py
CHANGED
evalsuite/vision/segmentation.py
CHANGED
|
@@ -27,7 +27,13 @@ from typing import TYPE_CHECKING, Any, Literal, Optional, Union, cast
|
|
|
27
27
|
|
|
28
28
|
import numpy as np
|
|
29
29
|
from numpy.typing import NDArray
|
|
30
|
-
|
|
30
|
+
|
|
31
|
+
if TYPE_CHECKING:
|
|
32
|
+
from scipy import ndimage
|
|
33
|
+
else:
|
|
34
|
+
from .._lazy import lazy_module
|
|
35
|
+
|
|
36
|
+
ndimage = lazy_module("scipy.ndimage")
|
|
31
37
|
|
|
32
38
|
from ..core.exceptions import InputValidationError, UndefinedMetricWarning
|
|
33
39
|
from ..core.export import PathLike, csv_text, html_document, html_table, save_as
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: evalsuite-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
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
|
|
@@ -83,7 +83,7 @@ Description-Content-Type: text/markdown
|
|
|
83
83
|
EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
|
|
84
84
|
evaluation into one consistent, validated, documented framework.
|
|
85
85
|
|
|
86
|
-
> **Status: stable (0.5.
|
|
86
|
+
> **Status: stable (0.5.3).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
|
|
87
87
|
> **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
|
|
88
88
|
> multilingual, code generation, long context and summarization, and inference efficiency and cost.
|
|
89
89
|
|
|
@@ -339,51 +339,51 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
|
|
|
339
339
|
|
|
340
340
|
## Performance
|
|
341
341
|
|
|
342
|
-
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.5.
|
|
342
|
+
Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.5.3, Python 3.13,
|
|
343
343
|
NumPy 2.5, Linux x86_64). **Overall: 81 of 81 rows agree with the reference** (largest
|
|
344
|
-
difference 2.5e-14),
|
|
345
|
-
27 cases and three sizes is **
|
|
344
|
+
difference 2.5e-14), 58 are faster, and the geometric-mean speed-up across all
|
|
345
|
+
27 cases and three sizes is **2.06×**. At 1,000,000 samples (pixels for
|
|
346
346
|
segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
|
|
347
347
|
alphabetical order:
|
|
348
348
|
|
|
349
349
|
| Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
|
|
350
350
|
| --- | --- | ---: | ---: | ---: |
|
|
351
|
-
| 10 classes: macro F1 | scikit-learn |
|
|
352
|
-
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 4.
|
|
353
|
-
| binary: 8 label metrics via evaluate() | scikit-learn |
|
|
354
|
-
| binary: ROC AUC | scikit-learn |
|
|
355
|
-
| calibration: slope and intercept | statsmodels |
|
|
356
|
-
| clinical: diagnostic report (7 CIs) | statsmodels |
|
|
357
|
-
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn |
|
|
358
|
-
| decision curve: 99 thresholds | NumPy loop |
|
|
359
|
-
| detection: COCO evaluation (1000 images) | pycocotools |
|
|
360
|
-
| multiple testing: Hochberg (n p-values) | statsmodels |
|
|
361
|
-
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn |
|
|
362
|
-
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx |
|
|
363
|
-
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn |
|
|
364
|
-
| segmentation: Hausdorff distance (50 images) | SciPy |
|
|
365
|
-
| statistics: Cramér's V (5×5 table) | SciPy | 0.
|
|
366
|
-
| statistics: Mann–Whitney U | SciPy |
|
|
367
|
-
| statistics: Welch t-test | SciPy |
|
|
368
|
-
| structured: JSON Schema compliance (10000 documents) | jsonschema |
|
|
369
|
-
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu |
|
|
370
|
-
| systems: confidence AUROC (n answers) | scikit-learn |
|
|
371
|
-
| systems: distribution-shift drop, Welch CI (n scores) | SciPy |
|
|
372
|
-
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema |
|
|
373
|
-
| systems: latency p50 / p95 / p99 (n requests) | NumPy |
|
|
374
|
-
| systems: maintainability index (1000 programs) | radon |
|
|
375
|
-
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU |
|
|
376
|
-
| text: METEOR, exact and stem matches (10000 sentences) | NLTK |
|
|
377
|
-
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score |
|
|
351
|
+
| 10 classes: macro F1 | scikit-learn | 35.9 | 122.1 | **3.4×** |
|
|
352
|
+
| agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 4.4 | 3.4 | 0.77× |
|
|
353
|
+
| binary: 8 label metrics via evaluate() | scikit-learn | 23.3 | 866.5 | **37.2×** |
|
|
354
|
+
| binary: ROC AUC | scikit-learn | 187.9 | 305.7 | **1.6×** |
|
|
355
|
+
| calibration: slope and intercept | statsmodels | 236.6 | 1085.8 | **4.6×** |
|
|
356
|
+
| clinical: diagnostic report (7 CIs) | statsmodels | 26.2 | 5.7 | 0.22× |
|
|
357
|
+
| clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 122.9 | 353.9 | **2.9×** |
|
|
358
|
+
| decision curve: 99 thresholds | NumPy loop | 167.3 | 238.1 | **1.4×** |
|
|
359
|
+
| detection: COCO evaluation (1000 images) | pycocotools | 684.7 | 660.8 | 0.97× |
|
|
360
|
+
| multiple testing: Hochberg (n p-values) | statsmodels | 71.3 | 92.4 | **1.3×** |
|
|
361
|
+
| regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 27.3 | 18.8 | 0.69× |
|
|
362
|
+
| retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 129.5 | 614.7 | **4.7×** |
|
|
363
|
+
| segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 35.7 | 235.1 | **6.6×** |
|
|
364
|
+
| segmentation: Hausdorff distance (50 images) | SciPy | 18.8 | 13.6 | 0.72× |
|
|
365
|
+
| statistics: Cramér's V (5×5 table) | SciPy | 0.2 | 0.2 | 0.90× |
|
|
366
|
+
| statistics: Mann–Whitney U | SciPy | 342.3 | 325.8 | 0.95× |
|
|
367
|
+
| statistics: Welch t-test | SciPy | 8.2 | 11.9 | **1.4×** |
|
|
368
|
+
| structured: JSON Schema compliance (10000 documents) | jsonschema | 93.9 | 223.5 | **2.4×** |
|
|
369
|
+
| systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 413.8 | 507.8 | **1.2×** |
|
|
370
|
+
| systems: confidence AUROC (n answers) | scikit-learn | 154.1 | 251.8 | **1.6×** |
|
|
371
|
+
| systems: distribution-shift drop, Welch CI (n scores) | SciPy | 10.9 | 12.9 | **1.2×** |
|
|
372
|
+
| systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 78.4 | 213.2 | **2.7×** |
|
|
373
|
+
| systems: latency p50 / p95 / p99 (n requests) | NumPy | 18.0 | 15.9 | 0.88× |
|
|
374
|
+
| systems: maintainability index (1000 programs) | radon | 89.3 | 96.0 | **1.1×** |
|
|
375
|
+
| text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 1728.8 | 1993.1 | **1.2×** |
|
|
376
|
+
| text: METEOR, exact and stem matches (10000 sentences) | NLTK | 319.1 | 358.6 | **1.1×** |
|
|
377
|
+
| text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 716.0 | 612.5 | 0.86× |
|
|
378
378
|
|
|
379
379
|
**Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
|
|
380
380
|
statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
|
|
381
381
|
independent textbook formula and 21 (learned, judge-dependent or randomised) are timed alone; **all 204
|
|
382
|
-
comparisons agree**, and against the libraries the geometric-mean speed-up is **2.
|
|
382
|
+
comparisons agree**, and against the libraries the geometric-mean speed-up is **2.80×** (138 of 172
|
|
383
383
|
measurements faster). Per-metric table in BENCHMARKS.md.
|
|
384
384
|
|
|
385
385
|
`evaluate()` validates inputs once and builds the confusion matrix once for all metrics, which is where most
|
|
386
|
-
of the speed-up comes from.
|
|
386
|
+
of the speed-up comes from. The t-tests compute their statistics in one pass and beat SciPy; other hypothesis tests use SciPy underneath. Rows
|
|
387
387
|
below 1× pay for input validation and the extra intervals and effect sizes EvalSuite reports. Reproduce on
|
|
388
388
|
your machine with `evalsuite benchmark`; full table (1k, 100k and 1M samples, peak memory) and notes in
|
|
389
389
|
[BENCHMARKS.md](https://github.com/mkcs28/evalsuite-python/blob/main/BENCHMARKS.md).
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
evalsuite/__init__.py,sha256=nMwLJq_Ni8plZZmq1olG5HwDlBppn0pW-RJyFBzPF7o,5630
|
|
2
2
|
evalsuite/__main__.py,sha256=Nq90_8VlUN1mif-AVgX-kZRL63bd94F5-F7F9UkVZD4,117
|
|
3
3
|
evalsuite/_bench_metrics.py,sha256=GLLa9OhCNmu6IyWkxC0AcNf7p-CTpoOwWUS99C1o2o8,75792
|
|
4
|
-
evalsuite/
|
|
4
|
+
evalsuite/_lazy.py,sha256=Ddq0uWuiyxtsT0jBtCSITQPvttiQ7znXAbjkMIOVefk,901
|
|
5
|
+
evalsuite/api.py,sha256=DzWwmCgyEiqO2HvPrNg2RIDzqwap4e_UvbxA7PkJ3fE,10227
|
|
5
6
|
evalsuite/benchmarks.py,sha256=TWXIhdYPbdDPanCOFL1lRCo3ppRYaDF58PB-o3ZZyTA,37846
|
|
6
|
-
evalsuite/calibration.py,sha256=
|
|
7
|
+
evalsuite/calibration.py,sha256=jhCPOmCFGEkUkcx-hSAIb-JCMq9oF6JZt4uDGvg5NaU,15083
|
|
7
8
|
evalsuite/plot.py,sha256=7eOyzoRbg6Aad6OhtIQG3laIioQ8fs2K0YzodjG5rHA,26049
|
|
8
9
|
evalsuite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
10
|
evalsuite/reporting.py,sha256=-LISv9vvEnltT26GtzLjVlxOCcAwmjv4-HyB8_1UF5o,9615
|
|
10
|
-
evalsuite/version.py,sha256=
|
|
11
|
+
evalsuite/version.py,sha256=cBFMd7rVqHqeq_5wv45kmdH_f6_Xg_O3wDOfLBIHFNE,98
|
|
11
12
|
evalsuite/classification/__init__.py,sha256=ErBIXbBGnhfW6v-1Cn5SegiERoyxNlmO1tEKcLM15mA,833
|
|
12
13
|
evalsuite/classification/_common.py,sha256=3ANV33ix_mnOzvOAG8glyJO-iYVhhTGO0S3YG0ZddB8,4543
|
|
13
|
-
evalsuite/classification/metrics.py,sha256=
|
|
14
|
+
evalsuite/classification/metrics.py,sha256=h-DYF2wwdN8LA1bPbyIgkfuG4ovwBBgtGZFObEmiHzE,37044
|
|
14
15
|
evalsuite/cli/__init__.py,sha256=1x48hORLcg_Is2X08A7CPBT6VDJ1QL94zaJP1HTFxUY,96
|
|
15
16
|
evalsuite/cli/main.py,sha256=ktvy_5D-KfYevKH5ZxO5f0aVFtNXbGeN8zker0tguT0,23994
|
|
16
17
|
evalsuite/clinical/__init__.py,sha256=xaXLvNvTJsuP525fLb2FyVVNlopIrZczoPrwmEQIvzE,549
|
|
17
18
|
evalsuite/clinical/metrics.py,sha256=Abz4rA9FfOIWn7MXAMnxAH_C3XICY9x-nPQhP1-79xU,13453
|
|
18
|
-
evalsuite/clinical/report.py,sha256=
|
|
19
|
+
evalsuite/clinical/report.py,sha256=JaS9PKjUHkiKl_AURC1TwNiDc_V-6B2KNhV4kzHZhdE,14996
|
|
19
20
|
evalsuite/core/__init__.py,sha256=oDHl5Dc2GoZf1tCtJueMQ2KcmOq7zhzMZT9XF4uVC6U,93
|
|
20
21
|
evalsuite/core/context.py,sha256=gvRpH3b-S2oAgAGW9W0XWnBVbuydQP3UB9rgWQNM60g,7874
|
|
21
22
|
evalsuite/core/exceptions.py,sha256=9eZI_Lmgwc9fjkSUY9s3fwjAb7KoqgAlcYetrHRhbBg,1503
|
|
@@ -25,30 +26,30 @@ evalsuite/core/result.py,sha256=L_fQZRGRgVgzII2jZb_jpRBK2jy-CdO5u9s-6pUk9fE,1492
|
|
|
25
26
|
evalsuite/core/types.py,sha256=r6bhUk7CYAcrlQzjmf-6xWQsNqO3EOipZD-e-2yAJTI,720
|
|
26
27
|
evalsuite/core/validation.py,sha256=nWWyISLdW2TtzxUs3gT-Qx2uh6euDOlYMvbnCrFRYME,9975
|
|
27
28
|
evalsuite/llmsys/__init__.py,sha256=NA-kVMc3hdmBSW-ufPKrgfd2NHI15wCXJRn3ZhIVFsE,4653
|
|
28
|
-
evalsuite/llmsys/_common.py,sha256=
|
|
29
|
+
evalsuite/llmsys/_common.py,sha256=lNB9mUAUNt-DAUL-26veY--vISsMm5Spiu-k6K1J62g,6110
|
|
29
30
|
evalsuite/llmsys/agents.py,sha256=giiHv3c179fFR6aFUp4VbBjzbdNotS941tZVG7W0UFE,15355
|
|
30
|
-
evalsuite/llmsys/code.py,sha256=
|
|
31
|
-
evalsuite/llmsys/efficiency.py,sha256=
|
|
31
|
+
evalsuite/llmsys/code.py,sha256=6Im0Km5qPHLFTF4S4dnN05OucFFNRixRchDSGHqtJaQ,37004
|
|
32
|
+
evalsuite/llmsys/efficiency.py,sha256=GlUSWNnzRaeuebv-SZYsB28StwIPYb8AIyMwM057g_A,13895
|
|
32
33
|
evalsuite/llmsys/longcontext.py,sha256=koX58FMot3ZwUTPPiv9tM8fGvBY2ijYg0npA8pG278A,15145
|
|
33
34
|
evalsuite/llmsys/multilingual.py,sha256=IDdV5O5krDQdTximeJbYB3Kmh62qeSbLL--ElM7CGvc,13726
|
|
34
35
|
evalsuite/llmsys/robustness.py,sha256=OPe84s1H7IEX5GcuRVcAp_UA29tx_Qq8WlA88khY2cg,20377
|
|
35
|
-
evalsuite/llmsys/safety.py,sha256=
|
|
36
|
+
evalsuite/llmsys/safety.py,sha256=7Kcv9zJBhIWHS6GeAa0BedCncFOmsbIpnmUQCMvRMPU,22550
|
|
36
37
|
evalsuite/llmsys/uncertainty.py,sha256=Brm_LT8qHb-EtcPe7YBXq7HYMSTG93OkT3Cnx2SYBts,9367
|
|
37
38
|
evalsuite/regression/__init__.py,sha256=t2XEHUw6e5tyWBHcEeiog2WWd-wwaxf4m5AIX8dJyng,571
|
|
38
39
|
evalsuite/regression/metrics.py,sha256=5i3hmiFfZGfmqtFDaDOxGHRYCXzdt48-GNfgvVOX7CM,22914
|
|
39
40
|
evalsuite/stats/__init__.py,sha256=mtnEqpvlvscQ3C6ceRr8xLKoSHPQWsWB24pEVlvp6fs,1187
|
|
40
41
|
evalsuite/stats/_resolve.py,sha256=oauINI97AairuOB_fvlH5VlkiQnW5aIlR-bQT_zzhQ8,6119
|
|
41
42
|
evalsuite/stats/compare.py,sha256=TzBYHDbfHU1Uz2FtgXbMATTnmHuaDGUbrV9Eq4IphZY,18311
|
|
42
|
-
evalsuite/stats/effect.py,sha256=
|
|
43
|
-
evalsuite/stats/hypothesis.py,sha256=
|
|
44
|
-
evalsuite/stats/intervals.py,sha256=
|
|
45
|
-
evalsuite/stats/paired.py,sha256=
|
|
43
|
+
evalsuite/stats/effect.py,sha256=PCzpj_Lf1CdBAJdL8DoL0gEsNVVcwk-gjmlRyrcGAPM,7067
|
|
44
|
+
evalsuite/stats/hypothesis.py,sha256=l0md7TfFS2_MwVyhIJses8l-QtuNR2uK-n2dbE_eUW4,13390
|
|
45
|
+
evalsuite/stats/intervals.py,sha256=0lW87qZsejY8r2xXw0agWasudOGq-rEU1v-9u8OuiGA,13872
|
|
46
|
+
evalsuite/stats/paired.py,sha256=hF4qBAxdYOrKD8JnJJOa9A_Xn8xw08qpMkworXssUuU,8407
|
|
46
47
|
evalsuite/stats/results.py,sha256=nqXHUiW8l0fQJkbMiunU6Gz-2be1NApZ6Fif2B1K_Yw,4407
|
|
47
48
|
evalsuite/text/__init__.py,sha256=_r0Qi6X7cBcaYMAPRyC15CsTj9Tv8VcqMCtLiSJPogY,3632
|
|
48
49
|
evalsuite/text/_common.py,sha256=NeJroFlIFu_1HXNHgnTVZEyaeVScX-o5C0Qbfe3INe8,3659
|
|
49
50
|
evalsuite/text/factuality.py,sha256=Id8LnGjqvaVDYC5qMn4H0UJdjrwp1VrZ_zr_0jct8SM,20772
|
|
50
51
|
evalsuite/text/generation.py,sha256=6eHWccspuQeaup8qP8Pv3k2nx6IejG9UECYHwDlWuHE,42572
|
|
51
|
-
evalsuite/text/judge.py,sha256=
|
|
52
|
+
evalsuite/text/judge.py,sha256=ugqsaVih_n_h0jO5GrvIGHqq7XjqGnP7cKd4QbObEw0,22662
|
|
52
53
|
evalsuite/text/qa.py,sha256=rU0ya8TzV5mp7UiWq7w9IqSN9B0tDv8xymSaRzzbzMw,4097
|
|
53
54
|
evalsuite/text/rag.py,sha256=GF8GUp6Vnt9peBCIcdvFUapLUL36_NDApZisYG_rcqg,9641
|
|
54
55
|
evalsuite/text/reasoning.py,sha256=ydaTgAY--Tz_zEXm-Q_jLxJjTLnPgRlv39OzXWXD9yA,8885
|
|
@@ -56,12 +57,12 @@ evalsuite/text/report.py,sha256=nUAgt24rcQsnPLiNTVn3PlzZO3Y7fW_ch_lSelgfEc8,6241
|
|
|
56
57
|
evalsuite/text/retrieval.py,sha256=otQvOTbbR79kYtMum6o2HOT9UoDlSj0-JYLsFddkV1k,8969
|
|
57
58
|
evalsuite/text/semantic.py,sha256=V1Wc4bvcli0_6ZlA58guTGA65zGoCFMthbPeCh_IDjc,21408
|
|
58
59
|
evalsuite/text/spice.py,sha256=rdPCeilqKkXLMiSAE-rYOn0Zt2nKFum5Tf1oJdE6k-U,6847
|
|
59
|
-
evalsuite/text/structured.py,sha256=
|
|
60
|
+
evalsuite/text/structured.py,sha256=x08yYf2rdlmiA_D_dI1L-fc9quHiBPMKgAGQbG3kJr8,31981
|
|
60
61
|
evalsuite/vision/__init__.py,sha256=9gpOBTPveM_srE6BM-SgCssdQurya2LPHhoMLGOh2A0,991
|
|
61
62
|
evalsuite/vision/detection.py,sha256=eUnt5iFUVLEoUl1RB51q-vfr5juDCD3YH8ttLFrqxFg,27781
|
|
62
|
-
evalsuite/vision/segmentation.py,sha256=
|
|
63
|
-
evalsuite_python-0.5.
|
|
64
|
-
evalsuite_python-0.5.
|
|
65
|
-
evalsuite_python-0.5.
|
|
66
|
-
evalsuite_python-0.5.
|
|
67
|
-
evalsuite_python-0.5.
|
|
63
|
+
evalsuite/vision/segmentation.py,sha256=k8uGUsIrJByVygguFsiY3CsrLNhL5MZJ4xDEy6jcgjE,38756
|
|
64
|
+
evalsuite_python-0.5.3.dist-info/METADATA,sha256=QmMbksH85DMDzHZ2TP-jsbW4ZnXnsbIvjD6yEo2teWg,25203
|
|
65
|
+
evalsuite_python-0.5.3.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
66
|
+
evalsuite_python-0.5.3.dist-info/entry_points.txt,sha256=YYIwisn4L4sQt3ntzbM0_Z4yZE2KCu3GJ6KfWL1kIwc,54
|
|
67
|
+
evalsuite_python-0.5.3.dist-info/licenses/LICENSE,sha256=cRRQ6Kk8w2qCqtDSSUJQGy-0rqjmjJG09cZ6iIiMvdc,1095
|
|
68
|
+
evalsuite_python-0.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|