Closed lrnv closed 1 year ago
Apologies for the slow response! I need to set up email notifications.
Is this related to the entropic OT independence criterion? https://proceedings.mlr.press/v151/liu22h/liu22h.pdf
Probably the most straightforward way to do this would be to just sample from D
and then use e.g. emd
or sinkhorn_divergence
. Alternatively you could construct the product of marginals exactly, although this would be quadratic in the number of points (e.g. 100^2 points on the product).
Hey,
No it is not related but thanks for the ref. I am indeed trying to enforce independence, but also the fact that the two marginals are the same at the same time.
As you noted, the number of atoms of the second distribution is quadratic. I will try by sampling a smaller amount of them then as you point out.
Thanks, this can of course be closed as this is not an issue on OptimalTransport.jl anymore. Great package btw :)
Hey,
I have a bivariate dataset and a bivariate distribution defined as :
How should I go for computing (or at least approximating) the Wasserstein distance (cost = square Euclidean norm) between the dataset
data
and the distributionD
? Note that the marginals are exchanged (so that, when the distance is minimized, they match each other) and that the dependence structure ofD
is the independence, all this is on purpose.