Stein Variational Inference#

compute_phi(x, gradp, gradq)

Compute the Stein variational gradients for a set of particles (x) and the gradients of the log-likelihood function (gradp) and the log-prior (gradq).