Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sliced Wasserstein distance vs Wasserstein distance #51

Open
shiqingzhangCSU opened this issue Apr 15, 2021 · 1 comment
Open

Sliced Wasserstein distance vs Wasserstein distance #51

shiqingzhangCSU opened this issue Apr 15, 2021 · 1 comment

Comments

@shiqingzhangCSU
Copy link

I think your job is very meaningful and exciting!But I am a little confused about the description of Sliced Wasserstein distance.
"The general idea is to compute an approximation of the Wasserstein distance by computing the distance in 1-dimension repeatedly and use the results as a measure. "
Does this mean that Sliced Wasserstein distance is faster than Wasserstein in terms of time complexity?
If not, what is the difference between these two distances in this library?
Thank you for your attention!
Looking forward to your reply!

@bartolsthoorn
Copy link

Yes the Sliced Wasserstein distance is much faster to compute and it approximates the Wasserstein distance. You can increase the parameter M in persim.sliced_wasserstein(PD1, PD2, M=50) to make it more precise, at a computational cost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants