MCPcopy Create free account
hub / github.com/PythonOT/POT / reg_kl

Function reg_kl

ot/unbalanced/_lbfgs.py:69–70  ·  view source on GitHub ↗
(G)

Source from the content-addressed store, hash-verified

67 return G - c
68
69 def reg_kl(G):
70 return nx_numpy.kl_div(G, c, mass=True)
71
72 def grad_kl(G):
73 return np.log(G / c + 1e-16)

Callers

nothing calls this directly

Calls 1

kl_divMethod · 0.45

Tested by

no test coverage detected