-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize compute_kda_ma for memory and speed (#857)
* Simplify stacking * Fix typo * Remove vstack * Fix stacking * Remove @Profile * Use jit for _convolve_sphere * switch arrays to int32 where possible * reduce memory consumption * fix style * Simplify numba * Run black * �Mask outside space in numba * Add indicator later * Set value to input * Add `sum_across_studies` to kda (#859) * Resolve merge * Add sum aross studies * Remove @Profile * Only enable sum across studies for MKDA Chi Squared * Run black * Return dense for MKDACHiSquared * Update nimare/meta/utils.py Co-authored-by: James Kent <[email protected]> * Run black * Update nimare/meta/utils.py Co-authored-by: James Kent <[email protected]> * Format suggestion * change how number of studies and active voxels are found * add explicit dtype when creating image * make the comment clearer * add the kernel argument to the dictionary * bump minimum required versions * alternative way to sum across studies in a general way * fix arguments and style * pin minimum seaborn version --------- Co-authored-by: Alejandro de la Vega <[email protected]> Co-authored-by: James Kent <[email protected]> * manage minimum dependencies * Index within numba * Only allow sum_overlap if not sum_across_studies * Add unique index back * Remove @Profile * run black * ensure the methods for creating the kernel are equivalent --------- Co-authored-by: James Kent <[email protected]> Co-authored-by: Alejandro de la Vega <[email protected]>
- Loading branch information
1 parent
6315367
commit 1fa0603
Showing
7 changed files
with
178 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.