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

ADVI: Option to save family parameters to JSON #3315

Open
WardBrian opened this issue Nov 18, 2024 · 0 comments
Open

ADVI: Option to save family parameters to JSON #3315

WardBrian opened this issue Nov 18, 2024 · 0 comments

Comments

@WardBrian
Copy link
Member

Summary:

Currently the mean is saved in the CSV output above the samples, but there is no way to get the estimated (co-)variance out, short of approximating it through the samples.

We could save it to JSON, similar to issues #3181 #3260

Description:

Option to save the non-mean parameters of the family for ADVI. For meanfield this is

* Log standard deviation (log scale) vector.
*/
Eigen::VectorXd omega_;

For fullrank this is

* Cholesky factor of covariance:
* Sigma = L_chol * L_chol.transpose()
*/
Eigen::MatrixXd L_chol_;

These could be used to e.g. draw further samples from the approximation from outside the algorithmic run.

Additional Information:

Originally requested on the forums here: https://discourse.mc-stan.org/t/cmdstanpy-variational-how-to-get-density-parameters/37280/

Current Version:

v2.35.0

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

No branches or pull requests

1 participant