pyro-api icon indicating copy to clipboard operation
pyro-api copied to clipboard

Move all testing code into the main library

Open neerajprad opened this issue 6 years ago • 1 comments

As pointed out by @fritzo, any code in the test folder will be unusable by other projects, so it makes sense to move these to testing instead. Refer to https://github.com/pyro-ppl/pyro/issues/2053 for details.

neerajprad avatar Oct 08 '19 21:10 neerajprad

I've been thinking about this. I think it should be possible to register test cases in pytest-oblivious maner by creating an object with

  • a function (the name of this function will be used as test case)
  • a grid of test parameters that we can somehow thread to pytest.mark.parametrize

Again, it will help us design this interface to have more concrete tests to generalize from, e.g. MCMC, SVI, data generation, prediction.

fritzo avatar Oct 08 '19 22:10 fritzo