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

Use VB estimates as initial values for MCMC sampling by default #96

Merged
merged 5 commits into from
Aug 19, 2019

Conversation

JaeyeongYang
Copy link
Contributor

No description provided.

@JaeyeongYang JaeyeongYang merged commit e648f8d into develop Aug 19, 2019
@JaeyeongYang JaeyeongYang deleted the feature/use-vb-as-initial-values branch August 19, 2019 14:31
the variational Bayesian method.
"""
model = self._get_model_full_name()
sm = self._designate_stan_model(model)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JaeyeongYang
If you call self._designate_stan_model(model) within _prepare_gen_init_vb(), then _designate_stan_model() will end up being called twice within the entirety of _run(). Because (the Stanmodel caching and) user prompting occurs in _designate_stan_model(), the user will be prompted the line: 'Using cached StanModel:', cache_file a total of two times.

except Exception:
raise RuntimeError(
'Failed to get VB estimates for initial values. '
'Please re-run the code to try fitting model with VB.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JaeyeongYang
Are there any plans to also fix the base.py code part for running hbayesdm with vb=True ? (Regarding #92)

@JaeyeongYang JaeyeongYang added this to the v1.0 milestone Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants