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

[ENH] added parallelization to dominance analysis function #133

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

eric2302
Copy link
Contributor

Model R2s for dominance analysis are now computed in parallel

@eric2302
Copy link
Contributor Author

It didn't pass the style check so I'm going to reupload a fancier version 😅

Copy link
Member

@liuzhenqi77 liuzhenqi77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good to me!
Just make sure you've tested a few examples for equivalence before & after change.
And you're good to merge!

(The internal multiprocessing I mentioned seems to have been managed by joblib well haha.)

@eric2302
Copy link
Contributor Author

eric2302 commented Mar 13, 2024

I did some tests and it turns out that the version with parallelization produces different array for partial and total dominance sometimes. These are, however, only very minor. Checking with np.isclose() gives a positive result. I've been looking for reasons why this happens, but haven't found any. What do you think @liuzhenqi77 should we merge or not?

@eric2302 eric2302 merged commit 9f02154 into master Mar 13, 2024
8 checks passed
@eric2302 eric2302 deleted the da_update branch March 13, 2024 19:17
@eric2302 eric2302 restored the da_update branch April 2, 2024 19:40
@eric2302 eric2302 deleted the da_update branch April 2, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants