iblrig.base_choice_world.TrainingChoiceWorldSession

Inheritance diagram of TrainingChoiceWorldSession

class iblrig.base_choice_world.TrainingChoiceWorldSession[source]

The TrainingChoiceWorldSession corresponds to the first training protocol of the choice world task. This protocol has a complicated adaptation of the number of contrasts (embodied by the training_phase property) and the reward amount, embodied by the adaptive_reward property.

TrialDataModel

alias of TrainingChoiceWorldTrialData

__init__(training_phase=-1, adaptive_reward=-1.0, adaptive_gain=None, **kwargs)[source]
check_training_phase()[source]

Check if the mouse is ready to move to the next training phase.

compute_performance()[source]

Aggregate the trials table to compute the performance of the mouse on each contrast.

get_subject_training_info()[source]

Get the previous session’s according to this session parameters and deduce the training level, adaptive reward amount and adaptive gain value.

Returns:

training_info – Dictionary with keys: training_phase, adaptive_reward, adaptive_gain

Return type:

dict

next_trial()[source]
show_trial_log(extra_info=None, log_level=20)[source]
Parameters:
property default_reward_amount
protocol_name = '_iblrig_tasks_trainingChoiceWorld'
property stimulus_gain: float