MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / dg

Function dg

numpy_ml/lda/lda.py:255–259  ·  view source on GitHub ↗

E[log X_t] where X_t ~ Dir

(gamma, d, t)

Source from the content-addressed store, hash-verified

253
254
255def dg(gamma, d, t):
256 """
257 E[log X_t] where X_t ~ Dir
258 """
259 return digamma(gamma[d, t]) - digamma(np.sum(gamma[d, :]))

Callers 2

_maximize_phiMethod · 0.85
VLBMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected