AlphaDivergence¶
- class viabel.AlphaDivergence(approx, model, num_mc_samples, alpha)[source]¶
Log of the alpha-divergence.
- Attributes:
alphaAlpha parameter of the divergence.
approxThe approximation family.
modelThe model.
num_mc_samplesNumber of Monte Carlo samples to use to approximate the objective.
Methods
__call__(var_param)Evaluate objective and its gradient.
update(var_param, direction)Update the variational parameter in optimization.