Repository navigation
Releases
Releases · CJX0712/transforge
TransForge v0.1.0
TransForge v0.1.0
Verified, deterministic optimal-transport / distribution-alignment system.
Author: 晨星 (CJX0712). MIT licensed.
What it does
- TF-εKnee — automatic Sinkhorn regularisation strength via a warm-started geometric ε-ladder, accepted by three stopping criteria.
- TF-SPR — plan-level Richardson fusion of neighbouring ladder rungs, weighted by debiased Sinkhorn divergence.
- TF-UFlow — KL-relaxed unbalanced Sinkhorn with an (ε, τ) continuation path and mass-destruction safety valve.
- Exact references: POT network simplex,
ot.emd2_1d, and an independentscipy.optimize.linprog(HiGHS) route.
Verification (real, not claimed)
- 4/4 acceptance gates pass (G1 quality 0.242× vs grid-oracle; G2 3 scales where one hand-tuned ε degrades 18.8–28.9%; G3 certificate binds 15/15 cells; G4 outlier robustness +32.9%).
- 11/11 invariants in the benchmark run (I1–I10 + free certified lower bound).
- 155 tests green; demos are bitwise reproducible (invariant I9) — verified by 12 back-to-back runs.
- Fix in this release: G3 gates on its deterministic mathematical certificate instead of a machine-load-dependent wall-clock ratio.
Repro
pip install -r requirements.lock.txt
python examples/run_demo.py # regenerates benchmark.json, gates + invariants
pytest -q # 155 tests
CI: Python 3.12/3.13 × ubuntu/windows, incl. a POT-disabled job proving the degraded path runs.