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

Function test_class_jax_tf

test/test_da.py:30–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_class_jax_tf():
31 from ot.backend import tf
32
33 backends = []
34 if tf:
35 backends.append(ot.backend.TensorflowBackend())
36
37 for nx in backends:
38 ns = 150
39 nt = 200
40
41 Xs, ys = make_data_classif("3gauss", ns)
42 Xt, yt = make_data_classif("3gauss2", nt)
43
44 Xs, ys, Xt, yt = nx.from_numpy(Xs, ys, Xt, yt)
45
46 otda = ot.da.SinkhornLpl1Transport()
47
48 with pytest.raises(TypeError):
49 otda.fit(Xs=Xs, ys=ys, Xt=Xt)
50
51
52@pytest.skip_backend("jax")

Callers

nothing calls this directly

Calls 3

fitMethod · 0.95
make_data_classifFunction · 0.90
from_numpyMethod · 0.80

Tested by

no test coverage detected