-
Notifications
You must be signed in to change notification settings - Fork 186
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
Refactor, test and optimize compute_synchrony_metrics #2528
Closed
chrishalcrow
wants to merge
184
commits into
SpikeInterface:main
from
chrishalcrow:quality_metrics_dev
Closed
Refactor, test and optimize compute_synchrony_metrics #2528
chrishalcrow
wants to merge
184
commits into
SpikeInterface:main
from
chrishalcrow:quality_metrics_dev
Conversation
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
…tor to match structured array spike trains. And added option of manual insertions. Will be used for testing.
for more information, see https://pre-commit.ci
alejoe91
added
qualitymetrics
Related to qualitymetrics module
refactor
Refactor of code, with no change to functionality
labels
Mar 1, 2024
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@chrishalcrow not sure what happened here with the conflicts..maybe easier to make a new PR directly to main with the changes to the metrics? |
Yes, I tried to merge with the main after the SortingAnalyzer change and have somehow created this mess. Will start again... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
qualitymetrics
Related to qualitymetrics module
refactor
Refactor of code, with no change to functionality
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Planning to standardise, correctness test and optimise the quality metrics module. First one: the
compute_synchrony_metrics function
.I'm pretty new to this, so all feedback will be listened to and much appreciated! I think @samuelgarcia agreed to give me some detailed feedback in the future, so I'll put this on draft until then.
Two main things in this:
synthesize_random_firings
andsynthesize_poisson_spike_vectors
were adjusted so that you can insert specific spikes, useful for testing. These are used in the new tests.compute_synchrony_counts
is introduced, which computes the synchrony counts.Some things I'm not sure about:
compute_synchrony_metrics
returns a dict, but it previously outputted a named tuple. We can either change the documentation or the output. I changed the output, as most quality metrics functions return a dict.I adjusted the algorithm in
compute_synchrony_counts
, which should be easier to understand and is significantly faster. I benchmarked using the following code:The results are below. I tabulated (half of) the actual times, and create a log-log plot to check the algorithm's complexity.