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

Function solve_L_bias

ot/mapping.py:811–814  ·  view source on GitHub ↗

solve L problem with fixed G (least square)

(G)

Source from the content-addressed store, hash-verified

809 return nx.solve(K0, xst)
810
811 def solve_L_bias(G):
812 """solve L problem with fixed G (least square)"""
813 xst = ns * nx.dot(G, xt)
814 return nx.solve(K0, nx.dot(K1.T, xst))
815
816 def solve_G(L, G0):
817 """Update G with CG algorithm"""

Callers

nothing calls this directly

Calls 2

dotMethod · 0.45
solveMethod · 0.45

Tested by

no test coverage detected