Skip to content

Can POT be used to compute Wasserstein-2 distance between 2D distributions? #479

Answered by arakotom
FabianoVeglianti asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

yes you can compute it. for 2D data, if you have samples then you can use the code in this examples
https://github.com/PythonOT/POT/blob/master/examples/plot_OT_2D_samples.py

and it also works for higher dimensional data as long as you have samples.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FabianoVeglianti
Comment options

Answer selected by FabianoVeglianti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants