Skip to content

Full functionality for Variance Reduction (as per Lykkegaard et al. 2023) - #71

Open
louisekluge wants to merge 48 commits into
mikkelbue:mainfrom
louisekluge:main
Open

Full functionality for Variance Reduction (as per Lykkegaard et al. 2023)#71
louisekluge wants to merge 48 commits into
mikkelbue:mainfrom
louisekluge:main

Conversation

@louisekluge

Copy link
Copy Markdown
Collaborator

This adds randomised subchain length and sample collecting for computing the unbiased multilevel estimator based on a MLDA chain.

louisekluge and others added 30 commits October 8, 2024 13:13
include suggestions

Co-authored-by: Mikkel Bue <mikkelbue@gmail.com>
Co-authored-by: Mikkel Bue <mikkelbue@gmail.com>
@louisekluge
louisekluge marked this pull request as draft September 3, 2026 10:39
promoted_coarse is seeded in DAChain.__init__ to stay length-aligned with
the fine chain; the acceptance ratio reads promoted_coarse[-1] on the first
iteration, so it cannot be empty. Expected length 1, matching chain_coarse
and chain_fine.
@louisekluge

Copy link
Copy Markdown
Collaborator Author

Sorry for the clutter, relevant changes are of course only in the chain.py, diagnostics.py, proposal.py, ray.py and sampler.py, as well as a minor correction to test_chain.py (the proposal chain gets an initial element). To my recollection, this is all correct and tested, the examples run through.

@louisekluge
louisekluge marked this pull request as ready for review September 3, 2026 14:42
@louisekluge

louisekluge commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator Author

Watch out: there is a direct call to import ray in proposal.py, which can break the install if ray is not available. I'll investigate further.

Edit: ray must exist in environment before tinyDA is installed, this issue has nothing to do with my PR.

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.

2 participants