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

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

Open
DennisShaw opened this issue Oct 17, 2019 · 4 comments

Comments

@DennisShaw
Copy link

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

@naman-ali
Copy link

@DennisShaw Were you able to solve this issue?

@GTFoster
Copy link

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.

@hajarmerbouh
Copy link

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.

@abbynewbury
Copy link

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!

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

5 participants