8000 Performance bump in PSTH by mmyros · Pull Request #118 · KordingLab/spykes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Performance bump in PSTH #118

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Performance bump in PSTH #118

wants to merge 11 commits into from

Conversation

mmyros
Copy link
@mmyros mmyros commented Sep 23, 2020

Single-threaded speedup through JIT histograms and parallelization over neurons. This introduces numba and joblib dependencies, but there is an option to turn off parallelization. If it's turned off, joblib is not imported. -1 option means use all available threads.

On Steinmetz Neuropix dataset, this gets a 3x single-threaded speed increase and theoretically linear speed increase with the number of threads

Tests are passing, except for strf: TypeError: object of type <class 'float'> cannot be safely interpreted as an integer. but I think that's unrelated since this PR does not deal with ML part. Edit: Fixed that test, indeed it wasn't related to this PR.

@mmyros
Copy link
Author
mmyros commented Sep 23, 2020

Currently the failing test seems to do with tensorflow version. It's probably enough to pin TF to 2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0