-
Notifications
You must be signed in to change notification settings - Fork 92
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
Fix kernels and statistics (instantaneous_rate & mean_firing_rate) #313
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Breaking changes:
Improvements:
boundary_enclosing_area_fraction
function of the Kernel base classboundary_enclosing_area_fraction
function of AlphaKernel class --> more than x100 speedup for the AlphaKernel --> the runtime of the tests decreased from 7 sec to 70 ms;median_index()
kernel function and added testsinstantaneous_rate()
mean_firing_rate()
, see Breaking changesNot done/Unsure:
test_rate_estimation_consistency()
had a test withtrim=True
. Testing withtrim=True
does not make sense, does it? - Becuse thex
axis is shorter (trimmed). Previously, it worked because of the incorrect estimation ofkernel.median_index()
. If I'm right, this is a perfect example of BUG x BUG = NO BUG paradigm in programming.mean_firing_rate
can easily support a list of spiketrains. Moreover, we can leverage the advantage of our parallel module here transparently for the user. I'm tempted to quickly do it in this PR, but it should be a separate topic._check_consistency_of_spiketrains()
is very strict and the requirements can be relaxedtau=sqrt(3)*sigma
and not justsigma
in RectangularKernel? - to enclose approx. the same PDF mass as in the rest of the kernels;instantaneous_rate()
todo (addressed in the last commits):Known issues:
Update
center_kernel
option ininstantaneous_rate()
function (fixes alpha kernel is not starting at zero #107)