Open hanhou opened 6 months ago
I think it makes more sense to exclude ignored trials because motivation may be orthogonal to their ability to forage, which can be captured by finish_rate
and foraging_efficiency_in_finished_trials
separately.
I agree to exclude all autowater and ignored trials.
I can't seem to find where the foraging efficiency is calculated.
I tracked down auto_train_manager, but I sill don't see an online calculation here.
The latest code is here, and here is how I compute it offline.
Although I'm going to move this function to this "basic analysis" shared repo: https://github.com/AllenNeuralDynamics/aind-dynamic-foraging-basic-analysis
OK. @hanhou if you can let me know once you move the function then I'll fix the bug. I have some other Stan issues that I'll work on in the meantime.
OK. @hanhou if you can let me know once you move the function then I'll fix the bug. I have some other Stan issues that I'll work on in the meantime.
Yes, I just merged the PR.
When computing foraging efficiency, we should exclude all autowater trials and ignored trials. @XX-Yin