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

Function solve_L

ot/mapping.py:565–568  ·  view source on GitHub ↗

solve L problem with fixed G (least square)

(G)

Source from the content-addressed store, hash-verified

563 )
564
565 def solve_L(G):
566 """solve L problem with fixed G (least square)"""
567 xst = ns * nx.dot(G, xt)
568 return nx.solve(xstxs + eta * Id, nx.dot(xs1.T, xst) + eta * I0)
569
570 def solve_G(L, G0):
571 """Update G with CG algorithm"""

Callers 2

joint_OT_mapping_linearFunction · 0.85
joint_OT_mapping_kernelFunction · 0.85

Calls 2

dotMethod · 0.45
solveMethod · 0.45

Tested by

no test coverage detected