Skip to content
Snippets Groups Projects

Modified GRAD_WINDOW_LENGTH calculation for sooner calculation of valid...

Merged Noah Wolfe requested to merge noah.wolfe/bilby:master into master
All threads resolved!

This MR includes two fixes and a little extra documentation for the ptemcee module.

  • Fixes #638 (closed) by setting all numerical negative infinities (< -10^100) in the mean_log_posterior array to np.nan
  • Modified the GRAD_WINDOW_LENGTH over which the gradient of the mean log posterior is calculated to be one of two cases:
    • 2 * ((ndim + 1) // 2) + 1 or
    • 2 * (nwalkers // 2) + 1, the original calculation of this variable in bilby, when ndim <= 3, as otherwise, the gradient calculation fails (because GRAD_WINDOW_LENGTH becomes too small)
  • Added docstrings + clear variable names around the calculation of the Gelman-Rubin statistic
Edited by Noah Wolfe

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Noah Wolfe added 1 commit

    added 1 commit

    • 81ea6757 - Remove extraneous inlines in get_Q_convergence

    Compare with previous version

  • Colm Talbot approved this merge request

    approved this merge request

  • Sylvia Biscoveanu resolved all threads

    resolved all threads

  • Sylvia Biscoveanu approved this merge request

    approved this merge request

  • merged

  • Colm Talbot mentioned in commit d1bcfaaf

    mentioned in commit d1bcfaaf

  • Please register or sign in to reply
    Loading