-
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
Enh/adaptive kernel #462
Enh/adaptive kernel #462
Conversation
Adapted from 'ssvkernel' [email protected]:shimazaki/AdaptiveKDE.git
Hello @essink! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
todo
|
Stale, feel free to reopen if this project is continued. |
This pull request arose from #461
While investigating the issue, it seemed reasonable to restructure the code, such that intermediate results are easily accessible. A look into the originating package AdaptiveKDE showed, that the existing elephant code of estimating one fixed optimal kernel bandwidth (sskernel) could be easily extended cover the adaptive case (ssvkernel).
To avoid code duplications both cases were integrated into a class called
KernelBandwidth
.(See original publication Shimazaki, H. & Shinomoto, S. Kernel bandwidth optimization in spike rate estimation. J Comput Neurosci 29, 171–182 (2010). for details)
Open TODOs:
optimal_kernel_bandwidth
function. But there is definitely need to check this systematically!elephant.statistics.instantaneous_rate
function