summaryrefslogtreecommitdiff
path: root/ot/unbalanced.py
diff options
context:
space:
mode:
authorRomain Tavenard <romain.tavenard@univ-rennes2.fr>2019-07-01 14:23:14 +0200
committerRomain Tavenard <romain.tavenard@univ-rennes2.fr>2019-07-01 14:23:14 +0200
commit3a84263ffe4bbf2ac055dfd5a84e1b65c14f9cda (patch)
treefc5837b865f05765c89712c2be77e6b3db426a7e /ot/unbalanced.py
parent1fe13ed9cdda363c95c84f95fc70dcd95ac276f1 (diff)
Set numpy array formatting version to post-1.13
Diffstat (limited to 'ot/unbalanced.py')
-rw-r--r--ot/unbalanced.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ot/unbalanced.py b/ot/unbalanced.py
index 484ce95..b2b7b10 100644
--- a/ot/unbalanced.py
+++ b/ot/unbalanced.py
@@ -13,7 +13,7 @@ import numpy as np
def sinkhorn_unbalanced(a, b, M, reg, alpha, method='sinkhorn', numItermax=1000,
stopThr=1e-9, verbose=False, log=False, **kwargs):
- u"""
+ r"""
Solve the unbalanced entropic regularization optimal transport problem and return the loss
The function solves the following optimization problem:
@@ -75,7 +75,7 @@ def sinkhorn_unbalanced(a, b, M, reg, alpha, method='sinkhorn', numItermax=1000,
>>> M=[[0., 1.], [1., 0.]]
>>> ot.sinkhorn_unbalanced(a, b, M, 1, 1)
array([[0.51122823, 0.18807035],
- [0.18807035, 0.51122823]])
+ [0.18807035, 0.51122823]])
References
@@ -122,7 +122,7 @@ def sinkhorn_unbalanced(a, b, M, reg, alpha, method='sinkhorn', numItermax=1000,
def sinkhorn_unbalanced2(a, b, M, reg, alpha, method='sinkhorn',
numItermax=1000, stopThr=1e-9, verbose=False,
log=False, **kwargs):
- u"""
+ r"""
Solve the entropic regularization unbalanced optimal transport problem and return the loss
The function solves the following optimization problem:
@@ -233,7 +233,7 @@ def sinkhorn_unbalanced2(a, b, M, reg, alpha, method='sinkhorn',
def sinkhorn_knopp_unbalanced(a, b, M, reg, alpha, numItermax=1000,
stopThr=1e-9, verbose=False, log=False, **kwargs):
- """
+ r"""
Solve the entropic regularization unbalanced optimal transport problem and return the loss
The function solves the following optimization problem:
@@ -401,7 +401,7 @@ def sinkhorn_knopp_unbalanced(a, b, M, reg, alpha, numItermax=1000,
def barycenter_unbalanced(A, M, reg, alpha, weights=None, numItermax=1000,
stopThr=1e-4, verbose=False, log=False):
- """Compute the entropic regularized unbalanced wasserstein barycenter of distributions A
+ r"""Compute the entropic regularized unbalanced wasserstein barycenter of distributions A
The function solves the following optimization problem: