Replies: 1 comment
-
In your example you are counting the distance on the diagonal twice by doing the sum at the end. ![]() By counting it only one I recover a minimum on the diagonal. It will never be 0 with entropic OT because of the regularization unless you use the sinkhorn divergence that remove the bias. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am computing matrices of W_2 distances with ot.bregman.empirical_sinkhorn2 between point clouds centered along a curve. I expect that the distance from a point cloud to itself should be zero or close to zero. However, this is not the case and the self-distances are in fact higher than to some neighboring point clouds. This seems like an unexpected behavior and I am wondering if there is an underlying issue causing it. I've created a code snippet below which highlights the issue. Any input would be greatly appreciated.
To Reproduce
Screenshots
Expected Behavior
I expect the diagonal to be close to zero.
Environment (please complete the following information):
pip
,conda
): pipOutput of code snippet:
Linux-4.18.0-513.5.1.el8_9.x86_64-x86_64-with-glibc2.28
Python 3.11.5 (main, Sep 22 2023, 15:34:29) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]
NumPy 1.26.0
SciPy 1.11.3
[KeOps] Warning : Cuda libraries were not detected on the system or could not be loaded ; using cpu only mode
POT 0.9.4
Beta Was this translation helpful? Give feedback.
All reactions