-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fix code to correspond to equation for matthews_corrcoef #321
Conversation
Codecov Report
@@ Coverage Diff @@
## master #321 +/- ##
==========================================
+ Coverage 96.58% 96.64% +0.05%
==========================================
Files 107 107
Lines 3428 3428
==========================================
+ Hits 3311 3313 +2
+ Misses 117 115 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@SkafteNicki shall we add some text covering this case as you made a change but no effect on tested cases... |
@Borda the change does not matter for the correctness of the result because both quantities are just multiplied together in the end. However, the user that raised the issue found it confusing that the two quantities where switched around (compared to the formula on Wikipedia) and therefore wanted it changed. |
Before submitting
What does this PR do?
Fixes #320
Currently there is a small mismatch between the definition of matthews corrcoef and our code. The code was still correct because the equation is symmetrical, but as requested by an user our code should match the definition. PR fixes this.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃