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

Method sparse_plan

ot/utils.py:1186–1193  ·  view source on GitHub ↗

Transport plan, encoded as a sparse array.

(self)

Source from the content-addressed store, hash-verified

1184
1185 @property
1186 def sparse_plan(self):
1187 """Transport plan, encoded as a sparse array."""
1188 if self._sparse_plan is not None:
1189 return self._sparse_plan
1190 elif self._plan is not None:
1191 return self._backend.tocsr(self._plan)
1192 else:
1193 return None
1194
1195 @property
1196 def lazy_plan(self):

Callers

nothing calls this directly

Calls 1

tocsrMethod · 0.45

Tested by

no test coverage detected