pyGAM icon indicating copy to clipboard operation
pyGAM copied to clipboard

Setting a seed for sample function

Open daniel-s-cunha opened this issue 4 years ago • 1 comments

Some hierarchical modeling techniques require evaluating different statistics on the same sample of the posterior. Currently, there is no seed to set for the sample function.

daniel-s-cunha avatar Sep 12 '19 14:09 daniel-s-cunha

I confirmed the code is using numpy for sampling. As a temporary fix, you can set np.random.seed(n) before running the sample function each time if you need the same samples.

daniel-s-cunha avatar Sep 12 '19 14:09 daniel-s-cunha