The carried model, end to end, in a browser

From bearings to estimate with nothing prepared in Python

16 November 2026 · spec 021 · gitma2

What now runs in the browser

least squares,GLR, O E-s evidence(graph) search,nominations confirmationand hand-over E-w estimate(graph) physics layer(graph) yellow: ported to JavaScript from C's frozen Python · green: exported ONNX graphs

About 1,700 lines of Python, ported stage by stage and checked against a dump of every intermediate.

Identical decisions, 30 scenarios

Identical rows per check scenario

1,770 of 1,770 scored rows; every nomination and every confirmation decision the same as Python's.

Why: margins far above the differences

Largest cost-drop difference against smallest decision margin per scenario

Cost drops agree to 5.4 × 10⁻⁹ on 29 scenarios and 1.3 × 10⁻⁴ on one; the closest decision is 0.152 from its threshold. Intermediates do differ: one row's least squares lands elsewhere (ordinal 22), cost tables by up to 22%, and the GLR statistic crosses its alarm threshold at one row of ordinal 1 without changing a nomination.

Live mode on the page

Seconds per stage of live mode for each demo engagement

25 to 93 s per engagement on one thread; segmentation identical to Python's on 181 of 181 rows; estimates within 2.7 × 10⁻⁶ of the shipped ones.

Not achieved, and next

  • Pasting a scenario of one's own (spec story 3) is not built.
  • Identical here does not mean identical always: a decision near its threshold could flip; the check would report it with its margin.
  • Speed: confirmation dominates, and the first row waits for it (76 s on the busiest engagement, over the one-minute target).

Page: /gitma2/viewer · record: experiments/20261116-port/ · spec: specs/021-browser-segmenter/