It is not clear how we should implement tests for probabilistic models due to the randomness associated with the sampling process. Currently, the tests check that the API works as expected, but not the validity of the outputs.
The following blog article has some interesting ideas:
It is not clear how we should implement tests for probabilistic models due to the randomness associated with the sampling process. Currently, the tests check that the API works as expected, but not the validity of the outputs.
The following blog article has some interesting ideas:
https://alexey.radul.name/ideas/2016/on-testing-probabilistic-programs/