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

Add test to warn for algorithmic changes #1570

Merged
merged 1 commit into from Dec 2, 2016

Conversation

ColCarroll
Copy link
Member

This is a test to make sure the trace on a very simple model (literally just drawing from a normal distribution) using any of NUTS, Slice, Metropolis, or HamiltonianMC does not change at all. As a side effect, it allows for easy benchmarking of those methods between commits. I tried to comment heavily.

Interested in feedback on this test -- I've been using it on a branch I've been working on, and it has helped me avoid changing the sampling algorithm at all (though performance enhancements are still fine).

On the one hand, I worry that it will be too brittle, but on the other hand it may be a good alert if a pull request changes one of these methods.

@twiecki
Copy link
Member

twiecki commented Dec 2, 2016

I think this is a great test to have, and the speed-comparison will be useful too.

@twiecki twiecki merged commit 67c1cd0 into pymc-devs:master Dec 2, 2016
ColCarroll added a commit to ColCarroll/pymc3 that referenced this pull request Dec 3, 2016
@ColCarroll ColCarroll mentioned this pull request Dec 3, 2016
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