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

Function test_solve_not_implemented

test/test_solvers.py:356–371  ·  view source on GitHub ↗
(nx)

Source from the content-addressed store, hash-verified

354
355
356def test_solve_not_implemented(nx):
357 n_samples_s = 10
358 n_samples_t = 7
359 n_features = 2
360 rng = np.random.RandomState(0)
361
362 x = rng.randn(n_samples_s, n_features)
363 y = rng.randn(n_samples_t, n_features)
364
365 M = ot.dist(x, y)
366
367 # test not implemented and check raise
368 with pytest.raises(NotImplementedError):
369 ot.solve(M, reg=1.0, reg_type="cryptic divergence")
370 with pytest.raises(NotImplementedError):
371 ot.solve(M, unbalanced=1.0, unbalanced_type="cryptic divergence")
372
373
374def test_solve_gromov(nx):

Callers

nothing calls this directly

Calls 2

randnMethod · 0.45
solveMethod · 0.45

Tested by

no test coverage detected