Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scCODA: add low/high acceptance probability warnings #366

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

johannesostner
Copy link
Collaborator

PR Checklist

  • Referenced issue is linked
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

Description of changes

  • Added warning notes if acceptance probability of MCMC sampling is too high (>0.95) or too low (<0.6)

Technical details

Sometimes, the MCMC samplers in scCODA/tascCODA do not converge or converge to the wrong local minimum. This is usually due to bad initialization values and can be fixed by re-running with a different rng key.
An unusually low or high acceptance rate is a good indicator for a misspecified sampler, but there are no strict bounds for good acceptance rates. Therefore, we can only display a message and ask users to check whether results are feasible

Additional context

In response to #359.

@github-actions github-actions bot added the bug Something isn't working label Sep 6, 2023
@Zethson
Copy link
Member

Zethson commented Sep 6, 2023

Great! I'll merge this later. Test failures are unrelated and/or my fault.

@Zethson Zethson merged commit f89f5fd into main Sep 6, 2023
@Zethson Zethson deleted the fix/acc_prob_warnings branch May 20, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants