Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
generic_conditional_gradient
Function · 0.70
Calls
3
f
Function · 0.70
sum
Method · 0.45
log
Method · 0.45
Tested by
no test coverage detected