Get subject training status via ONEΒΆ

Use ONE to get the training status of a chosen subject or all subjects within a lab. Training status is computed based on performance over latest 3 sessions (default) or last 3 sessions before a specified date.

[1]:
import brainbox.behavior.training as training
from oneibl.one import ONE
one = ONE(silent=True)
# Get training status of a specific subject
training.get_subject_training_status('SWC_055', one=one)

# Get training status of a specific subject on a chosen date
training.get_subject_training_status('SWC_055', date='2020-09-01', one=one)

# Get training status of all mice within a lab
# (N.B. only looks for alive and water restricted subjects)
training.get_lab_training_status('danlab', one=one)
Connected to https://alyx.internationalbrainlab.org as mayo
2020-12-16 18:26:49.605 INFO     [training.py:290]
SWC_055 : trained 1b
Session dates=['2020-11-25', '2020-11-24', '2020-11-23'], Perf easy=[0.83, 0.89, 0.86], N trials=[882, 860, 1000]
Psych fit over last 3 sessions (20): bias=-17.87, thres=15.65, lapse_low=0.26, lapse_high=0.13
Psych fit over last 3 sessions (80): bias=0.59, thres=20.55, lapse_low=0.05, lapse_high=0.45
Median reaction time at 0 contrast over last 3 sessions = 0.44
2020-12-16 18:26:56.828 INFO     [training.py:280]
SWC_055 : in training
Session dates=['2020-09-01', '2020-08-31', '2020-08-28'], Perf easy=[0.76, 0.78, 0.76], N trials=[985, 993, 794]
Psych fit over last 3 sessions: bias=-23.74, thres=26.52, lapse_low=0.18, lapse_high=0.25
Median reaction time at 0 contrast over last 3 sessions = nan
2020-12-16 18:27:04.667 INFO     [training.py:280]
DY_017 : in training
Session dates=['2020-11-20', '2020-11-18', '2020-11-17'], Perf easy=[0.74, 0.72, 0.83], N trials=[230, 370, 224]
Psych fit over last 3 sessions: bias=-22.68, thres=37.33, lapse_low=0.31, lapse_high=0.06
Median reaction time at 0 contrast over last 3 sessions = 5.78
2020-12-16 18:27:12.362 INFO     [training.py:280]
DY_019 : trained 1a
Session dates=['2020-11-20', '2020-11-18', '2020-11-17'], Perf easy=[0.92, 0.94, 0.94], N trials=[342, 314, 358]
Psych fit over last 3 sessions: bias=2.17, thres=12.93, lapse_low=0.02, lapse_high=0.16
Median reaction time at 0 contrast over last 3 sessions = 2.93