-
Notifications
You must be signed in to change notification settings - Fork 194
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
Rewrote corkendall (issue 634) #647
Conversation
New version of corkendall is approx 4 times faster if both arguments are vectors and 7 times faster if at least one is a matrix. See issue 634 for details.
…identifiers over Unicode equivalents whenever possible"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks mostly good, the main issue to sort out is overflow I think
src/rankcorr.jl
Outdated
# | ||
# Kendall correlation | ||
# | ||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh, that was VSCode auto formatter. Fixed now.
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
I will do another commit that incorporates all your suggestions except:
Please don't merge the pull request just yet even if the next batch of tests pass. Also I feel I've not been using GitHub quite as it's intended. I probably should have made more use of the "Commit Suggestion" buttons above, and I'm not sure what the "Add suggestion to batch" buttons do so I didn't use them either... |
Incorporated suggestions from nalimilan. Also further changes to avoid overflow errors
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
Co-authored-by: Milan Bouchet-Valat <[email protected]>
I've made changes you suggested to test/rankcorr.jl. I don't think there's any outstanding reason to not merge this PR now. Do you agree? I've clicked all the "Resolve conversation" buttons but mysteriously some of them still read "Resolve conversation" (rather than their other state of "Unresolve conversation"). Do both parties to a conversation need to click the button? |
I would think that once #656 is merged in then all tests should pass for this PR as well. Any chance it can be merged in too? |
CI failures on nightly are only due to #656 so I'll merge. Thanks for this work! Once I'll have merged my |
I enjoyed working on it and learned a great deal from your feedback, for which thank you! I think one needs to be a bit careful with threading, on which I did do some work but never got to a stage that I was happy with. My original objective was to calculate As we briefly discussed, I also need to be able to handle missing values where to calculate the correlation between two vectors one first filters out pairs for which either vector has missing elements. I hope the |
Yes we should probably never create much more tasks than
At least for the listwise method at #627 it shouldn't be hard since it calls |
New version of corkendall is approx 4 times faster if both arguments are vectors and 7 times faster if at least one is a matrix. See issue #634 for details. Passes all tests except against Julia nightly, which has unconnected failures (in hist.jl).