How to set random seed. #384
-
Hi. I want to set random seed for reproducibility of sampling. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @JKYUPSYCHE, thank you for trying HSSM. This may help. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @JKYUPSYCHE, Per this page, and since HSSM is a wrapper around Let us know if this works. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi @JKYUPSYCHE,
Per this page, and since HSSM is a wrapper around
bambi
, you can use therandom_seed
argument directly when you call model.sample(). This argument is simply anint
or a list ofint
s, depending on how many cores you are using. In other words, you need to set a random seed for each core that you are using when sampling.Let us know if this works.
Thanks!
Paul