pyro-ppl / pyro

Deep universal probabilistic programming with Python and PyTorch
http://pyro.ai
Apache License 2.0
8.59k stars 988 forks source link

Refactoring integration tests #634

Closed neerajprad closed 6 years ago

neerajprad commented 6 years ago

Remaining action item from #120:

Refactor the existing integration tests to inherit from a common structure - where the model, guide, inference algorithms and their parameters, expected posterior etc. can be specified via parameters. New inference algorithms can reuse this structure.

neerajprad commented 6 years ago

I think we have a lot of tests for HMC and NUTS already. We can reopen this if we decide to implement MH. Regarding (2), I think we have refactored many of our tests and made them much faster, so let us have a more targeted issue if we want to invest more time in refactoring and unifying these tests.