HierarchicalReasoning-v0

class neurogym.envs.hierarchicalreasoning.HierarchicalReasoning(dt=100, rewards=None, timing=None)[source]

Hierarchical reasoning of rules.

On each trial, the subject receives two flashes separated by a delay period. The subject needs to judge whether the duration of this delay period is shorter than a threshold. Both flashes appear at the same location on each trial. For one trial type, the network should report its decision by going to the location of the flashes if the delay is shorter than the threshold. In another trial type, the network should go to the opposite direction of the flashes if the delay is short. The two types of trials are alternated across blocks, and the block transtion is unannouced.

Reference paper

Hierarchical reasoning by neural circuits in the frontal cortex

Tags

perceptual, two-alternative, supervised

Supervised learning and analysis of this task

[Open in colab] [Jupyter notebook Source]

Reinforcement learning and analysis of this task

[Open in colab] [Jupyter notebook Source]

Sample run
../_images/HierarchicalReasoning-v0_examplerun.png