statsmodels.genmod.bayes_mixed_glm.BinomialBayesMixedGLM.vb_elbo_grad#

BinomialBayesMixedGLM.vb_elbo_grad(vb_mean, vb_sd)[source]#

Returns the gradient of the model’s evidence lower bound (ELBO).

Parameters:
vb_meanndarray

The mean vector of the variational approximation, packed as fixed effects parameters, then variance component parameters, then random effect realizations.

vb_sdndarray

The standard deviation vector of the variational approximation, packed in the same order as vb_mean.

Returns:
mean_gradndarray

The gradient of the ELBO with respect to vb_mean.

sd_gradndarray

The gradient of the ELBO with respect to vb_sd.