How to use Variational Inference to find the parameters for a given distribution in pystan

I am new to Stan and I would like to know how to solve the parameters for a given distribution using built-in MCMC and Vi methods in PyStan

I think PyStan3 doesn’t support VI, and PyStan2 is deprecated. If you want to use VI (but why) you would need to use CmdStanPy, and the docs are quite OK there: “Hello, World” — CmdStanPy 1.0.1 documentation.

1 Like