Skip to content
Snippets Groups Projects

Hotfix for dynesty bounds

Merged Gregory Ashton requested to merge dynesty-hotfix into master
All threads resolved!

The changes in !592 (merged) revealed an error in the handling of reflective bounds.

Previously, we had been using a minimum/maximum trick to reflect points back into the unit cube. But, this fails for cases where u > 2 which get reflected to <0. The problem however did not arise previously because we where applying the reflection once in dynesty and once in bilby itself. Thus, we reflected it twice, fixing the issue. In principle, a point could jump far enough out and cause it to fail, but the probability of this occuring where sufficiently small that it was likely ignored when it happened.

In !592 (merged), we removed the "bilby" reflection, causing this issue to rear its head [1]. This MR resolves the issue by defining properly the reflection function (see the addition in utils). Credit to @colm.talbot for figuring that out.

For the time being we will resolve this in the bilby side of things, once it is tested and we are sure it is correct, we will submit a MR to dynesty to resolve it internally.

[1] For future rererence, it manifests as a message like

    raise ValueError("Number to be rescaled should be in [0, 1]")
ValueError: Number to be rescaled should be in [0, 1]
Edited by Gregory Ashton

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
  • Gregory Ashton resolved all threads

    resolved all threads

  • Gregory Ashton resolved all threads

    resolved all threads

  • Gregory Ashton added 1 commit

    added 1 commit

    • b65f6ae6 - Apply suggestion to bilby/core/utils.py

    Compare with previous version

  • Colm Talbot approved this merge request

    approved this merge request

  • Colm Talbot unapproved this merge request

    unapproved this merge request

  • Colm Talbot approved this merge request

    approved this merge request

  • Isobel Marguarethe Romero-Shaw approved this merge request

    approved this merge request

  • Gregory Ashton mentioned in commit 630e3eaf

    mentioned in commit 630e3eaf

  • Please register or sign in to reply
    Loading