Questions about support sets for Wasserstein barycenters #367
-
Hello! Thank you all for all the great work on this excellent package! I have a few questions regarding Wasserstein barycenter algorithms in POT. I am interested in computing Wasserstein barycenters of multiple empirical distributions such that (1) each distribution is defined over a different support set of samples and (2) the ground metric is arbitrary. Here are my questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
There is for the moment no "general ground metrics" free_support_barycenter because the algorithm implemented is a block coordinate descent that requires a closed form solution for the update of the position which is not available for any losses. For general loss you can indeed implement a gradient descent form a sum of losses returned by
ot.emd2
when using differentiable loss matrices.The
ot.barycenter
function supposes that the support for all the distributions in the barycenter is the same (because a ground cost matrix is necessary and the j index in M_i,j index the positions in the distributions) but the barycenter itself does not need to be the same support as the distributions (…