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
emd vs emd_samples #29
Comments
|
Can you explain to me why the results of |
I'm not sure, but it looks like the SciPy function is using the L1 distance as the ground metric, whereas the default ground distance in |
Hi, I want to penalise mass that remain there they were. But changing diagonal elements of the distance matrix to large values does not seem to work. I'm not sure if my understanding of the package is correct or emd always assume things remain static as much as possible? |
Increasing the diagonal entries will indeed penalize mass that goes directly from bin i to bin i, but remember that there are many other routes that mass could take; the flow diagram might allow the mass to take a less direct, but also less costly, path. Perhaps that explains why you're seeing unexpectedly low EMD values (which is what I assume you mean when you say it “does not work”). |
I am slightly confused by your description of emd and emd_samples, since for emd you wrote histogram as parameter and for emd_sample 1D samples.
If I want to compare two images by emd and I use emd_samples. Do I have to pass the images or the histograms of the images to the method?
The text was updated successfully, but these errors were encountered: