Title: Error in the definition of the Wasserstein distance from the user guide · Issue #779 · PythonOT/POT · GitHub
Open Graph Title: Error in the definition of the Wasserstein distance from the user guide · Issue #779 · PythonOT/POT
X Title: Error in the definition of the Wasserstein distance from the user guide · Issue #779 · PythonOT/POT
Description: Describe the bug I have found a typo in the user guide which can be quite misleading. The Wasserstein distance should be defined for a specific metric $$d$$ on the real numbers, e.g., the Euclidean norm, and a specific order $$p$$. The d...
Open Graph Description: Describe the bug I have found a typo in the user guide which can be quite misleading. The Wasserstein distance should be defined for a specific metric $$d$$ on the real numbers, e.g., the Euclidean...
X Description: Describe the bug I have found a typo in the user guide which can be quite misleading. The Wasserstein distance should be defined for a specific metric $$d$$ on the real numbers, e.g., the Euclidean...
Opengraph URL: https://github.com/PythonOT/POT/issues/779
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error in the definition of the Wasserstein distance from the user guide","articleBody":"## Describe the bug\nI have found a typo in the user guide which can be quite misleading. \n\nThe Wasserstein distance should be defined for a specific metric $$d$$ on the real numbers, e.g., the Euclidean norm, and a specific order $$p$$. \n\nThe definition given in the documentation is as follows:\n\n$$ W_p(a,b)=(\\min_{\\gamma \\in \\mathbb{R}_+^{m\\times n}} \\sum_{i,j}\\gamma_{i,j} \\|x_i-y_j \\|_p)^\\frac{1}{p}$$\n\n$$ s.t. \\gamma 1 = a; \\gamma^T 1= b; \\gamma\\geq 0 $$\n\nThe order- $$p$$ should be a power of the metric $$d$$.\n\n\nSee [link to documentation](https://pythonot.github.io/user_guide.html#computing-wasserstein-distance).\n\nTo be exact, we would need a definition such as :\n\n$$ W_p(a,b)=(\\min_{\\gamma \\in \\mathbb{R}_+^{m\\times n}} \\sum_{i,j}\\gamma_{i,j}d(x_i,y_j)^p)^\\frac{1}{p}$$\n\n$$ s.t. \\gamma 1 = a; \\gamma^T 1= b; \\gamma\\geq 0 $$\n\nOr if $$d$$ is specifically defined as any arbitrary norm $$\\|\\cdot\\|$$ on the real numbers:\n\n$$ W_p(a,b)=(\\min_{\\gamma \\in \\mathbb{R}_+^{m\\times n}} \\sum_{i,j}\\gamma_{i,j}\\|x_i-y_j\\|^p)^\\frac{1}{p}$$\n\n$$ s.t. \\gamma 1 = a; \\gamma^T 1= b; \\gamma\\geq 0 $$\n\nThanks for your time.\n\n\n\n\n\n\n\n","author":{"url":"https://github.com/jupall","@type":"Person","name":"jupall"},"datePublished":"2025-11-10T14:25:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/779/POT/issues/779"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bdba7c19-56a0-c921-e5fe-65c2113a9608 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C71E:2464D3:1ADC281:233A92F:6992C104 |
| html-safe-nonce | af2eb2457b291f031f044f521ee35e429ddcfd1932caea7ae158f8bd7b67fccc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzFFOjI0NjREMzoxQURDMjgxOjIzM0E5MkY6Njk5MkMxMDQiLCJ2aXNpdG9yX2lkIjoiMzA1MzkxOTAxMjc4MDE2MzMzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03581ade92409b44bcb93b1d7e05e9d31fef4f40804b7783770a8bdb29b192e9 |
| hovercard-subject-tag | issue:3608298447 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PythonOT/POT/779/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a295a0c0e571f1d04748708d17a1ff668e5f44f17a62b88c33c649d6d1d013e5/PythonOT/POT/issues/779 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a295a0c0e571f1d04748708d17a1ff668e5f44f17a62b88c33c649d6d1d013e5/PythonOT/POT/issues/779 |
| og:image:alt | Describe the bug I have found a typo in the user guide which can be quite misleading. The Wasserstein distance should be defined for a specific metric $$d$$ on the real numbers, e.g., the Euclidean... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jupall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/PythonOT/POT git https://github.com/PythonOT/POT.git |
| octolytics-dimension-user_id | 63845245 |
| octolytics-dimension-user_login | PythonOT |
| octolytics-dimension-repository_id | 71472695 |
| octolytics-dimension-repository_nwo | PythonOT/POT |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 71472695 |
| octolytics-dimension-repository_network_root_nwo | PythonOT/POT |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 84dcb133269e3cfe6e0296cc85fbacb92cae92bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width