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

Fix bug in Slice sampler and speedup test_step.py #5816

Merged
merged 5 commits into from
May 30, 2022

Commits on May 30, 2022

  1. Fix Slice sampler bugs introduced in b988ba9

    1. The previous interval was of the form `[q0 - uniform(0, self.w), q0 + self.w]` which is not symmetric around q0 in expectation, breaking detailed balance.
    2. The left/right bound values used for updating earlier variables were only set to the accepted values during tuning. This might have made bug 1 worse.
    ricardoV94 committed May 30, 2022
    Configuration menu
    Copy the full SHA
    00e8f81 View commit details
    Browse the repository at this point in the history
  2. Refactor Slice.astep method

    Avoid recreation of RaveledArrays in inner loops and repeated indexing of `self.w`
    ricardoV94 committed May 30, 2022
    Configuration menu
    Copy the full SHA
    6f74a79 View commit details
    Browse the repository at this point in the history
  3. Refactor TestStepMethods and reduce number of draws

    The number of draws was set too high to accommodate the worst / buggy samplers (see pymc-devs#5815)
    ricardoV94 committed May 30, 2022
    Configuration menu
    Copy the full SHA
    00f15a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    336d9a6 View commit details
    Browse the repository at this point in the history
  5. Add name to CompountStep

    ricardoV94 committed May 30, 2022
    Configuration menu
    Copy the full SHA
    d3cf283 View commit details
    Browse the repository at this point in the history