bayespy.inference.vmp.nodes.dirichlet.DirichletDistribution.compute_fixed_moments_and_f

DirichletDistribution.compute_fixed_moments_and_f(p, mask=True)[source]

Compute the moments and f(x) for a fixed value.

u(p) =
\begin{bmatrix}
  \log(p_1)
  \\
  \vdots
  \\
  \log(p_D)
\end{bmatrix}

f(p) = - \sum_d \log(p_d)