-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a3eab5
commit 3e8421e
Showing
2 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
This example illustrates the computation of an Optimal Transport for a ground | ||
cost that is not a power of a norm. We take the example of ground costs | ||
:math:`c_k(x, y) = |P_k(x)-y|^2`, where :math:`P_k` is the (non-linear) | ||
:math:`c_k(x, y) = \|P_k(x)-y\|_2^2`, where :math:`P_k` is the (non-linear) | ||
projection onto a circle k. This is an example of the fixed-point barycenter | ||
solver introduced in [74] which generalises [20]. | ||
solver introduced in [74] which generalises [20] and [43]. | ||
The ground barycenter function :math:`B(y_1, ..., y_K)` = \mathrm{argmin}_{x \in | ||
\mathbb{R}^2} \sum_k \lambda_k c_k(x, y_k) is computed by gradient descent over | ||
|
@@ -22,6 +22,8 @@ | |
Barycenters](http://proceedings.mlr.press/v32/cuturi14.html). International | ||
Conference in Machine Learning | ||
[43] Álvarez-Esteban, Pedro C., et al. "A fixed-point approach to barycenters in Wasserstein space." Journal of Mathematical Analysis and Applications 441.2 (2016): 744-762. | ||
""" | ||
|
||
# Author: Eloi Tanguy <[email protected]> | ||
|
@@ -147,8 +149,8 @@ def B(y, its=150, lr=1, stop_threshold=stop_threshold): | |
b_list, | ||
cost_list, | ||
B, | ||
max_its=fixed_point_its, | ||
stop_threshold=stop_threshold, | ||
numItermax=fixed_point_its, | ||
stopThr=stop_threshold, | ||
) | ||
|
||
# %% Plot Barycenter (Iteration 10) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters