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

EMD metric is not working #2

Open
dberga opened this issue Oct 26, 2015 · 2 comments
Open

EMD metric is not working #2

dberga opened this issue Oct 26, 2015 · 2 comments

Comments

@dberga
Copy link
Contributor

dberga commented Oct 26, 2015

The function "emd_hat_gd_metric_mex" returning 0 as score. Using default parameters.

@cvzoya
Copy link
Owner

cvzoya commented Nov 23, 2015

Please try to download and compile FastEMD from: http://www.ariel.ac.il/sites/ofirpele/fastemd/code/

@dberga
Copy link
Contributor Author

dberga commented Nov 25, 2015

That was not the problem.
When energy is too big and im1 and im2 are integers, when dividing by a big number (ex. 6000) we get values that are rounded to 0 (ex. "0.16" is rounded to 0). We need to cast values to doubles before calling the energy to avoid calculating 0 values on P,Q. Therefore to avoid the 0 score issue. Now I get correct EMD scores.

Here is my pull-request
#6

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