Code for an implementation of the Dehaene and Changeux's model of Wisconsin Card Sorting Test (1991).
Model adaptated from Dehaene and Changeux model (1) , using neural networks, to perform Wisconsin Card Sorting Test and modellize flexibility of decision making. (DehaeneChangeux.py) The Statistics.py allows to launch the DehaeneChangeux.py script 500 times and to compute statistical parameters as the ones in the original paper.
References
(1) Dehaene, S., & Changeux, J. P. (1991). The Wisconsin Card Sorting Test: Theoretical analysis and modeling in a neuronal network. Cerebral cortex, 1(1), 62-79.
How to use:
python DehaeneChangeux.py
python Statistics.py
Numpy and Matplotlib libraries required.
Creation of a directory named "activitiesPlot" where plots of activities are saved. Plots are rewrited when Statistics is relaunched.