mercredi 4 septembre 2019

how to get sample random sequence in pymc code?

When we generate random sequence in python code, we can use random.seed to generate the same sequence. Then when i run pymc code as follows:

S = pymc.MCMC(mymodel, db='pickle')
S.sample(iter=60,thin=10)

I want to generate the same results when i rerun the code. So how to do it?




Aucun commentaire:

Enregistrer un commentaire