pymc icon indicating copy to clipboard operation
pymc copied to clipboard

Example of setting random seed

Open gaborgulya opened this issue 13 years ago • 2 comments

What is the best way to set the seed of the random number generator? So as to guarantee the same output after each run. Could you please modify the https://github.com/pymc-devs/pymc/wiki/NormalFit example to demonstrate this? Many thanks

gaborgulya avatar Mar 29 '13 11:03 gaborgulya

The seed is set via numpy. I have changed the example on the wiki to demonstrate this.

fonnesbeck avatar Mar 30 '13 17:03 fonnesbeck

Many thanks!

gaborgulya avatar Mar 30 '13 21:03 gaborgulya