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

decide how to calculate reward_rate #14

Open
matchings opened this issue Nov 27, 2021 · 1 comment
Open

decide how to calculate reward_rate #14

matchings opened this issue Nov 27, 2021 · 1 comment

Comments

@matchings
Copy link
Collaborator

mindscope_utilities.visual_behavior_ophys.data_formatting currently uses a method to calculate reward_rate from the SDK: https://github.com/AllenInstitute/AllenSDK/blob/master/allensdk/brain_observatory/behavior/trials_processing.py#L941

visual_behavior_analysis has a few different methods for calculating reward rate, and the one that is currently being used for most analyses is here: https://github.com/AllenInstitute/visual_behavior_analysis/blob/master/visual_behavior/data_access/loading.py#L483

We need to decide which of these we want to use for analysis that relies on mindscope_utilities

@matchings
Copy link
Collaborator Author

Note that the version of reward_rate calculated by the SDK takes the reward rate across change trials, then fills in each stimulus presentation in between changes with the value of reward_rate from the last change. This is probably not what we want to use.

@yavorska-iryna yavorska-iryna transferred this issue from AllenInstitute/mindscope_utilities Mar 20, 2023
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

No branches or pull requests

1 participant