-
Notifications
You must be signed in to change notification settings - Fork 67
476 template matching #482
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything is looking great! I've left a few suggestions on the docstring and incorporating a prior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few last docs and grammar suggestions. Also, do you think we should rename the calcium imaging tutorial? Right now it's "Computing calcium imaging tuning curves". We could make it more broad like "Analyzing calcium imaging data", similar to the head direction one
Co-authored-by: Sarah Jo Venditto <[email protected]>
Co-authored-by: Sarah Jo Venditto <[email protected]>
Co-authored-by: Sarah Jo Venditto <[email protected]>
Co-authored-by: Sarah Jo Venditto <[email protected]>
Co-authored-by: Sarah Jo Venditto <[email protected]>
This implements
decode_template
, as a counterpart todecode_bayes
.The template matching algorithm considers the tuning curves as population vector templates for every feature bin.
To decode, we compute the distance to all feature bin population vectors, normalize between 0 and 1 to get a distribution, and we return the highest one as the decoded bin.