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

Write code for extracting process for running vb mode (Python) #92

Open
dlemfh opened this issue Jul 7, 2019 · 0 comments
Open

Write code for extracting process for running vb mode (Python) #92

dlemfh opened this issue Jul 7, 2019 · 0 comments
Milestone

Comments

@dlemfh
Copy link
Contributor

dlemfh commented Jul 7, 2019

In the (normal) case of StanModel.sampling(), a StanFit4Model obj is returned, which has a .extract() function that can be used to extract the parameter values. (This is the usual case for running hBayesDM models, with vb=False.)

However, when running with vb=True, the pystan function that is used - StanModel.vb() - returns a Dict obj (not the StanFit4Model obj as in the usual case of using StanModel.sampling()).

Therefore, a different process of proper code needs to be written to handle the case for when the variational Bayesian method is requested by the user, for the Python hbayesdm package.

(I.e. Currently, the variational Bayesian analysis functionality is not supported in the Python package.)

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

2 participants