Skip to content
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

Fixing FilterNet behavior for frame_rate != 1000.0 #375

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

shixnya
Copy link
Collaborator

@shixnya shixnya commented Jun 26, 2024

Fixing FilterNet's behavior when the frame_rate is not 1000 Hz.

Previously, firing rates were not normalized correctly and were proportional to the frame_rate. This behavior is now fixed. You can expect the same firing rate outcome with different frame_rate, up to the filter accuracy.

Note: The frequency of the filter's temporal kernel should define the frame_rate. For our LGN models, the peaks are as narrow as several milliseconds, so 1000 Hz frame rate is a reasonable default.

The corresponding tests were also fixed. The neurons with multiple receptive fields can come with firing rate offset for their transfer function. I think these won't work in the previous implementation (another reason that we were locked into 1000 Hz). Although this required updating the values in the unit test results, I think the new ones are correct.

Kael, I tend to leave verbose comments in the code to give some context. If you feel they are unnecessary, please feel free to delete them.

@shixnya shixnya requested a review from kaeldai June 26, 2024 21:27
@kaeldai kaeldai merged commit b1ebdf1 into AllenInstitute:develop Aug 29, 2024
5 checks passed
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.

2 participants