()
| 28 | |
| 29 | |
| 30 | def 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") |
nothing calls this directly
no test coverage detected