-
Notifications
You must be signed in to change notification settings - Fork 108
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
Use the new marginal sampler for latent gaussian models in the GP notebook #398
Conversation
Codecov Report
@@ Coverage Diff @@
## main #398 +/- ##
==========================================
+ Coverage 89.86% 89.99% +0.12%
==========================================
Files 45 47 +2
Lines 2161 2188 +27
==========================================
+ Hits 1942 1969 +27
Misses 219 219
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
All sounds good! And yes, you will need to use jupytext to convert the notebook to |
@juanitorduz sorry I didn't see this
alpha is a parameter in the prior, I am not sure what you mean by "calibration step". The calibration step in the notebook mentioned is for the delta parameter which corresponds (in a loose sense) to the step-size of MALA and other similar algos. Are you trying to learn alpha? |
Ahh! Thanks for the input! I was indeed confused! Now it makes sense. I will add the text and work on the notebook next week. |
no pb |
I think I have a first initial complete iteration ready for review :) |
``` | ||
|
||
## Run Sampler | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a quick example of how the sampler works, like in the Elliptical Slice Sampling notebook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah! I want to do this... unfortunately I have not been able to access the paper (I am trying through old access from my university). Is there a pre-print available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG 🤦 I can not believe I did not find this! I think I was keen to get the published version. Anyway, let me give a read and try to write this section myself, and then I'll collect feedback. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great! I modified the titles to match the notebook with the Elliptical Slice sampler (we may merge them eventually). It would also be nice to have a short explanation of how the sampler works if you feel like writing it.
@rlouf @AdrienCorenflos In 687f295 I tried to express in my words how I understand the sampler works. I have a math background, which is far from this area so I feel it is at the moment out of my reach to have a very detailed and transparent description of the details behind the sampler (if you want to talk about geometric analysis I feel a bit better prepared hehe). Hence, feel free to modify / add or erase parts that you believe are confusing or incorrect. |
I made some changes to the explanation of the algo. |
I'll take a look early next week, thanks. |
I added the changes suggested by @AdrienCorenflos (and added him as co-author) and rebased the commits. It looks good to me, can you take a look one last time before I merge? |
Thank you for the feedback and corrections @AdrienCorenflos ! LGTM. |
Merging now, great work everyone! |
Co-authored-by: Adrien Corenflos <[email protected]>
Closes #238
Aim: Use the data from https://blackjax-devs.github.io/blackjax/examples/GP_EllipticalSliceSampler.html to illustrate the implementation introduced in #247
For now, I have a running notebook that runs the example. I still wanted to push this branch and create a draft PR for feedback. What is missing (IMO):
General
md
(jupytext?)Details
I have used the implementation based on the unit-test of Add Gradient based sampler for latent Gaussian models #247 . At the moment I am setting the arbitrary value ofI meantalpha=0.5
when defining the kernel. Should we use a calibration step as illustrated in https://github.com/blackjax-devs/blackjax/blob/main/examples/LogisticRegressionWithLatentGaussianSampler.md ?delta
and notalpha
🤦Any feedback is welcome :)