Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: random seed for python models #114

Open
eozd opened this issue Nov 27, 2019 · 2 comments
Open

New feature: random seed for python models #114

eozd opened this issue Nov 27, 2019 · 2 comments
Milestone

Comments

@eozd
Copy link

eozd commented Nov 27, 2019

Thank you for providing this package!

I was wondering whether it is possible to specify a random seed in the python version of hBayesDM. In the current master version I haven't found a way of passing the seed to the stan model. I guess the easiest way of adding this functionality would be to pass the seed parameter to

return sm.vb(data=data_dict,

and to

return sm.sampling(data=data_dict,

What do you think about this feature? Hoping to hear back from you soon.

@JaeyeongYang
Copy link
Contributor

Sorry for the late reply. That sounds good! I will add this option in the next version release. Thanks for your suggestion. :)

@JaeyeongYang JaeyeongYang added this to the v1.1 milestone Dec 4, 2019
@deschsimon
Copy link

I was wondering about this very same feature in the R version.
There I guess a seed value was best passed to stan at

fit <- rstan::vb(object = stanmodel_arg,

, and
fit <- rstan::sampling(object = stanmodel_arg,

, respectively.

Could this be easiliy implemented?

@JaeyeongYang JaeyeongYang modified the milestones: v1.1, v1.2 Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants