Skip to content

Fix ProposalBasedSampler for JointDistribution - #665

Open
jeverink wants to merge 3 commits into
CUQI-DTU:mainfrom
jeverink:Fix-MH-samplers-for-JointDistribution
Open

Fix ProposalBasedSampler for JointDistribution#665
jeverink wants to merge 3 commits into
CUQI-DTU:mainfrom
jeverink:Fix-MH-samplers-for-JointDistribution

Conversation

@jeverink

@jeverink jeverink commented Jun 24, 2025

Copy link
Copy Markdown
Collaborator

Both MH and CWMH samplers could not be used with JointDistribution due to an incorrect initial point.

Closes #658
Closes #659

The current solution is that any ProposalBasedSampler automatically changes the JointDistribution target to a StackedJointDistribution, and when get_samples() gets called, the samples get unstacked to the original geometries.

Feel free to suggest any useful tests.

@jeverink jeverink changed the title Fix MH samplers for JointDistribution Fix ProposalBasedSampler for JointDistribution Jun 25, 2025
@jeverink
jeverink requested a review from chaozg June 25, 2025 10:13
@jeverink
jeverink marked this pull request as ready for review June 25, 2025 11:45
@jakobsj
jakobsj requested a review from amal-ghamdi August 11, 2025 12:10
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.

Experimental CWMH cannot sample from JointDistribution Experimental MH sampler cannot sample from JointDistribution

1 participant