Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
255
def
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_phi
Method · 0.85
VLB
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected