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

Function metric

test/test_stochastic.py:223–224  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

221 v = nx.randn(40)
222
223 def metric(x, y):
224 return -nx.dot(x, y.T)
225
226 ot.stochastic.loss_dual_entropic(u, v, xs, xt)
227

Callers 4

loss_dual_entropicFunction · 0.85
plan_dual_entropicFunction · 0.85
loss_dual_quadraticFunction · 0.85
plan_dual_quadraticFunction · 0.85

Calls 1

dotMethod · 0.45

Tested by

no test coverage detected