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

Function test_log_da

test/test_da.py:64–77  ·  view source on GitHub ↗
(nx, class_to_test)

Source from the content-addressed store, hash-verified

62 ],
63)
64def test_log_da(nx, class_to_test):
65 ns = 50
66 nt = 50
67
68 Xs, ys = make_data_classif("3gauss", ns)
69 Xt, yt = make_data_classif("3gauss2", nt)
70
71 Xs, ys, Xt, yt = nx.from_numpy(Xs, ys, Xt, yt)
72
73 otda = class_to_test(log=True)
74
75 # test its computed
76 otda.fit(Xs=Xs, ys=ys, Xt=Xt)
77 assert hasattr(otda, "log_")
78
79
80@pytest.skip_backend("tf")

Callers

nothing calls this directly

Calls 3

make_data_classifFunction · 0.90
from_numpyMethod · 0.80
fitMethod · 0.45

Tested by

no test coverage detected