edge2vec icon indicating copy to clipboard operation
edge2vec copied to clipboard

zero_method 'wilcox' and 'pratt' do not work if the x - y is zero for all elements.

Open DennisShaw opened this issue 6 years ago • 5 comments

ValueError: zero_method 'wilcox' and 'pratt' do not work if the x - y is zero for all elements.

DennisShaw avatar Oct 17 '19 01:10 DennisShaw

@DennisShaw Were you able to solve this issue?

naman-ali avatar Jan 31 '21 01:01 naman-ali

I've also run into the same issue. I got this error when trying to run the first bash command suggested by the readme file after cloning the repository.

GTFoster avatar Oct 20 '21 19:10 GTFoster

The error means that either wilcoxon or pratt is having as an input two identical lists : For a given list=List1, wilcoxon(List1,List1) returns error; in other words, x-y is zero for all elements which points out the erreur.

In order to avoid it, we'll have to make sure that repo[i]!=repo[j] (the inputs of wilcox). So we need to apply the following adjustements (mentionned in bold):

[267] for i in range(type_size-1): print ("repo ",i, ": ",repo[i],type(repo[i])) for j in range(i+1, type_size):
if evaluation_metric == 1: etc.. This way, 'i' will always be different from 'j' and so repo[i] and repo[j] won't be identical.

hajarmerbouh avatar Jan 02 '23 14:01 hajarmerbouh

I just wanted to check in regarding this issue, if the above comment is the verified solution to the issue and should be implemented? Or was there another method that the authors intended and that is why this comment status is left on 'Open'. Thanks!

abbynewbury avatar Jul 02 '23 21:07 abbynewbury