Skip to content

Commit fcff735

Browse files
author
PaulKrzakala
committed
update doc
1 parent aee7eb4 commit fcff735

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ot/batch/_linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ def solve_batch(
232232
233233
Examples
234234
--------
235-
>>> from ot.batch import linear_solver_batch, cost_matrix_l2_batch
235+
>>> from ot.batch import solve_batch, cost_matrix_l2_batch
236236
>>> import numpy as np
237237
>>> a = np.ones((B, ns)) / ns
238238
>>> b = np.ones((B, nt)) / nt
239239
>>> X = np.random.rand(B, ns, d)
240240
>>> Y = np.random.rand(B, nt, d)
241241
>>> M = cost_matrix_l2_batch(X, Y)
242-
>>> res = linear_solver_batch(M=M, epsilon=0.01, a=a, b=b)
242+
>>> res = solve_batch(M=M, epsilon=0.01, a=a, b=b)
243243
>>> res.plan.shape
244244
(B, ns, nt)
245245
>>> res.value.shape

ot/batch/_quadratic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ def solve_gromov_batch(
367367
368368
Examples
369369
--------
370-
>>> from ot.batch import quadratic_solver_batch
370+
>>> from ot.batch import solve_gromov_batch
371371
>>> import numpy as np
372372
>>> a = np.ones((B, ns)) / ns
373373
>>> b = np.ones((B, nt)) / nt
374374
>>> C1 = np.random.rand(B, ns, ns)
375375
>>> C2 = np.random.rand(B, nt, nt)
376376
>>> M = np.random.rand(B, ns, nt)
377-
>>> res = quadratic_solver_batch(C1=C1, C2=C2, a=a, b=b, M=M, alpha=0.5, epsilon=0.01)
377+
>>> res = solve_gromov_batch(C1=C1, C2=C2, a=a, b=b, M=M, alpha=0.5, epsilon=0.01)
378378
>>> res.plan.shape
379379
(B, ns, nt)
380380
>>> res.value.shape

0 commit comments

Comments
 (0)