Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

alexhroom
Copy link
Collaborator

@alexhroom alexhroom commented Dec 13, 2024

This PR fixes part of #92 by adding the Bayes benchmark script, which calculates the posterior distributions for a two- and three-dimensional example 'from scratch' and compares them to the distributions generated by the nested sampler and DREAM.

The Python script is mostly similar in workflow to the MATLAB one, but the direct calculation of the posterior is vectorised and the module/function docstrings go into a little more detail on what is actually being done, for users who may not be familiar with the basics of Bayesian reflectivity analysis.

This PR also fixes a minor issue with the plotting library - the axes on the contour plots were the wrong way around (but then were flipped to be correct on corner plots)!

2d
3d

@alexhroom alexhroom marked this pull request as ready for review December 18, 2024 08:49
Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alongside these comments, I'm having trouble running both the script and jupyter notebook. Is this due to the backgrounds bug, or is there something else?

@alexhroom
Copy link
Collaborator Author

@DrPaulSharp they both run fine for me, but I may have something weird going on with my binary. what kind of error were you getting?

Copy link
Collaborator

@DrPaulSharp DrPaulSharp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good now and I have it working, it just needs some updates. Please confirm everything works as expected when they're done.

@alexhroom
Copy link
Collaborator Author

@DrPaulSharp can confirm everything works as expected now

@alexhroom alexhroom merged commit 78626fe into RascalSoftware:main Jan 14, 2025
7 checks passed
@alexhroom alexhroom deleted the 92-orso-tests branch January 14, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants