Fix EnsembleSampler second split to use complementary inactive chains.#2135
Fix EnsembleSampler second split to use complementary inactive chains.#2135jackkohm wants to merge 2 commits intopyro-ppl:masterfrom
Conversation
The second sub-iteration in EnsembleSampler.sample incorrectly updated the second half of chains against itself instead of the first half. Add a deterministic regression test that fails under the previous split logic and verifies complementary-half updates.
|
cc @amifalk |
|
Nice catch! My tiny nit is that it was a bit hard to initially parse that the first two chains have values that aren't used in the test case. Initializing z to |
|
@amifalk implemented, thanks for the suggestion. |
|
@jackkohm Looks like CI is failing on the linting stage. You should be able to fix this by pushing a commit after locally linting + formatting your changes using |
The second sub-iteration in EnsembleSampler.sample incorrectly updated the second half of chains against itself instead of the first half. Add a deterministic regression test that fails under the previous split logic and verifies complementary-half updates.