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

Method _get_backend

ot/utils.py:896–901  ·  view source on GitHub ↗
(self, *arrays)

Source from the content-addressed store, hash-verified

894 nx: Backend = None
895
896 def _get_backend(self, *arrays):
897 nx = get_backend(*[input_ for input_ in arrays if input_ is not None])
898 if nx.__name__ in ("tf",):
899 raise TypeError("Domain adaptation does not support TF backend.")
900 self.nx = nx
901 return nx
902
903 @classmethod
904 def _get_param_names(cls):

Callers 5

fitMethod · 0.80
fitMethod · 0.80
fitMethod · 0.80
fitMethod · 0.80
fitMethod · 0.80

Calls 1

get_backendFunction · 0.85

Tested by

no test coverage detected