Twindex 发布可重放证明工具,判断数据能否区分两组参数
Twindex: exact, replayable proofs that your data can't tell two parameter sets apart (ODEs, PDEs, PINNs) [P]
Twindex 发布开源工具,为 ODE、PDE 和 PINN 拟合生成小型 JSON 证书,由仅用标准库 Python 和有理数运算的精确校验器重放,输出 VALID、INVALID 或 INCONCLUSIVE。
PINNs, least squares and Bayesian fits all return a parameter. None of them tell you, with a proof, whether a very different parameter fits your data just as well.
Twindex finds those "twins" and proves it. It writes a small JSON certificate, and an exact checker (standard-library Python, rational arithmetic, no floats) replays it: VALID, INVALID or INCONCLUSIVE. A VALID twin pair means no estimator can recover that parameter better than +/- half the gap from those data, under a stated bounded-noise assumption.
Real-data example: the 1978 boarding-school flu outbreak (BMJ). After 5 days of counts, SIR models with R0 = 2.5 and R0 = 20 both fit every count. Twindex identified the next-day count that would separate them, and the real count ruled out both. You can check the proofs in your browser here (runs locally via Pyodide, ~0.2 s per proof): https://arnav-m10.github.io/Twindex/demo/
It also goes the other way: full-prior pavings that prove an upper bound, i.e. "the data pin this parameter down to within U".
What it covers:
- ODE models with polynomials, division, exp, sin, cos (Michaelis-Menten, Hill, SIR, PK, predator-prey...)
- 1-D/2-D elliptic and heat-equation PDEs
- any Python simulator, as a numerical audit (clearly labeled, not a proof)
Limitations, honestly: bounded noise (not statistical), proofs are conditional on the model and noise bound you state, scaling beyond a few parameters is hard, and there's no independent expert proof audit yet. Bounded-error estimation with validated integration is established prior work; the new part here is portable exact certificates plus a small checker anyone can replay.
pip install twindex
GitHub: https://github.com/Arnav-M10/Twindex
Feedback very welcome, especially attempts to break the checker.
submitted by /u/Longjumping_Glass852
[link] [留言]
来源:r/MachineLearning · reddit.com