python-mle
python-mle copied to clipboard
Implement random number generation
We should be able to easily sample data from the model.
I've added a very crude implementation of this. The .sample
method on every distribution calls numpy to sample from the right distribution.
This could also be implemented with Theano.
It would be nice to have parallel generation of samples.
Also, there might be smarter ways to get the "true" values needed for sampling than just passing them in.
With the increased flexibility of the new API, sampling has become a lot harder. There's probably no way around implementing MCMC if we want to sample arbitrary models.