-
Notifications
You must be signed in to change notification settings - Fork 34
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
Integrate Slice Sampling: Generalised Elliptical. #900
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #900 +/- ##
========================================
- Coverage 100% 99.6% -0.4%
========================================
Files 55 56 +1
Lines 5673 5839 +166
========================================
+ Hits 5673 5816 +143
- Misses 0 23 +23
Continue to review full report at Codecov.
|
self._ready_for_tell = True | ||
return np.array(self._proposed_sample, copy=True) | ||
|
||
def tell(self, reply): |
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.
reply
can just be called fx
here
# Unpack reply | ||
fx = np.asarray(reply, dtype=float) | ||
|
||
# Very first call |
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.
# Ensure fx is a float
fx = float(fx)
|
||
# First run | ||
x = mcmc.ask() | ||
fx = log_pdf.evaluateS1(x)[0] |
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.
fx = log_pdf(x0)
--> don't calculate sensitivities!
# Second run | ||
x = mcmc.ask() | ||
self.assertTrue(np.all(x == x0)) | ||
fx = log_pdf.evaluateS1(x)[0] |
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.
fx = log_pdf(x0)
--> don't calculate sensitivities!
etc
Sets mean of the Gaussian distribution from which we | ||
draw the starting samples. | ||
""" | ||
if type(mean) == int or float: |
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.
Use np.issscalar
@ben18785 how's it going with all the slice samplers? I thought they were all nearly done but it seems to have slowed down |
See #772