pyro-ppl / brmp

Bayesian Regression Models in Pyro
Apache License 2.0
69 stars 8 forks source link

Allow rng seed to be given to `fit.fitted(what='sample')`. #64

Closed null-a closed 4 years ago

null-a commented 4 years ago

Closes #11.

BTW, this is where #61 was useful. Because we're now not calling the generated sample_response_fn directly (e.g. from fitted), back ends have the opportunity to apply the seed handler to the generated code.

null-a commented 4 years ago

With this - we should be able to fix the seed for all the functions

I think so. Anywhere there's randomness, I think there is now a seed argument.