| 354 | |
| 355 | |
| 356 | def 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 | |
| 374 | def test_solve_gromov(nx): |