Skip to content

BUG-0033 closed: the pure-Python .inp path is the C's off the MA wall - #41

Merged
davidesg merged 1 commit into
masterfrom
bug-0033-pared
Nov 28, 2026
Merged

davidesg merged 1 commit into
masterfrom
bug-0033-pared

Conversation

@davidesg

Copy link
Copy Markdown
Owner

Stacked on #40; it will be retargeted to master once #40 merges. Tests and docs only, no engine change.

I followed the C and pure-Python .inp paths iteration by iteration (maxits = k, k = 1…500):

case what happens
c3 PSW ARMA(1,1) The paths agree to 1e-9 up to iteration 30 and to 3e-6 at 60. Both then climb to the MA wall and stop on it (root modulus 1.00005, termcode 3): the C at −871.324013 after 100 iterations, Python at −871.542051 after 109.
c2, c7 Also end on the wall (max MA modulus 1.00005, the C's ma_boundary = 2).
c5 The same model to 1e-8 (μ, Φ, Σ). Only the unnormalised Q differs by ~1 %, because Q → cQ is a flat direction of the concentrated likelihood.

With no interior maximum, the stopping point depends on the path, not the model. HOMOLOGATION.md already states this property for the ladder (BUG-0030): on the wall, only the compiled likelihood is compared. So BUG-0033 is closed as wontfix (a property):

  • c5 is compared relative to cov[1,1] and passes.
  • c2, c3 and c7 are skipped without the compiled engine, with the reason given. With the engine they match the C line for line.
  • HOMOLOGATION.md, the CHANGELOG and the bug file say this.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5

Followed iteration by iteration: on PSW ARMA(1,1) the two paths agree to
1e-9 up to iteration 30 and both end ON the MA wall (root modulus 1.00005,
termcode 3) at different points, as c2 and c7: no interior maximum, the
stopping point is the path's -- the property HOMOLOGATION.md states for the
ladder (BUG-0030). c5 is the same model to 1e-8; only the unnormalised Q
differs (Q -> cQ, a flat direction).

The test compares c5 relative to cov[1,1] (passes) and skips the three wall
cases without the compiled engine, with the reason. wontfix: a property.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5
@davidesg
davidesg changed the base branch from bug-0003-c to master November 28, 2026 22:00
@davidesg
davidesg merged commit 1a6012f into master Nov 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant