Skip to content

fix: keep truncated Gaussian evidence finite in the tails - #1792

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/truncated-tail-evidence
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/truncated-tail-evidence

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Compute Gaussian truncation mass using a log-CDF difference, reflecting positive-tail intervals to avoid cancellation. With the reported parameters the full log partition is 2.069279653451, previously −∞. No change to mode-projection acceptance: a Gaussian location outside the interval still defines a valid normalized truncated distribution.

API Changes

TruncatedNormalMessage.log_partition returns finite values for representable tail intervals on NumPy and JAX. Its signature is unchanged; genuine non-finite terms are still reported.

Test Plan

  • Python 3.13 library suite: 4,318 passed, 2 skipped, 1 expected failure. Focused message tests: 132 passed. Tail checks passed with SciPy and JAX JIT.
  • In the workspace seed-25 control, 6/45 updates were non-finite on main; the fix gives 45 finite updates and final evidence 183.9720718232835. Posterior JSON and the complete posterior history matched main byte for byte. The original separate science-archive JSON was unavailable for comparison.

Heart dev-ship gate: GREEN. manifest drift: end-at-deliverable blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml. test run status unknown (no report.json). required workflows unverified (workflow list unreadable): PyAutoFit. release validation incomplete: no rehearsal for current source.

Full API Changes

TruncatedNormalMessage.log_partition returns finite values for representable tail intervals on NumPy and JAX. Its signature is unchanged; genuine non-finite terms are still reported.

Tracks #1790.

@Jammy2211

Copy link
Copy Markdown
Collaborator Author

The companion workspace regression is open at PyAutoLabs/autofit_workspace_test#120. It passed all 15 curated workspace smoke scripts with this library change. Merge this library PR first.

@Jammy2211
Jammy2211 merged commit d37ada8 into main Nov 22, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/truncated-tail-evidence branch November 22, 2026 18:09
@pyautolabs-bot pyautolabs-bot Bot removed the pending-release PR queued for the next release build label Nov 25, 2026
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