graduation
Object that implement Graduation criteria to move between different tasks in a protocol.
Classes:
|
Base Graduation object. |
|
Graduate stage based on percent accuracy over some window of trials. |
|
Graduate after doing n trials |
- class Graduation(id: Optional[str] = None)[source]
Bases:
autopilot.root.Autopilot_Object
Base Graduation object.
All Graduation objects need to populate PARAMS, COLS, and define an update method.
Attributes:
list of parameters to be defined
list of any data columns that this object should be given.
Methods:
update
(row)- Parameters
:class:`~tables.tableextension.Row` -- Trial row
- class Accuracy(threshold=0.75, window=500, **kwargs)[source]
Bases:
autopilot.tasks.graduation.Graduation
Graduate stage based on percent accuracy over some window of trials.
- Parameters
threshold (float) – Accuracy above this threshold triggers graduation
window (int) – number of trials to consider in the past.
**kwargs – should have ‘correct’ corresponding to the corrects/incorrects of the past.
Attributes:
list of parameters to be defined
list of any data columns that this object should be given.
Methods:
update
(row)Get 'correct' from the row object.
- class NTrials(n_trials, current_trial=0, **kwargs)[source]
Bases:
autopilot.tasks.graduation.Graduation
Graduate after doing n trials
- Variables
counter (
itertools.count
) – Counts the trials.- Parameters
n_trials (int) – Number of trials to _graduate after
current_trial (int) – If not starting from zero, start from here
**kwargs
Attributes:
list of parameters to be defined
Methods:
update
(row)If we're past n_trials in this trial, return True, else False.