Skip to content

Add optional joint narrow-exchange and branch-rate proposal - #117

Merged
rafaelaugustos merged 1 commit into
assess-and-export-runsfrom
joint-exchange-rates
Nov 3, 2026
Merged

rafaelaugustos merged 1 commit into
assess-and-export-runsfrom
joint-exchange-rates

Conversation

@rafaelaugustos

Copy link
Copy Markdown
Collaborator

Adds the opt-in narrow_exchange_rates proposal to the Rust sampler and native Advanced sampling controls. It exchanges neighboring subtrees and rescales the two incoming branch rates to preserve their distances. The Hastings ratio includes both the eligible-node selection ratio and the rate Jacobian; the full derivation and support are documented in four languages.

The default schedule is unchanged. The native toggle starts at weight 10, keeps the weight editable, persists through setup format 9 and appears in review/history through the existing schedule presentation. Strict clocks and dated runs reject the active proposal. Checkpoints, cancellation and model-tool arguments preserve the selected weight. This implements one independent proposal, not the full BEAST ORC suite.

Validation:

  • Involution, all rate slots including non-last roots, finite-difference Jacobian and overflow-before-mutation checks.
  • Enumerated forward/reverse choices and a known uniform-topology/independent-lognormal target.
  • All 11 rate tests, including constrained rejection/restoration, cached versus fresh likelihood and identical portable/ARM samples.
  • Exact checkpoint replay with the new move; dated-run rejection.
  • Seven native AdvancedOptions tests, including saved format guards and pause/resume through History.
  • Clippy, capability parity and four-language documentation build.

Refs #97 and #113. Comparative posterior/performance studies remain pending under #97; no speed or mixing improvement is claimed and no heavy measurements were resumed. Stacked on #116.

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