ReadySetGo#
- class braintools.cogtask.ReadySetGo(t_ready=Quantity(500., 'ms'), t_set=Quantity(500., 'ms'), t_interval=(Quantity(400., 'ms'), Quantity(800., 'ms')), t_response_max=Quantity(1000., 'ms'), gain=1.0, **kwargs)[source]#
Ready-Set-Go timing task.
Agent must produce an interval matching a measured interval. Ready cue, then Set cue after interval T, then agent produces interval T.
Structure: Ready >> Interval >> Set >> Production
- Parameters:
t_ready (
Quantity) – Ready cue duration (default: 500ms).t_set (
Quantity) – Set cue duration (default: 500ms).t_interval (
tuple) – (min, max) for measured interval (default: (400ms, 800ms)).t_response_max (
Quantity) – Maximum production time (default: 1000ms).gain (
float) – Production = gain * measured interval (default: 1.0).seed (int, optional) – Random seed.
Examples
>>> task = ReadySetGo() >>> X, Y, info = task.sample_trial(0)
- define_features()[source]#
Define input and output features.
Override in subclass for class-based task definition.
- Return type:
- Returns:
input_features (Feature or FeatureSet) – Input feature definitions.
output_features (Feature or FeatureSet) – Output feature definitions.