czbiohub-sf / xicor

xi correlation method adapted for python
MIT License
145 stars 17 forks source link

Phoenix/class implementation #3

Closed phoenixAja closed 4 years ago

phoenixAja commented 4 years ago

basic refactoring, still need to address testing for random array outputs

review-notebook-app[bot] commented 4 years ago

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

olgabot commented 4 years ago

Usage-wise, I think it would be simplest for users to have the __init__ take the arguments of the tie-breaking and return the named tuple of (correlation, p_value) like Spearman correlation in Scipy:

olgabot commented 4 years ago

Running this on some lemur data and it's taking 732.58s (12min) to do 4 comparisons, so ~3 min/comparisons. The vectors are of length 13,340. Is there a way to optimize this to run faster on large datasets?

olgabot commented 4 years ago

Hey any concerns about merging this in?

phoenixAja commented 4 years ago

yeah let me make some changes for this and then we can merge in