Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lorcandelaney
Copy link
Contributor

@lorcandelaney lorcandelaney commented Aug 14, 2019

See #772

@lorcandelaney lorcandelaney self-assigned this Aug 14, 2019
@codecov
Copy link

codecov bot commented Aug 14, 2019

Codecov Report

Merging #900 into master will decrease coverage by 0.39%.
The diff coverage is 87.34%.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
pints/_mcmc/_slice_generalised_elliptical.py 87.34% <87.34%> (ø)
pints/_mcmc/_slice_stepout.py 99.28% <0%> (-0.72%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06e64cc...099c44b. Read the comment docs.

@MichaelClerx MichaelClerx mentioned this pull request Sep 3, 2019
49 tasks
self._ready_for_tell = True
return np.array(self._proposed_sample, copy=True)

def tell(self, reply):
Copy link
Member

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
Copy link
Member

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]
Copy link
Member

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]
Copy link
Member

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:
Copy link
Member

Choose a reason for hiding this comment

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

Use np.issscalar

@MichaelClerx
Copy link
Member

@ben18785 how's it going with all the slice samplers? I thought they were all nearly done but it seems to have slowed down

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.

None yet

2 participants