Add percent divergence and percent max treedepth (#21) - #33
Merged
Merged
Conversation
StefanoMezzini
marked this pull request as draft
August 3, 2026 16:00
StefanoMezzini
marked this pull request as ready for review
August 3, 2026 16:14
StefanoMezzini
marked this pull request as draft
August 5, 2026 17:42
Member
Author
|
keeping in draft form until the conversation in #21 is resolved. |
StefanoMezzini
force-pushed
the
add-percent-diverg-21
branch
from
August 11, 2026 15:13
0502c0d to
b919a4b
Compare
Co-Authored-By: Claude <claude@users.noreply.github.com>
StefanoMezzini
marked this pull request as ready for review
August 11, 2026 20:52
Member
|
I've reviewed and agree with these blocking issue from claude review: |
sebdalgarno
requested changes
Sep 2, 2026
Member
There was a problem hiding this comment.
- embr sets the new option as mb.prop_divergent, but in glance.cmstand_mcmc_analysis you are grabbing mb.perc_divergent so the set option is never found and 0.2 is always just used as the backup.
- version bump news file doesn't match the version in description. Just bump description to match 0.0.0.9001. Soon i will just do the minor bump as the API is pretty well established now.
- need to do some validation on the max_perc_divergent argument value within glance - use chk.
- you should add a test that would have caught this option name mismatch. i.e. try setting the option and then seeing that convergence actually changes. something like
stub <- stub_analysis(c(1, 0, 0, 0), c(0, 0, 0, 0), TRUE)
withr::with_options(list(mb.prop_divergent = 0.002), {
expect_true(glance(stub)$converged)
})
withr::with_options(list(mb.prop_divergent = 0), {
expect_false(glance(stub)$converged)
})
also added checks with `{chk}`
Member
Author
sebdalgarno
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #21. changes:
glance()output for percent divergence and percent max treedepth