evalsuite-python 0.6.0__py3-none-any.whl → 0.7.0__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/_native.py CHANGED
@@ -8,6 +8,7 @@ or when ``EVALSUITE_PURE_PYTHON=1`` is set. Both give identical results.
8
8
  from __future__ import annotations
9
9
 
10
10
  import os
11
+ import sys
11
12
  from typing import Any, Optional
12
13
 
13
14
  core: Optional[Any]
@@ -21,6 +22,10 @@ else:
21
22
 
22
23
  HAVE_NATIVE = core is not None
23
24
 
25
+ # Python >= 3.12 sums floats with compensated (Neumaier) summation in the built-in sum(); kernels that port code
26
+ # using sum() over floats take this flag so their results match the running interpreter bit for bit.
27
+ PY_SUM_COMPENSATED = sys.version_info >= (3, 12)
28
+
24
29
 
25
30
  def backend() -> str:
26
31
  """``"rust"`` when the compiled core is in use, ``"python"`` otherwise."""
@@ -16,6 +16,7 @@ from typing import Any, Literal, Optional
16
16
 
17
17
  import numpy as np
18
18
 
19
+ from .._native import array_view, core
19
20
  from ..core.context import ClassificationContext
20
21
  from ..core.exceptions import InputValidationError, MetricInputError, UnsupportedTaskError
21
22
  from ..core.registry import register
@@ -548,7 +549,48 @@ def _require_both_classes(tps: FloatArray, fps: FloatArray, what: str) -> None:
548
549
  )
549
550
 
550
551
 
552
+ CurveStats = tuple[float, float, float, float]
553
+
554
+
555
+ def _native_curves(columns: list[tuple[FloatArray, FloatArray, FloatArray]]) -> list[CurveStats]:
556
+ """(ROC AUC, AP, positive weight, negative weight) of each (y, score, w) column, from the compiled core: one
557
+ stable sort per column, columns in parallel, bit for bit as ``_binary_curve`` + ``_binary_auc``/``_ap``."""
558
+ c = core
559
+ if c is None: # pragma: no cover - callers check
560
+ raise RuntimeError("compiled core unavailable")
561
+ keep = []
562
+ views = []
563
+ for col in columns:
564
+ triple = []
565
+ for a in col:
566
+ arr, v = array_view(a, np.float64)
567
+ keep.append(arr)
568
+ triple.append(v)
569
+ views.append(tuple(triple))
570
+ out: list[CurveStats] = c.curve_scores(views)
571
+ return out
572
+
573
+
574
+ def _auc_of(stats: CurveStats) -> float:
575
+ auc, _, tp, fp = stats
576
+ if tp == 0 or fp == 0:
577
+ missing = "positive" if tp == 0 else "negative"
578
+ raise MetricInputError(
579
+ f"ROC AUC is undefined because y_true contains no {missing} observations. "
580
+ "It needs at least one positive and one negative example."
581
+ )
582
+ return float(auc)
583
+
584
+
585
+ def _ap_of(stats: CurveStats) -> float:
586
+ if stats[2] == 0:
587
+ raise MetricInputError("Average precision is undefined because y_true contains no positive observations.")
588
+ return float(stats[1])
589
+
590
+
551
591
  def _binary_auc(y: FloatArray, score: FloatArray, w: FloatArray) -> float:
592
+ if core is not None and y.size:
593
+ return _auc_of(_native_curves([(y, score, w)])[0])
552
594
  fps, tps, _ = _binary_curve(y, score, w)
553
595
  _require_both_classes(tps, fps, "ROC AUC")
554
596
  fpr = np.r_[0.0, fps / fps[-1]]
@@ -558,6 +600,8 @@ def _binary_auc(y: FloatArray, score: FloatArray, w: FloatArray) -> float:
558
600
 
559
601
 
560
602
  def _binary_ap(y: FloatArray, score: FloatArray, w: FloatArray) -> float:
603
+ if core is not None and y.size:
604
+ return _ap_of(_native_curves([(y, score, w)])[0])
561
605
  fps, tps, _ = _binary_curve(y, score, w)
562
606
  if tps[-1] == 0:
563
607
  raise MetricInputError("Average precision is undefined because y_true contains no positive observations.")
@@ -606,6 +650,21 @@ def roc_auc(
606
650
  return _roc_auc(ctx, average=average, multi_class=multi_class, pos_label=pos_label)
607
651
 
608
652
 
653
+ def _context_curves(ctx: ClassificationContext, key: str, columns: Any) -> list[CurveStats]:
654
+ cache = ctx.__dict__.setdefault("_curve_cache", {})
655
+ if key not in cache:
656
+ cache[key] = _native_curves(columns())
657
+ out: list[CurveStats] = cache[key]
658
+ return out
659
+
660
+
661
+ def _binary_curve_stats(ctx: ClassificationContext, pos_label: Any) -> CurveStats:
662
+ idx = positive_index(ctx, pos_label)
663
+ return _context_curves(
664
+ ctx, f"binary:{idx}", lambda: [(_binary_target(ctx, pos_label), ctx.y_prob, ctx.weights)]
665
+ )[0]
666
+
667
+
609
668
  def _per_column(
610
669
  ctx: ClassificationContext,
611
670
  fn: Any,
@@ -622,9 +681,19 @@ def _per_column(
622
681
  if ctx.target_type == "multilabel"
623
682
  else (ctx.true_idx[:, None] == np.arange(ctx.labels.shape[0])[None, :]).astype(float)
624
683
  )
684
+ native = core is not None and fn in (_binary_auc, _binary_ap) and y.size > 0
685
+ pick = _auc_of if fn is _binary_auc else _ap_of
625
686
  if average == "micro":
687
+ if native:
688
+ # ROC AUC and AP share one sort: the curves are cached on the context for the other metric.
689
+ stats = _context_curves(ctx, "micro", lambda: [(y.ravel(), p.ravel(), np.repeat(w, y.shape[1]))])
690
+ return MetricResult(metric, name, pick(stats[0]), params)
626
691
  return MetricResult(metric, name, fn(y.ravel(), p.ravel(), np.repeat(w, y.shape[1])), params)
627
- scores = np.array([fn(y[:, j], p[:, j], w) for j in range(y.shape[1])])
692
+ if native:
693
+ stats = _context_curves(ctx, "columns", lambda: [(y[:, j], p[:, j], w) for j in range(y.shape[1])])
694
+ scores = np.array([pick(st) for st in stats])
695
+ else:
696
+ scores = np.array([fn(y[:, j], p[:, j], w) for j in range(y.shape[1])])
628
697
  if average is None:
629
698
  return MetricResult(metric, name, scores, params, labels=tuple(ctx.labels.tolist()))
630
699
  if average == "macro":
@@ -644,6 +713,8 @@ def _roc_auc(
644
713
  params: dict[str, Any] = {"average": avg}
645
714
  if ctx.target_type == "binary":
646
715
  params["pos_label"] = 1 if pos_label is None else pos_label
716
+ if core is not None and ctx.n:
717
+ return MetricResult("roc_auc", "ROC AUC", _auc_of(_binary_curve_stats(ctx, pos_label)), params)
647
718
  return MetricResult(
648
719
  "roc_auc", "ROC AUC", _binary_auc(_binary_target(ctx, pos_label), ctx.y_prob, ctx.weights), params
649
720
  )
@@ -712,6 +783,10 @@ def _average_precision(
712
783
  params: dict[str, Any] = {"average": avg}
713
784
  if ctx.target_type == "binary":
714
785
  params["pos_label"] = 1 if pos_label is None else pos_label
786
+ if core is not None and ctx.n:
787
+ return MetricResult(
788
+ "average_precision", "Average precision", _ap_of(_binary_curve_stats(ctx, pos_label)), params
789
+ )
715
790
  return MetricResult(
716
791
  "average_precision",
717
792
  "Average precision",
@@ -8,6 +8,7 @@ from typing import Any, Optional
8
8
 
9
9
  import numpy as np
10
10
 
11
+ from .._native import Vocab, core
11
12
  from ..core.exceptions import InputValidationError
12
13
  from ..core.result import MetricResult
13
14
 
@@ -213,3 +214,36 @@ def lists_of(x: Any, name: str) -> list[list[Any]]:
213
214
  raise InputValidationError(f"{name}[{i}] must be a list.")
214
215
  out.append(list(r))
215
216
  return out
217
+
218
+
219
+ GroupStats = tuple[bool, int, int, int, int] # unanimous, equal pairs, pairs, modal count, mode id
220
+
221
+
222
+ def group_agreement(groups: list[list[Any]]) -> Optional[tuple[list[GroupStats], list[Any]]]:
223
+ """Per group of (already normalised) answers, from the compiled core: whether all agree, the number of equal
224
+ and of all unordered pairs, the modal count and the modal answer (first seen among ties). Returns the stats
225
+ and the id -> answer table, or None when the core is unavailable or an answer is not a string (the callers
226
+ then use their Python loops, whose ``==`` semantics for other types the ids would not reproduce)."""
227
+ c = core
228
+ if c is None or not all(type(a) is str for g in groups for a in g):
229
+ return None
230
+ v = Vocab()
231
+ stats: list[GroupStats] = c.group_stats([v.encode(g) for g in groups])
232
+ return stats, list(v.ids)
233
+
234
+
235
+ RowStats = tuple[float, float, float, int] # NumPy sum, min, max, count > 0
236
+
237
+
238
+ def ragged_numbers(rows: list[Any]) -> Optional[list[RowStats]]:
239
+ """Per-row (NumPy sum, min, max, count > 0) of rows of numbers, read directly by the compiled core. None (the
240
+ caller uses its Python loop, with its own conversions and validation messages) without the core, for rows
241
+ that are not sequences of numbers, or when a value is NaN or infinite."""
242
+ c = core
243
+ if c is None:
244
+ return None
245
+ try:
246
+ stats: Optional[list[RowStats]] = c.ragged_stats(rows)
247
+ except (TypeError, ValueError, OverflowError):
248
+ return None
249
+ return stats
evalsuite/llmsys/code.py CHANGED
@@ -19,6 +19,7 @@ from typing import Any, Callable, Optional
19
19
 
20
20
  import numpy as np
21
21
 
22
+ from .._native import PY_SUM_COMPENSATED, Vocab, core
22
23
  from ..core.exceptions import InputValidationError
23
24
  from ..core.registry import register
24
25
  from ..core.result import MetricResult
@@ -671,6 +672,15 @@ def _corpus_bleu(refs: list[list[list[str]]], hyps: list[list[str]], weighted: O
671
672
  num: dict[int, float] = {n: 0.0 for n in range(1, 5)}
672
673
  den: dict[int, float] = {n: 0.0 for n in range(1, 5)}
673
674
  hyp_len = ref_len = 0
675
+ if core is not None:
676
+ v = Vocab()
677
+ h_ids = [v.encode(h) for h in hyps]
678
+ r_ids = [[v.encode(r) for r in rs] for rs in refs]
679
+ kw = None if weighted is None else [t in weighted for t in v.ids]
680
+ nums, dens, hyp_len, ref_len = core.codebleu_stats(h_ids, r_ids, kw, PY_SUM_COMPENSATED)
681
+ num = {n: nums[n - 1] for n in range(1, 5)}
682
+ den = {n: dens[n - 1] for n in range(1, 5)}
683
+ refs, hyps = [], [] # already counted
674
684
  for rs, h in zip(refs, hyps):
675
685
  for n in range(1, 5):
676
686
  hc = _ngrams(h, n)
@@ -15,7 +15,7 @@ import numpy as np
15
15
  from ..core.exceptions import InputValidationError
16
16
  from ..core.registry import register
17
17
  from ..core.result import MetricResult
18
- from ._common import bools, floats, lists_of, rate, same_length, seq
18
+ from ._common import bools, floats, group_agreement, lists_of, ragged_numbers, rate, same_length, seq
19
19
 
20
20
  __all__ = [
21
21
  "citation_coverage",
@@ -321,10 +321,19 @@ def compression_ratio(
321
321
  def citation_coverage(citations_per_statement: Any) -> MetricResult:
322
322
  """``citations_per_statement``: per output, the number of citations attached to each statement."""
323
323
  rows = lists_of(citations_per_statement, "citations_per_statement")
324
- flat = np.array([float(v) > 0 for r in rows for v in r])
325
- if flat.size == 0:
326
- raise InputValidationError("No statements given.")
327
- per = [np.mean([float(v) > 0 for v in r]) for r in rows if r]
324
+ native = ragged_numbers(rows)
325
+ if native is not None:
326
+ total = sum(map(len, rows))
327
+ if total == 0:
328
+ raise InputValidationError("No statements given.")
329
+ flat = np.zeros(total, dtype=bool)
330
+ flat[: sum(st[3] for st in native)] = True # rate() uses only the count and the total
331
+ per = [st[3] / len(r) for st, r in zip(native, rows) if r]
332
+ else:
333
+ flat = np.array([float(v) > 0 for r in rows for v in r])
334
+ if flat.size == 0:
335
+ raise InputValidationError("No statements given.")
336
+ per = [np.mean([float(v) > 0 for v in r]) for r in rows if r]
328
337
  return rate("citation_coverage", "Citation coverage", flat, {"mean_per_output": float(np.mean(per))})
329
338
 
330
339
 
@@ -343,16 +352,26 @@ def cross_document_consistency(answers: Any, *, normalize: Optional[Callable[[An
343
352
  from itertools import combinations
344
353
 
345
354
  rows = seq(answers, "answers")
346
- full, pair = [], []
355
+ normed = []
347
356
  for i, r in enumerate(rows):
348
357
  vals = list(r.values()) if isinstance(r, Mapping) else list(r) if isinstance(r, (list, tuple)) else None
349
358
  if vals is None or len(vals) < 2:
350
359
  raise InputValidationError(f"answers[{i}] needs at least two answers.")
351
- v = [
352
- normalize(a) if normalize else (" ".join(a.lower().split()) if isinstance(a, str) else a) for a in vals
353
- ]
354
- full.append(all(x == v[0] for x in v))
355
- pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
360
+ normed.append(
361
+ [
362
+ normalize(a) if normalize else (" ".join(a.lower().split()) if isinstance(a, str) else a)
363
+ for a in vals
364
+ ]
365
+ )
366
+ native = group_agreement(normed)
367
+ if native is not None:
368
+ full = [st[0] for st in native[0]]
369
+ pair = [st[1] / st[2] for st in native[0]]
370
+ else:
371
+ full, pair = [], []
372
+ for v in normed:
373
+ full.append(all(x == v[0] for x in v))
374
+ pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
356
375
  return MetricResult(
357
376
  "cross_document_consistency",
358
377
  "Cross-document consistency",
@@ -17,7 +17,7 @@ import numpy as np
17
17
  from ..core.exceptions import InputValidationError
18
18
  from ..core.registry import register
19
19
  from ..core.result import MetricResult
20
- from ._common import bools, by_group, floats, rate, same_length, seq
20
+ from ._common import bools, by_group, floats, group_agreement, rate, same_length, seq
21
21
 
22
22
  __all__ = [
23
23
  "bitext_mining_accuracy",
@@ -321,16 +321,25 @@ def cross_lingual_consistency(
321
321
  ) -> MetricResult:
322
322
  """``answers_by_language``: per question, a mapping language -> answer (at least two languages)."""
323
323
  rows = seq(answers_by_language, "answers_by_language")
324
- full, pair = [], []
324
+ normed = []
325
325
  for i, r in enumerate(rows):
326
326
  if not isinstance(r, Mapping) or len(r) < 2:
327
327
  raise InputValidationError(f"answers_by_language[{i}] must map at least two languages to answers.")
328
- v = [
329
- normalize(a) if normalize else (" ".join(a.lower().split()) if isinstance(a, str) else a)
330
- for a in r.values()
331
- ]
332
- full.append(all(x == v[0] for x in v))
333
- pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
328
+ normed.append(
329
+ [
330
+ normalize(a) if normalize else (" ".join(a.lower().split()) if isinstance(a, str) else a)
331
+ for a in r.values()
332
+ ]
333
+ )
334
+ native = group_agreement(normed)
335
+ if native is not None:
336
+ full = [st[0] for st in native[0]]
337
+ pair = [st[1] / st[2] for st in native[0]]
338
+ else:
339
+ full, pair = [], []
340
+ for v in normed:
341
+ full.append(all(x == v[0] for x in v))
342
+ pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
334
343
  return MetricResult(
335
344
  "cross_lingual_consistency",
336
345
  "Cross-lingual consistency",
@@ -19,7 +19,7 @@ import numpy as np
19
19
  from ..core.exceptions import InputValidationError
20
20
  from ..core.registry import register
21
21
  from ..core.result import MetricResult
22
- from ._common import bools, floats, lists_of, rate, same_length, seq
22
+ from ._common import bools, floats, group_agreement, lists_of, rate, same_length, seq
23
23
 
24
24
  __all__ = [
25
25
  "add_typos",
@@ -198,11 +198,16 @@ def paraphrase_consistency(answers: Any, *, normalize: Optional[Callable[[Any],
198
198
  rows = lists_of(answers, "answers")
199
199
  if any(len(r) < 2 for r in rows):
200
200
  raise InputValidationError("Every item needs answers to at least two paraphrases.")
201
- full, pair = [], []
202
- for r in rows:
203
- v = [_norm(a, normalize) for a in r]
204
- full.append(all(x == v[0] for x in v))
205
- pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
201
+ normed = [[_norm(a, normalize) for a in r] for r in rows]
202
+ native = group_agreement(normed)
203
+ if native is not None:
204
+ full = [st[0] for st in native[0]]
205
+ pair = [st[1] / st[2] for st in native[0]]
206
+ else:
207
+ full, pair = [], []
208
+ for v in normed:
209
+ full.append(all(x == v[0] for x in v))
210
+ pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
206
211
  return MetricResult(
207
212
  "paraphrase_consistency",
208
213
  "Paraphrase consistency",
@@ -321,12 +326,18 @@ def response_stability(samples: Any, *, normalize: Optional[Callable[[Any], Any]
321
326
  rows = lists_of(samples, "samples")
322
327
  if any(len(r) < 2 for r in rows):
323
328
  raise InputValidationError("Every prompt needs at least two samples.")
324
- pair, unanimous, modal = [], [], []
325
- for r in rows:
326
- v = [_norm(a, normalize) for a in r]
327
- pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
328
- unanimous.append(all(x == v[0] for x in v))
329
- modal.append(Counter(map(repr, v)).most_common(1)[0][1] / len(v))
329
+ normed = [[_norm(a, normalize) for a in r] for r in rows]
330
+ native = group_agreement(normed)
331
+ if native is not None:
332
+ pair = [st[1] / st[2] for st in native[0]]
333
+ unanimous = [st[0] for st in native[0]]
334
+ modal = [st[3] / len(v) for st, v in zip(native[0], normed)]
335
+ else:
336
+ pair, unanimous, modal = [], [], []
337
+ for v in normed:
338
+ pair.append(np.mean([x == y for x, y in combinations(v, 2)]))
339
+ unanimous.append(all(x == v[0] for x in v))
340
+ modal.append(Counter(map(repr, v)).most_common(1)[0][1] / len(v))
330
341
  return MetricResult(
331
342
  "response_stability",
332
343
  "Response stability",
@@ -15,10 +15,11 @@ from typing import Any, Optional
15
15
 
16
16
  import numpy as np
17
17
 
18
+ from .._native import core
18
19
  from ..core.exceptions import InputValidationError
19
20
  from ..core.registry import register
20
21
  from ..core.result import MetricResult
21
- from ._common import bools, by_group, floats, lists_of, rate, same_length, seq, wilson
22
+ from ._common import bools, by_group, floats, lists_of, ragged_numbers, rate, same_length, seq, wilson
22
23
 
23
24
  __all__ = [
24
25
  "PII_PATTERNS",
@@ -236,6 +237,10 @@ def toxicity_score(scores: Any, *, threshold: float = 0.5, attributes: Any = Non
236
237
 
237
238
  def maxima(x: Any, name: str) -> np.ndarray:
238
239
  rows = seq(x, name)
240
+ wrapped = [r if isinstance(r, (list, tuple, np.ndarray)) else [r] for r in rows]
241
+ stats = ragged_numbers(wrapped)
242
+ if stats is not None and all(len(r) for r in wrapped) and all(st[1] >= 0 and st[2] <= 1 for st in stats):
243
+ return np.array([st[2] for st in stats])
239
244
  out = np.empty(len(rows))
240
245
  for i, r in enumerate(rows):
241
246
  vals = floats(r if isinstance(r, (list, tuple, np.ndarray)) else [r], f"{name}[{i}]", lo=0, hi=1)
@@ -442,6 +447,20 @@ def pii_leakage_rate(
442
447
  return rate("pii_leakage_rate", "PII leakage rate", flags, extra)
443
448
 
444
449
 
450
+ def _native_better(canaries: np.ndarray, rows: list[Any]) -> Optional[list[int]]:
451
+ """Per canary, the number of its candidates scored strictly below it, from the compiled core (which reads the
452
+ rows directly); None (use the Python path, with its validation messages) without the core, for rows that are
453
+ not sequences of numbers, or for NaN or infinite values."""
454
+ c = core
455
+ if c is None:
456
+ return None
457
+ try:
458
+ out: Optional[list[int]] = c.count_below(rows, canaries.tolist())
459
+ except (TypeError, ValueError, OverflowError):
460
+ return None
461
+ return out
462
+
463
+
445
464
  @register(
446
465
  category=_C,
447
466
  task="privacy",
@@ -464,15 +483,21 @@ def exposure(canary_scores: Any, candidate_scores: Any, *, space_size: Optional[
464
483
  rows = lists_of(candidate_scores, "candidate_scores")
465
484
  same_length(("canary_scores", c), ("candidate_scores", rows))
466
485
  per = np.empty(c.size)
486
+ counts = _native_better(c, rows)
467
487
  for i, (canary, cand) in enumerate(zip(c, rows)):
468
- r = floats(cand, f"candidate_scores[{i}]")
469
- better = int((r < canary).sum())
488
+ if counts is None:
489
+ r = floats(cand, f"candidate_scores[{i}]")
490
+ better, m = int((r < canary).sum()), int(r.size)
491
+ else:
492
+ better, m = counts[i], len(cand)
493
+ if not m:
494
+ raise InputValidationError(f"candidate_scores[{i}] is empty. Provide at least one example.")
470
495
  if space_size is None:
471
- size, rank = float(r.size + 1), float(better + 1)
496
+ size, rank = float(m + 1), float(better + 1)
472
497
  else:
473
- if space_size < r.size + 1:
498
+ if space_size < m + 1:
474
499
  raise InputValidationError("space_size must be at least the number of candidates + 1.")
475
- size, rank = space_size, max(1.0, better / r.size * space_size + 1)
500
+ size, rank = space_size, max(1.0, better / m * space_size + 1)
476
501
  per[i] = math.log2(size) - math.log2(rank)
477
502
  return MetricResult(
478
503
  "exposure",
@@ -17,7 +17,7 @@ from ..core.result import _json_safe, _latex_escape, _latex_table
17
17
  from ..core.types import ArrayLike
18
18
  from ._resolve import MetricCall, as_items, as_observations, is_categorical, resolve_metric
19
19
  from .effect import adjust_pvalues
20
- from .intervals import _check_level, _check_resamples, bootstrap_distribution, resample_indices
20
+ from .intervals import _check_level, _check_resamples, bootstrap_distribution, check_resampling, resample_indices
21
21
  from .paired import delong_test, mcnemar_test
22
22
 
23
23
  if TYPE_CHECKING:
@@ -271,6 +271,7 @@ def compare(
271
271
  stratify: Optional[bool] = None,
272
272
  sample_weight: Optional[ArrayLike] = None,
273
273
  metric_kwargs: Optional[Mapping[str, Mapping[str, Any]]] = None,
274
+ resampling: str = "numpy",
274
275
  ) -> ComparisonResult:
275
276
  """Compare models evaluated on the same test set.
276
277
 
@@ -285,9 +286,11 @@ def compare(
285
286
  Pairs are every model against ``baseline`` if given, otherwise all pairs. p-values are adjusted within
286
287
  each metric (``correction``: "holm", "bonferroni", "hochberg", "bh", "by"); ``significant`` uses the adjusted
287
288
  p-value and ``alpha``. ``metric_kwargs`` passes options per metric, e.g. ``{"f1": {"average": "macro"}}``.
289
+ ``resampling="native"`` (opt-in) draws the bootstrap indices in the compiled core; see :func:`bootstrap_ci`.
288
290
  """
289
291
  level = _check_level(level)
290
292
  n_resamples = _check_resamples(n_resamples)
293
+ resampling = check_resampling(resampling)
291
294
  predictions = dict(predictions or {})
292
295
  probabilities = dict(probabilities or {})
293
296
  names = list(dict.fromkeys([*predictions, *probabilities]))
@@ -343,7 +346,7 @@ def compare(
343
346
 
344
347
  rng = np.random.default_rng(random_state)
345
348
  use_strata = categorical if stratify is None else bool(stratify)
346
- idx = resample_indices(yt.shape[0], n_resamples, rng, yt if use_strata else None)
349
+ idx = resample_indices(yt.shape[0], n_resamples, rng, yt if use_strata else None, resampling)
347
350
  a = (1 - level) / 2
348
351
  boot: dict[tuple[str, str], np.ndarray] = {}
349
352
  estimates: list[dict[str, Any]] = []
@@ -17,6 +17,7 @@ else:
17
17
  special = lazy_module("scipy.special")
18
18
  stats = lazy_module("scipy.stats")
19
19
 
20
+ from .._native import array_view, core
20
21
  from ..core.exceptions import EvalSuiteError, InputValidationError, StatisticalTestError
21
22
  from ..core.types import ArrayLike
22
23
  from ..core.validation import to_numpy
@@ -41,16 +42,57 @@ def _check_resamples(n_resamples: int) -> int:
41
42
  return int(n_resamples)
42
43
 
43
44
 
45
+ RESAMPLING = ("numpy", "native")
46
+
47
+
48
+ def check_resampling(resampling: str) -> str:
49
+ if resampling not in RESAMPLING:
50
+ raise InputValidationError("resampling must be 'numpy' or 'native'.")
51
+ if resampling == "native" and core is None:
52
+ raise InputValidationError(
53
+ "resampling='native' needs the compiled core, which is not available (pure-Python install or "
54
+ "EVALSUITE_PURE_PYTHON=1)."
55
+ )
56
+ return resampling
57
+
58
+
59
+ def _strata_groups(n: int, strata: NDArray[Any]) -> list[NDArray[np.intp]]:
60
+ values = np.unique(strata, axis=0) if strata.ndim > 1 else np.unique(strata)
61
+ return [
62
+ np.flatnonzero(np.all(strata == value, axis=1) if strata.ndim > 1 else strata == value) for value in values
63
+ ]
64
+
65
+
44
66
  def resample_indices(
45
- n: int, n_resamples: int, rng: np.random.Generator, strata: Optional[NDArray[Any]] = None
67
+ n: int,
68
+ n_resamples: int,
69
+ rng: np.random.Generator,
70
+ strata: Optional[NDArray[Any]] = None,
71
+ resampling: str = "numpy",
46
72
  ) -> NDArray[np.int64]:
47
- """(n_resamples, n) indices drawn with replacement, optionally within strata (keeps class balance)."""
73
+ """(n_resamples, n) indices drawn with replacement, optionally within strata (keeps class balance).
74
+
75
+ ``resampling="native"`` draws them in the compiled core (xoshiro256++, in parallel) from one seed taken from
76
+ ``rng``: reproducible for a given ``random_state`` and thread count–independent, but a different stream from
77
+ NumPy's, so intervals differ (statistically equivalently) from the default."""
78
+ if resampling == "native":
79
+ c = core
80
+ if c is None: # pragma: no cover - checked by check_resampling
81
+ raise InputValidationError("resampling='native' needs the compiled core.")
82
+ seed = int(rng.integers(0, 2**63))
83
+ groups = None
84
+ if strata is not None:
85
+ parts = _strata_groups(n, strata)
86
+ members, view = array_view(np.concatenate(parts), np.int64)
87
+ groups = (view, [0, *np.cumsum([p.shape[0] for p in parts]).tolist()])
88
+ out = np.empty((n_resamples, n), dtype=np.int64)
89
+ c.bootstrap_indices((int(out.ctypes.data), int(out.size)), n, seed, groups)
90
+ return out
48
91
  if strata is None:
49
92
  return rng.integers(0, n, size=(n_resamples, n))
50
93
  out = np.empty((n_resamples, n), dtype=np.int64)
51
94
  pos = 0
52
- for value in np.unique(strata, axis=0) if strata.ndim > 1 else np.unique(strata):
53
- members = np.flatnonzero(np.all(strata == value, axis=1) if strata.ndim > 1 else strata == value)
95
+ for members in _strata_groups(n, strata):
54
96
  k = members.shape[0]
55
97
  out[:, pos : pos + k] = members[rng.integers(0, k, size=(n_resamples, k))]
56
98
  pos += k
@@ -110,25 +152,29 @@ def bootstrap_ci(
110
152
  random_state: Optional[int] = None,
111
153
  stratify: Optional[bool] = None,
112
154
  jackknife_groups: int = 1000,
155
+ resampling: str = "numpy",
113
156
  **metric_kwargs: Any,
114
157
  ) -> ConfidenceInterval:
115
158
  """Bootstrap confidence interval for any metric.
116
159
 
117
- ``metric`` is a metric function (``es.f1``) or its name (``"f1"``). Pass ``y_pred`` for label/value
118
- metrics or ``y_prob`` for probability metrics; extra keyword arguments go to the metric (for example
119
- ``average="macro"``). Resampling is stratified by class for classification targets unless
120
- ``stratify=False``, so every resample contains every class. For classification metrics that accept
121
- ``labels``, the full label set is fixed across resamples.
160
+ ``metric`` is a metric function (``es.f1``) or its name (``"f1"``). Pass ``y_pred`` for label/value
161
+ metrics or ``y_prob`` for probability metrics; extra keyword arguments go to the metric (for example
162
+ ``average="macro"``). Resampling is stratified by class for classification targets unless
163
+ ``stratify=False``, so every resample contains every class. For classification metrics that accept
164
+ ``labels``, the full label set is fixed across resamples.
122
165
 
123
- ``method``: ``"bca"`` (bias-corrected and accelerated; default, Efron 1987), ``"percentile"`` or
124
- ``"basic"``. Set ``random_state`` for reproducible intervals. Resamples on which the metric is undefined
125
- are counted in ``params["failed_resamples"]``; more than 10% raises :class:`StatisticalTestError`.
166
+ ``method``: ``"bca"`` (bias-corrected and accelerated; default, Efron 1987), ``"percentile"`` or
167
+ ``"basic"``. Set ``random_state`` for reproducible intervals. Resamples on which the metric is undefined
168
+ are counted in ``params["failed_resamples"]``; more than 10% raises :class:`StatisticalTestError`.
169
+ ``resampling="native"`` (opt-in) draws the resample indices in the compiled core instead of NumPy: faster on
170
+ large inputs and still reproducible with ``random_state``, but a different random stream from the default.
126
171
 
127
- References: Efron B. Better bootstrap confidence intervals. JASA. 1987;82(397):171-185.
128
- Efron B, Tibshirani RJ. An Introduction to the Bootstrap. Chapman & Hall; 1993.
172
+ References: Efron B. Better bootstrap confidence intervals. JASA. 1987;82(397):171-185.
173
+ Efron B, Tibshirani RJ. An Introduction to the Bootstrap. Chapman & Hall; 1993.
129
174
  """
130
175
  level = _check_level(level)
131
176
  n_resamples = _check_resamples(n_resamples)
177
+ resampling = check_resampling(resampling)
132
178
  if method not in ("percentile", "basic", "bca"):
133
179
  raise InputValidationError("method must be 'bca', 'percentile' or 'basic'.")
134
180
  fn, name = resolve_metric(metric)
@@ -136,7 +182,7 @@ def bootstrap_ci(
136
182
  estimate = call()
137
183
  rng = np.random.default_rng(random_state)
138
184
  use_strata = call.categorical if stratify is None else bool(stratify)
139
- idx = resample_indices(call.n, n_resamples, rng, call.y_true if use_strata else None)
185
+ idx = resample_indices(call.n, n_resamples, rng, call.y_true if use_strata else None, resampling)
140
186
  boot, failed = bootstrap_distribution(call, idx)
141
187
  if failed > MAX_FAILED_FRACTION * n_resamples:
142
188
  raise StatisticalTestError(
@@ -150,6 +196,7 @@ def bootstrap_ci(
150
196
  "random_state": random_state,
151
197
  "stratified": use_strata,
152
198
  "failed_resamples": failed,
199
+ "resampling": resampling,
153
200
  **{k: v for k, v in metric_kwargs.items()},
154
201
  }
155
202
  if method == "percentile":
evalsuite/stats/paired.py CHANGED
@@ -23,6 +23,7 @@ from .intervals import (
23
23
  _check_resamples,
24
24
  binary_scores,
25
25
  bootstrap_distribution,
26
+ check_resampling,
26
27
  delong_covariance,
27
28
  delong_placements,
28
29
  resample_indices,
@@ -138,6 +139,7 @@ def paired_bootstrap_test(
138
139
  random_state: Optional[int] = None,
139
140
  stratify: Optional[bool] = None,
140
141
  alternative: Literal["two-sided", "greater", "less"] = "two-sided",
142
+ resampling: str = "numpy",
141
143
  **metric_kwargs: Any,
142
144
  ) -> TestResult:
143
145
  """Paired bootstrap test for any metric: is metric(A) − metric(B) different from 0?
@@ -146,10 +148,13 @@ def paired_bootstrap_test(
146
148
  distribution (difference re-centred on 0 under the null), with the +1 correction so it is never 0:
147
149
  p = (1 + #{|δ* − δ̂| ≥ |δ̂|}) / (B + 1) for a two-sided test. ``ci`` is the percentile interval of δ*.
148
150
 
151
+ ``resampling="native"`` (opt-in) draws the resample indices in the compiled core; see :func:`bootstrap_ci`.
152
+
149
153
  Reference: Efron B, Tibshirani RJ. An Introduction to the Bootstrap. Chapman & Hall; 1993, ch. 16.
150
154
  """
151
155
  level = _check_level(level)
152
156
  n_resamples = _check_resamples(n_resamples)
157
+ resampling = check_resampling(resampling)
153
158
  if alternative not in ("two-sided", "greater", "less"):
154
159
  raise InputValidationError("alternative must be 'two-sided', 'greater' or 'less'.")
155
160
  fn, name = resolve_metric(metric)
@@ -170,7 +175,7 @@ def paired_bootstrap_test(
170
175
  observed = call_a() - call_b()
171
176
  rng = np.random.default_rng(random_state)
172
177
  use_strata = call_a.categorical if stratify is None else bool(stratify)
173
- idx = resample_indices(call_a.n, n_resamples, rng, call_a.y_true if use_strata else None)
178
+ idx = resample_indices(call_a.n, n_resamples, rng, call_a.y_true if use_strata else None, resampling)
174
179
  da, fa = bootstrap_distribution(call_a, idx)
175
180
  db, fb = bootstrap_distribution(call_b, idx)
176
181
  diff = da - db
@@ -18,6 +18,7 @@ import numpy as np
18
18
  from ..core.exceptions import InputValidationError
19
19
  from ..core.registry import register
20
20
  from ..core.result import MetricResult
21
+ from ..llmsys._common import ragged_numbers
21
22
  from ._common import per_item
22
23
 
23
24
  __all__ = [
@@ -190,7 +191,15 @@ def groundedness(support_scores: Any, *, average: Optional[str] = "macro") -> Me
190
191
  if not answers:
191
192
  raise InputValidationError("support_scores must be a non-empty list of score lists (one per answer).")
192
193
  sums, counts = [], []
193
- for i, a in enumerate(answers):
194
+ native = ragged_numbers(answers)
195
+ if native is not None:
196
+ for i, ((total, lo, hi, _), a) in enumerate(zip(native, answers)):
197
+ m = len(a)
198
+ if m and (lo < 0 or hi > 1):
199
+ raise InputValidationError(f"support_scores[{i}] must be finite values in [0, 1].")
200
+ sums.append(float(total))
201
+ counts.append(m)
202
+ for i, a in enumerate(answers if native is None else ()):
194
203
  arr = np.asarray(list(a), dtype=float)
195
204
  if arr.size and (not np.all(np.isfinite(arr)) or arr.min() < 0 or arr.max() > 1):
196
205
  raise InputValidationError(f"support_scores[{i}] must be finite values in [0, 1].")
@@ -17,7 +17,7 @@ from typing import Any, Callable, Literal, Optional
17
17
 
18
18
  import numpy as np
19
19
 
20
- from .._native import Vocab, core
20
+ from .._native import PY_SUM_COMPENSATED, Vocab, core
21
21
  from ..core.exceptions import InputValidationError
22
22
  from ..core.registry import register
23
23
  from ..core.result import MetricResult
@@ -968,13 +968,17 @@ def distinct_n(predictions: Any, *, n: int = 1, lowercase: bool = False) -> Metr
968
968
  """Distinct-n over the whole set of predictions (``n=1`` Distinct-1, ``n=2`` Distinct-2)."""
969
969
  preds = as_texts(predictions, "predictions")
970
970
  n = check_positive_int(n, "n")
971
- counts: Counter[tuple[str, ...]] = Counter()
972
- for p in preds:
973
- counts.update(word_ngrams((p.lower() if lowercase else p).split(), n))
974
- total = sum(counts.values())
971
+ if core is not None:
972
+ v = Vocab()
973
+ unique, total = core.distinct_ngrams([v.encode((p.lower() if lowercase else p).split()) for p in preds], n)
974
+ else:
975
+ counts: Counter[tuple[str, ...]] = Counter()
976
+ for p in preds:
977
+ counts.update(word_ngrams((p.lower() if lowercase else p).split(), n))
978
+ unique, total = len(counts), sum(counts.values())
975
979
  if total == 0:
976
980
  raise InputValidationError(f"The predictions contain no {n}-grams.")
977
- return MetricResult("distinct_n", f"Distinct-{n}", len(counts) / total, {"n": n, "total_ngrams": total})
981
+ return MetricResult("distinct_n", f"Distinct-{n}", unique / total, {"n": n, "total_ngrams": total})
978
982
 
979
983
 
980
984
  @register(
@@ -1308,6 +1312,18 @@ def cider(
1308
1312
  def words(s: str) -> list[str]:
1309
1313
  return tok(s.lower() if lowercase else s)
1310
1314
 
1315
+ if core is not None:
1316
+ v = Vocab()
1317
+ totals = core.cider_totals(
1318
+ [v.encode(words(p)) for p in preds],
1319
+ [[v.encode(words(r)) for r in rs] for rs in refs],
1320
+ n,
1321
+ float(sigma),
1322
+ PY_SUM_COMPENSATED,
1323
+ )
1324
+ arr = np.array([float(np.mean(np.array(t))) / len(rs) * 10.0 for t, rs in zip(totals, refs)])
1325
+ value_n: Any = arr if average is None else float(arr.mean())
1326
+ return MetricResult("cider", "CIDEr-D", value_n, {"max_order": n, "sigma": sigma})
1311
1327
  ctest = [_cider_counts(words(p), n) for p in preds]
1312
1328
  crefs = [[_cider_counts(words(r), n) for r in rs] for rs in refs]
1313
1329
  df: Counter[tuple[str, ...]] = Counter()
evalsuite/text/judge.py CHANGED
@@ -20,6 +20,7 @@ else:
20
20
 
21
21
  stats = lazy_module("scipy.stats")
22
22
 
23
+ from .._native import core
23
24
  from ..core.exceptions import InputValidationError
24
25
  from ..core.registry import register
25
26
  from ..core.result import MetricResult
@@ -158,10 +159,14 @@ def bradley_terry(
158
159
  or lose every comparison, otherwise the MLE does not exist."""
159
160
  names, rows = _comparisons(comparisons)
160
161
  m = len(names)
161
- wins = np.zeros((m, m))
162
- for a, b, o in rows:
163
- wins[a, b] += o
164
- wins[b, a] += 1 - o
162
+ c = core
163
+ if c is not None:
164
+ wins = np.array(c.win_matrix(rows, m)).reshape(m, m)
165
+ else:
166
+ wins = np.zeros((m, m))
167
+ for a, b, o in rows:
168
+ wins[a, b] += o
169
+ wins[b, a] += 1 - o
165
170
  games = wins + wins.T
166
171
  total_w = wins.sum(axis=1)
167
172
  if np.any(total_w == 0) or np.any(total_w == games.sum(axis=1)):
@@ -225,11 +230,15 @@ def elo_ratings(
225
230
  names, rows = _comparisons(comparisons)
226
231
  if k <= 0 or scale <= 0 or base <= 1:
227
232
  raise InputValidationError("k and scale must be positive and base > 1.")
228
- r = np.full(len(names), float(initial))
229
- for a, b, o in rows:
230
- ea = 1 / (1 + base ** ((r[b] - r[a]) / scale))
231
- r[a] += k * (o - ea)
232
- r[b] += k * ((1 - o) - (1 - ea))
233
+ c = core
234
+ if c is not None:
235
+ r = np.array(c.elo_ratings(rows, len(names), float(k), float(initial), float(scale), float(base)))
236
+ else:
237
+ r = np.full(len(names), float(initial))
238
+ for a, b, o in rows:
239
+ ea = 1 / (1 + base ** ((r[b] - r[a]) / scale))
240
+ r[a] += k * (o - ea)
241
+ r[b] += k * ((1 - o) - (1 - ea))
233
242
  return MetricResult(
234
243
  "elo_ratings",
235
244
  "Elo rating",
@@ -8,6 +8,7 @@ from typing import Any, Optional
8
8
 
9
9
  import numpy as np
10
10
 
11
+ from .._native import Vocab, core
11
12
  from ..core.exceptions import InputValidationError
12
13
  from ..core.registry import register
13
14
  from ..core.result import MetricResult
@@ -85,12 +86,26 @@ def majority_vote_accuracy(
85
86
  refs = as_references(references, len(groups))
86
87
  f = _norm(normalize)
87
88
  scores = []
88
- for i, (answers, rs) in enumerate(zip(groups, refs)):
89
- if isinstance(answers, str) or not answers:
90
- raise InputValidationError(f"samples[{i}] must be a non-empty list of answer strings.")
91
- votes = Counter(f(str(a)) for a in answers)
92
- top = votes.most_common(1)[0][0] # Counter keeps first-seen order among ties
93
- scores.append(float(any(top == f(r) for r in rs)))
89
+ c = core
90
+ if c is not None:
91
+ normed = []
92
+ for i, answers in enumerate(groups):
93
+ if isinstance(answers, str) or not answers:
94
+ raise InputValidationError(f"samples[{i}] must be a non-empty list of answer strings.")
95
+ normed.append([f(str(a)) for a in answers])
96
+ v = Vocab()
97
+ stats = c.group_stats([v.encode(g) for g in normed])
98
+ table = list(v.ids)
99
+ for st, rs in zip(stats, refs):
100
+ top = table[st[4]] # the modal answer, first seen among ties, as Counter.most_common
101
+ scores.append(float(any(top == f(r) for r in rs)))
102
+ else:
103
+ for i, (answers, rs) in enumerate(zip(groups, refs)):
104
+ if isinstance(answers, str) or not answers:
105
+ raise InputValidationError(f"samples[{i}] must be a non-empty list of answer strings.")
106
+ votes = Counter(f(str(a)) for a in answers)
107
+ top = votes.most_common(1)[0][0] # Counter keeps first-seen order among ties
108
+ scores.append(float(any(top == f(r) for r in rs)))
94
109
  arr = np.array(scores)
95
110
  value: Any = arr if average is None else float(arr.mean())
96
111
  return MetricResult("majority_vote_accuracy", "Majority-vote accuracy", value, {"n_questions": len(scores)})
evalsuite/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Package version (single source of truth, read by the build backend)."""
2
2
 
3
- __version__ = "0.6.0"
3
+ __version__ = "0.7.0"
@@ -310,6 +310,8 @@ def _coco_eval(
310
310
  areas: Sequence[str],
311
311
  ) -> tuple[list[int], NDArray[np.float64], NDArray[np.float64]]:
312
312
  """precision (T, R, K, A, M) and recall (T, K, A, M); -1 where undefined (no ground truth)."""
313
+ if core is not None:
314
+ return _coco_eval_native(images, iou_thrs, max_dets, areas)
313
315
  top = max(max_dets)
314
316
  cats, pairs = _prepare(images, top)
315
317
  t_n, r_n, k_n, a_n, m_n = len(iou_thrs), _REC_THRS.size, len(cats), len(areas), len(max_dets)
@@ -348,6 +350,52 @@ def _coco_eval(
348
350
  return cats, precision, recall
349
351
 
350
352
 
353
+ def _coco_eval_native(
354
+ images: list[_Image],
355
+ iou_thrs: NDArray[np.float64],
356
+ max_dets: Sequence[int],
357
+ areas: Sequence[str],
358
+ ) -> tuple[list[int], NDArray[np.float64], NDArray[np.float64]]:
359
+ """:func:`_coco_eval` in the compiled core: preparation, matching and accumulation, parallel over classes."""
360
+ c = core
361
+ if c is None: # pragma: no cover - only called with the core
362
+ raise RuntimeError("compiled core not available")
363
+
364
+ def cat(parts: list[NDArray[Any]], dtype: Any, shape: tuple[int, ...]) -> NDArray[Any]:
365
+ return np.concatenate(parts).astype(dtype, copy=False) if parts else np.zeros(shape, dtype=dtype)
366
+
367
+ gt_off = np.cumsum([0] + [im.gt_boxes.shape[0] for im in images]).astype(np.int64)
368
+ dt_off = np.cumsum([0] + [im.dt_boxes.shape[0] for im in images]).astype(np.int64)
369
+ arrays = [
370
+ (cat([im.gt_boxes.reshape(-1, 4) for im in images], np.float64, (0, 4)), np.float64),
371
+ (cat([im.gt_labels for im in images], np.int64, (0,)), np.int64),
372
+ (cat([im.gt_crowd for im in images], np.bool_, (0,)), np.bool_),
373
+ (cat([im.gt_area for im in images], np.float64, (0,)), np.float64),
374
+ (gt_off, np.int64),
375
+ (cat([im.dt_boxes.reshape(-1, 4) for im in images], np.float64, (0, 4)), np.float64),
376
+ (cat([im.dt_labels for im in images], np.int64, (0,)), np.int64),
377
+ (cat([im.dt_scores for im in images], np.float64, (0,)), np.float64),
378
+ (dt_off, np.int64),
379
+ ]
380
+ held, views = [], []
381
+ for arr, dtype in arrays:
382
+ a, v = array_view(arr, dtype)
383
+ held.append(a)
384
+ views.append(v)
385
+ cats, raw_p, raw_r = c.coco_evaluate(
386
+ *views,
387
+ [float(t) for t in iou_thrs],
388
+ [int(m) for m in max_dets],
389
+ [_AREAS[a] for a in areas],
390
+ [float(r) for r in _REC_THRS],
391
+ )
392
+ del held
393
+ t_n, r_n, k_n, a_n, m_n = len(iou_thrs), _REC_THRS.size, len(cats), len(areas), len(max_dets)
394
+ precision = np.frombuffer(raw_p, dtype=np.float64).reshape(t_n, r_n, k_n, a_n, m_n).copy()
395
+ recall = np.frombuffer(raw_r, dtype=np.float64).reshape(t_n, k_n, a_n, m_n).copy()
396
+ return [int(k) for k in cats], precision, recall
397
+
398
+
351
399
  def _mean_valid(x: NDArray[np.float64]) -> float:
352
400
  v = x[x > -1]
353
401
  return float(np.mean(v)) if v.size else math.nan
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: evalsuite-python
3
- Version: 0.6.0
3
+ Version: 0.7.0
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
@@ -85,9 +85,11 @@ Description-Content-Type: text/markdown
85
85
  EvalSuite brings classification, regression, clinical, statistical, segmentation and object-detection
86
86
  evaluation into one consistent, validated, documented framework.
87
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).
88
+ > **Status: stable (0.7.0).** Every item on the 0.1.0–0.5.0 roadmaps is implemented and verified, including SPICE.
89
+ > **0.6 adds a compiled Rust core**: same API and identical results, with text metrics, COCO evaluation and
90
+ > bootstrap resampling several times faster and multithreaded (prebuilt wheels for Linux, macOS and Windows).
91
+ > **0.7.0** moves ROC AUC / average precision (and so `evaluate()`), the LLM-systems consistency metrics,
92
+ > groundedness, citation coverage, toxicity, exposure and Elo into the core.
91
93
  > **LLM systems arrive in 0.5.0**: safety, robustness, calibration and uncertainty, agents and tool use,
92
94
  > multilingual, code generation, long context and summarization, and inference efficiency and cost.
93
95
 
@@ -109,6 +111,13 @@ is needed. Anywhere else pip falls back to a pure-Python wheel that gives exactl
109
111
  `evalsuite._native.backend()` says which one is in use (`"rust"` or `"python"`), and
110
112
  `EVALSUITE_PURE_PYTHON=1` selects the Python implementations on any install.
111
113
 
114
+ The core runs independent examples (sentences, images, classes, resamples) in parallel on all CPU cores; set
115
+ `EVALSUITE_NUM_THREADS` to cap the number of threads. Results never depend on the thread count: sums are always
116
+ taken in example order. Bootstrap functions (`bootstrap_ci`, `paired_bootstrap_test`, `compare`) accept
117
+ `resampling="native"` to draw resample indices in the core (seeded xoshiro256++): reproducible with
118
+ `random_state` and faster on large inputs, but a different random stream from the default NumPy one, so the
119
+ interval endpoints differ slightly (statistically equivalent).
120
+
112
121
  ## Why EvalSuite
113
122
 
114
123
  - **One consistent API.** Every metric returns a result object that behaves like a number and exports to
@@ -349,51 +358,55 @@ Input files can be CSV, TSV, Parquet or JSON. Output format follows `--format` o
349
358
 
350
359
  ## Performance
351
360
 
352
- Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.6.0, Python 3.13,
361
+ Benchmarked against reference implementations on the same data (fastest of 5 runs; EvalSuite 0.7.0, Python 3.13,
353
362
  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
363
+ difference 2.5e-14), 79 are faster (the other 2 are Hochberg correction at 1,000,000 p-values, 0.8–1.05× statsmodels across runs,
364
+ and latency percentiles, within timing noise of NumPy), and the geometric-mean speed-up across all
365
+ 27 cases and three sizes is **4.22×**. At 1,000,000 samples (pixels for
356
366
  segmentation; 1,000 images for detection and 50 for Hausdorff; 10,000 examples for the LLM cases), in
357
367
  alphabetical order:
358
368
 
359
369
  | Case | Reference | EvalSuite (ms) | Reference (ms) | Speed-up |
360
370
  | --- | --- | ---: | ---: | ---: |
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×** |
371
+ | 10 classes: macro F1 | scikit-learn | 7.1 | 109.5 | **15.5×** |
372
+ | agreement: Krippendorff's alpha, interval (4 raters × 10000 items) | krippendorff | 1.3 | 2.7 | **2.2×** |
373
+ | binary: 8 label metrics via evaluate() | scikit-learn | 9.8 | 860.9 | **87.6×** |
374
+ | binary: ROC AUC | scikit-learn | 84.8 | 267.7 | **3.2×** |
375
+ | calibration: slope and intercept | statsmodels | 179.6 | 946.7 | **5.3×** |
376
+ | clinical: diagnostic report (7 CIs) | statsmodels | 4.4 | 4.7 | **1.1×** |
377
+ | clinical: sensitivity, specificity, LR+, LR− | scikit-learn | 17.7 | 328.1 | **18.5×** |
378
+ | decision curve: 99 thresholds | NumPy loop | 133.1 | 168.4 | **1.3×** |
379
+ | detection: COCO evaluation (1000 images) | pycocotools | 30.3 | 616.3 | **20.4×** |
380
+ | multiple testing: Hochberg (n p-values) | statsmodels | 86.4 | 69.9 | 0.81× |
381
+ | regression: MAE, MSE, RMSE, R² via evaluate() | scikit-learn | 6.2 | 9.9 | **1.6×** |
382
+ | retrieval: MRR, MAP@20, NDCG@10 (10000 queries) | ranx | 118.3 | 577.6 | **4.9×** |
383
+ | segmentation: Dice and IoU per class (n = pixels) | scikit-learn | 29.3 | 215.2 | **7.3×** |
384
+ | segmentation: Hausdorff distance (50 images) | SciPy | 8.7 | 14.1 | **1.6×** |
375
385
  | 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×** |
386
+ | statistics: Mann–Whitney U | SciPy | 115.1 | 305.0 | **2.6×** |
387
+ | statistics: Welch t-test | SciPy | 4.9 | 7.2 | **1.5×** |
388
+ | structured: JSON Schema compliance (10000 documents) | jsonschema | 100.6 | 224.3 | **2.2×** |
389
+ | systems: CodeBLEU n-gram terms (1000 programs) | codebleu | 313.9 | 511.3 | **1.6×** |
390
+ | systems: confidence AUROC (n answers) | scikit-learn | 181.2 | 279.3 | **1.5×** |
391
+ | systems: distribution-shift drop, Welch CI (n scores) | SciPy | 8.6 | 9.8 | **1.1×** |
392
+ | systems: invalid tool calls vs JSON Schema (10000 tasks) | jsonschema | 109.2 | 219.3 | **2.0×** |
393
+ | systems: latency p50 / p95 / p99 (n requests) | NumPy | 12.9 | 12.5 | 0.97× |
394
+ | systems: maintainability index (1000 programs) | radon | 88.6 | 98.7 | **1.1×** |
395
+ | text: corpus BLEU and chrF (10000 sentences) | sacreBLEU | 165.0 | 2030.3 | **12.3×** |
396
+ | text: METEOR, exact and stem matches (10000 sentences) | NLTK | 63.8 | 363.8 | **5.7×** |
397
+ | text: ROUGE-1, ROUGE-2, ROUGE-L (10000 sentences) | rouge-score | 152.8 | 613.6 | **4.0×** |
388
398
 
389
399
  **Every metric is benchmarked too** (`evalsuite benchmark --suite metrics`): all 225 registered metrics and
390
400
  statistics functions at 10,000 and 100,000 samples. 86 are compared with a reference library, 118 with an
391
401
  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
402
+ comparisons agree**, and against the libraries the geometric-mean speed-up is **6.44×** (172 of 172
393
403
  measurements faster). Per-metric table in BENCHMARKS.md.
394
404
 
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
405
+ **Nearly every workload is faster than its reference.** The text metrics (BLEU, chrF, TER, ROUGE, METEOR, CIDEr,
406
+ CodeBLEU's n-gram terms, distinct-n), the whole COCO evaluation (IoU, score sort, matching, accumulation),
407
+ ROC AUC and average precision (one sort per column, shared by both inside `evaluate()`), the LLM-systems
408
+ consistency, groundedness, citation, toxicity and exposure metrics, Elo ratings and bootstrap resampling run in
409
+ the compiled, multithreaded Rust core; bootstrap intervals, paired bootstrap tests and
397
410
  `compare()` evaluate confusion-matrix metrics from counts of each resample's (true, predicted) pairs instead of
398
411
  copies of the data. `evaluate()` validates inputs once and builds the confusion
399
412
  matrix once for all metrics, and integer labels are encoded without sorting. The rank tests rank the data once
@@ -2,17 +2,17 @@ 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
4
  evalsuite/_lazy.py,sha256=Ddq0uWuiyxtsT0jBtCSITQPvttiQ7znXAbjkMIOVefk,901
5
- evalsuite/_native.py,sha256=DiJNSz1oCuDd3rZSSsTQOii2jYp3sZtVePxWtRhcAik,2076
5
+ evalsuite/_native.py,sha256=haMBiKqPDmHGoGbq4Cn8iFmm1Vt-tFYYsyRQ3XLyueE,2351
6
6
  evalsuite/api.py,sha256=DzWwmCgyEiqO2HvPrNg2RIDzqwap4e_UvbxA7PkJ3fE,10227
7
7
  evalsuite/benchmarks.py,sha256=TWXIhdYPbdDPanCOFL1lRCo3ppRYaDF58PB-o3ZZyTA,37846
8
8
  evalsuite/calibration.py,sha256=jhCPOmCFGEkUkcx-hSAIb-JCMq9oF6JZt4uDGvg5NaU,15083
9
9
  evalsuite/plot.py,sha256=7eOyzoRbg6Aad6OhtIQG3laIioQ8fs2K0YzodjG5rHA,26049
10
10
  evalsuite/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  evalsuite/reporting.py,sha256=-LISv9vvEnltT26GtzLjVlxOCcAwmjv4-HyB8_1UF5o,9615
12
- evalsuite/version.py,sha256=WXIiUQKq6Bg6972-sqjn2TWeu8-Z3B72WfcDxJHyJ3c,98
12
+ evalsuite/version.py,sha256=8M6dtrDVoomwqNJzgGQtnZ4mKMsyWATsoYVmgq8bZss,98
13
13
  evalsuite/classification/__init__.py,sha256=ErBIXbBGnhfW6v-1Cn5SegiERoyxNlmO1tEKcLM15mA,833
14
14
  evalsuite/classification/_common.py,sha256=3ANV33ix_mnOzvOAG8glyJO-iYVhhTGO0S3YG0ZddB8,4543
15
- evalsuite/classification/metrics.py,sha256=h-DYF2wwdN8LA1bPbyIgkfuG4ovwBBgtGZFObEmiHzE,37044
15
+ evalsuite/classification/metrics.py,sha256=frSH4Q7-fljA-XDLFTk3djkMrey6WPqJXQUL8hd-9iA,40160
16
16
  evalsuite/cli/__init__.py,sha256=1x48hORLcg_Is2X08A7CPBT6VDJ1QL94zaJP1HTFxUY,96
17
17
  evalsuite/cli/main.py,sha256=ktvy_5D-KfYevKH5ZxO5f0aVFtNXbGeN8zker0tguT0,23994
18
18
  evalsuite/clinical/__init__.py,sha256=xaXLvNvTJsuP525fLb2FyVVNlopIrZczoPrwmEQIvzE,549
@@ -27,44 +27,44 @@ evalsuite/core/result.py,sha256=L_fQZRGRgVgzII2jZb_jpRBK2jy-CdO5u9s-6pUk9fE,1492
27
27
  evalsuite/core/types.py,sha256=r6bhUk7CYAcrlQzjmf-6xWQsNqO3EOipZD-e-2yAJTI,720
28
28
  evalsuite/core/validation.py,sha256=nZRWSuShdFBDYgXMnRmspSQ4AJPRO3Zy5M8wTFfkg2E,10988
29
29
  evalsuite/llmsys/__init__.py,sha256=NA-kVMc3hdmBSW-ufPKrgfd2NHI15wCXJRn3ZhIVFsE,4653
30
- evalsuite/llmsys/_common.py,sha256=Hp9yuO8ItEqr5v1B5fU6-ZVSB3EkvHavnspiPGVmsLM,8713
30
+ evalsuite/llmsys/_common.py,sha256=d68CyUaO9f8Olp1001Ms2-9tVSwNf96g0D2BlhpvSF0,10271
31
31
  evalsuite/llmsys/agents.py,sha256=giiHv3c179fFR6aFUp4VbBjzbdNotS941tZVG7W0UFE,15355
32
- evalsuite/llmsys/code.py,sha256=6Im0Km5qPHLFTF4S4dnN05OucFFNRixRchDSGHqtJaQ,37004
32
+ evalsuite/llmsys/code.py,sha256=OIyH3aKbuzmH3131wfkj98k5QrrvPwQ1dvCCY4WXD4Y,37528
33
33
  evalsuite/llmsys/efficiency.py,sha256=GlUSWNnzRaeuebv-SZYsB28StwIPYb8AIyMwM057g_A,13895
34
- evalsuite/llmsys/longcontext.py,sha256=koX58FMot3ZwUTPPiv9tM8fGvBY2ijYg0npA8pG278A,15145
35
- evalsuite/llmsys/multilingual.py,sha256=utAlQfQ2hPgav9-3IzY1yhgwyncaTZ-zFp_0koBEBzE,14241
36
- evalsuite/llmsys/robustness.py,sha256=OPe84s1H7IEX5GcuRVcAp_UA29tx_Qq8WlA88khY2cg,20377
37
- evalsuite/llmsys/safety.py,sha256=7Kcv9zJBhIWHS6GeAa0BedCncFOmsbIpnmUQCMvRMPU,22550
34
+ evalsuite/llmsys/longcontext.py,sha256=WkMO_vT1kp4Hr1Q1IBFwq70C6Jud2e-LURSWZzoAlNY,15870
35
+ evalsuite/llmsys/multilingual.py,sha256=5paFTlIE0eTqBEZWXdhJqwBhklRxHDf92uSfr-z_O60,14524
36
+ evalsuite/llmsys/robustness.py,sha256=Yr1tut2FTodARF-WOLP5jf17GH-zaI0Qy2ZxWmhMhas,20878
37
+ evalsuite/llmsys/safety.py,sha256=fjHrTVtwDrMnda987IuW4uPGTr5OSGc349MyGB_tYIk,23747
38
38
  evalsuite/llmsys/uncertainty.py,sha256=Brm_LT8qHb-EtcPe7YBXq7HYMSTG93OkT3Cnx2SYBts,9367
39
39
  evalsuite/regression/__init__.py,sha256=t2XEHUw6e5tyWBHcEeiog2WWd-wwaxf4m5AIX8dJyng,571
40
40
  evalsuite/regression/metrics.py,sha256=Qv5hFswxfzE-8wOKysERqsEJT-3kvTXPrkLoZ7s9jbQ,23487
41
41
  evalsuite/stats/__init__.py,sha256=mtnEqpvlvscQ3C6ceRr8xLKoSHPQWsWB24pEVlvp6fs,1187
42
42
  evalsuite/stats/_resolve.py,sha256=T5EUqTbiGM0oor59Nzm18GUr7oLWcpgj1l8gCU56ACc,10276
43
- evalsuite/stats/compare.py,sha256=TzBYHDbfHU1Uz2FtgXbMATTnmHuaDGUbrV9Eq4IphZY,18311
43
+ evalsuite/stats/compare.py,sha256=ooO5STzocKrqNsxKvm_C4Bl1c36_7fziCJc-d2cJASA,18531
44
44
  evalsuite/stats/effect.py,sha256=bgnhdCI4vU_Wnv5q7G2ncmtN3n7N1GWiYO4iO3FDI0w,7286
45
45
  evalsuite/stats/hypothesis.py,sha256=RCu8yPTOhtetFQ5TlZQWaFu2t-aq56ffaNlEqC-lJbg,24546
46
- evalsuite/stats/intervals.py,sha256=KyExUlrZiJiMkCRaDNUQoDY30hSrv3SNRQzR8oJucqU,14660
47
- evalsuite/stats/paired.py,sha256=PZV0XED3HnjOD675Tj6z1ILGxUaesBpxXQgC0goi6o4,8439
46
+ evalsuite/stats/intervals.py,sha256=6v7JG_lY4DWrAdcBqiwKsxvBMLgu1RKjdcXaIiqeYqc,16712
47
+ evalsuite/stats/paired.py,sha256=guPwpss0XQWRzL4hWL9xE4mgF6bUQQ2FbkNMkyhxrlc,8663
48
48
  evalsuite/stats/results.py,sha256=nqXHUiW8l0fQJkbMiunU6Gz-2be1NApZ6Fif2B1K_Yw,4407
49
49
  evalsuite/text/__init__.py,sha256=_r0Qi6X7cBcaYMAPRyC15CsTj9Tv8VcqMCtLiSJPogY,3632
50
50
  evalsuite/text/_common.py,sha256=acjAoPbXlPtd4DC4YbvOv1frIUjvFa1UtbdA5-6YDsU,3790
51
- evalsuite/text/factuality.py,sha256=Id8LnGjqvaVDYC5qMn4H0UJdjrwp1VrZ_zr_0jct8SM,20772
52
- evalsuite/text/generation.py,sha256=3Fm-VpzLEQMUfz59j4QVUbEBorq2-oTzLtJ4YaxzoYI,51659
53
- evalsuite/text/judge.py,sha256=Ug5UnXBHzPkhtJ-vBxge3ZbkQxCoA4T_zcVxVU8chxQ,23566
51
+ evalsuite/text/factuality.py,sha256=RsZu7fl1KU9elB1oBOgms3bnrN4lXVchwqIcl0JDXtc,21212
52
+ evalsuite/text/generation.py,sha256=qrpOvt2T_Fom2M_6YquEEnJbMCr_KwR1kEqtUH6N0tc,52420
53
+ evalsuite/text/judge.py,sha256=5DOc-UOUSUPeXwdnjspVEJ-Yhk5659eTQh3jZLVLRfA,23887
54
54
  evalsuite/text/qa.py,sha256=rU0ya8TzV5mp7UiWq7w9IqSN9B0tDv8xymSaRzzbzMw,4097
55
55
  evalsuite/text/rag.py,sha256=GF8GUp6Vnt9peBCIcdvFUapLUL36_NDApZisYG_rcqg,9641
56
- evalsuite/text/reasoning.py,sha256=ydaTgAY--Tz_zEXm-Q_jLxJjTLnPgRlv39OzXWXD9yA,8885
56
+ evalsuite/text/reasoning.py,sha256=wnVM0dFK1XFODsbQuRo9ngpKfh4tKV9cdhhi2uCILnY,9579
57
57
  evalsuite/text/report.py,sha256=nUAgt24rcQsnPLiNTVn3PlzZO3Y7fW_ch_lSelgfEc8,6241
58
58
  evalsuite/text/retrieval.py,sha256=otQvOTbbR79kYtMum6o2HOT9UoDlSj0-JYLsFddkV1k,8969
59
59
  evalsuite/text/semantic.py,sha256=TgBBDcRll7vMzQVYStgt1SS9G7e6FTf7SuZDcPL32_g,23004
60
60
  evalsuite/text/spice.py,sha256=rdPCeilqKkXLMiSAE-rYOn0Zt2nKFum5Tf1oJdE6k-U,6847
61
61
  evalsuite/text/structured.py,sha256=x08yYf2rdlmiA_D_dI1L-fc9quHiBPMKgAGQbG3kJr8,31981
62
62
  evalsuite/vision/__init__.py,sha256=9gpOBTPveM_srE6BM-SgCssdQurya2LPHhoMLGOh2A0,991
63
- evalsuite/vision/detection.py,sha256=nkTisC02xOupKNfXiJyk-oaFlYYLJZU7VXkR1fu2Ph4,29747
63
+ evalsuite/vision/detection.py,sha256=Cjr-Y5-pV0wiQk1JiHLYvDdKzMlCEvVQarzY7fqGWw4,32010
64
64
  evalsuite/vision/segmentation.py,sha256=f41Q8iOELCj8jmAJ3pN5OFr3h3-6QtjnluW8rfkg0V0,41132
65
- evalsuite_python-0.6.0.dist-info/METADATA,sha256=QDTBE4eRquf4uCJn3IivEmyQn2drPgSwIBDIzV7euL8,27606
66
- evalsuite_python-0.6.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
67
- evalsuite_python-0.6.0.dist-info/entry_points.txt,sha256=YYIwisn4L4sQt3ntzbM0_Z4yZE2KCu3GJ6KfWL1kIwc,54
68
- evalsuite_python-0.6.0.dist-info/licenses/LICENSE,sha256=cRRQ6Kk8w2qCqtDSSUJQGy-0rqjmjJG09cZ6iIiMvdc,1095
69
- evalsuite_python-0.6.0.dist-info/licenses/LICENSE-APACHE,sha256=K4pWYv3dt61u1BuIxjOGBxhgRkpsH4X_dzeIbOILXw0,10784
70
- evalsuite_python-0.6.0.dist-info/RECORD,,
65
+ evalsuite_python-0.7.0.dist-info/METADATA,sha256=wIsTwjgl4BP6BT-vVQY0B_QHZDYvlHrIYg1TrcWq8sM,28857
66
+ evalsuite_python-0.7.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
67
+ evalsuite_python-0.7.0.dist-info/entry_points.txt,sha256=YYIwisn4L4sQt3ntzbM0_Z4yZE2KCu3GJ6KfWL1kIwc,54
68
+ evalsuite_python-0.7.0.dist-info/licenses/LICENSE,sha256=cRRQ6Kk8w2qCqtDSSUJQGy-0rqjmjJG09cZ6iIiMvdc,1095
69
+ evalsuite_python-0.7.0.dist-info/licenses/LICENSE-APACHE,sha256=K4pWYv3dt61u1BuIxjOGBxhgRkpsH4X_dzeIbOILXw0,10784
70
+ evalsuite_python-0.7.0.dist-info/RECORD,,