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-10-29 14:53:33.898 INFO     [training.py:289]
SWC_055 : ready4ephysrig
Session dates=['2020-10-28', '2020-10-27', '2020-10-26'], Perf easy=[0.82, 0.79, 0.88], N trials=[1033, 1041, 990]
Psych fit over last 3 sessions (20): bias=-22.87, thres=8.49, lapse_low=0.49, lapse_high=0.07
Psych fit over last 3 sessions (80): bias=-19.29, thres=17.67, lapse_low=0.16, lapse_high=0.26
Median reaction time at 0 contrast over last 3 sessions = 0.9
2020-10-29 14:53:41.193 INFO     [training.py:279]
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-10-29 14:53:49.160 INFO     [training.py:279]
DY_017 : in training
Session dates=['2020-10-28', '2020-10-27', '2020-10-26'], Perf easy=[0.93, 0.93, 0.9], N trials=[508, 544, 390]
Psych fit over last 3 sessions: bias=-19.26, thres=26.68, lapse_low=0.13, lapse_high=0.0
Median reaction time at 0 contrast over last 3 sessions = 3.33
2020-10-29 14:53:56.661 INFO     [training.py:279]
DY_019 : trained 1a
Session dates=['2020-10-28', '2020-10-27', '2020-10-26'], Perf easy=[0.87, 0.9, 0.89], N trials=[408, 409, 276]
Psych fit over last 3 sessions: bias=2.28, thres=14.79, lapse_low=0.13, lapse_high=0.09
Median reaction time at 0 contrast over last 3 sessions = 3.88