grammar-inference-engine/tests
tobjend 739000e8c6 feat: CRX refined — cluster-then-infer for tighter grammars
Standard CRX over-approximates when Hasse diagram is non-linear (24% of
RAGSAK packages). Cluster-then-infer groups sequences by (first, last,
length), infers per-cluster, picks largest cluster's grammar.

Results on RAGSAK:
  Avg max disjunction: 2.8 → 1.7 (39% tighter)
  Packages improved: 6/10

Tradeoff: cluster granularity (too coarse = over-approximation,
too fine = no generalization). Current: (first, last, length_bucket).

Exports crx_refined() and crx_with_confidence() from bex package.
20 new tests. All 199 tests pass.
2026-07-12 01:50:40 +02:00
..
test_analyze.py feat: add --slice package (per-directory grouping), --include/--exclude, --verbose, drop root group inference, run full ensemble on all groups 2026-07-04 02:43:03 +02:00
test_bex.py clean up agent-betraying comments; fix stale test names 2026-07-01 13:26:03 +02:00
test_crx_refined.py feat: CRX refined — cluster-then-infer for tighter grammars 2026-07-12 01:50:40 +02:00
test_ensemble.py drop kORE from default ensemble, add --kore flag to opt in 2026-07-04 02:58:07 +02:00
test_gbnf.py feat: implement SORE → GBNF converter 2026-07-12 00:31:47 +02:00
test_kore.py WIP: language size scoring + diversity threshold (step 1 pending) 2026-07-11 22:56:42 +02:00
test_reduce.py feat: implement Reduce algorithm (Algorithm 4, TODS 2010) 2026-07-12 00:11:38 +02:00
test_scoring.py WIP: language size scoring + diversity threshold (step 1 pending) 2026-07-11 22:56:42 +02:00