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

Function cost

ot/optim.py:324–325  ·  view source on GitHub ↗
(G)

Source from the content-addressed store, hash-verified

322 if reg2 is None:
323
324 def cost(G):
325 return nx.sum(M * G) + reg1 * f(G)
326 else:
327
328 def cost(G):

Callers 1

Calls 3

fFunction · 0.70
sumMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected