Code for First Year Project.
An ACT-R agent plays the Iowa Gambling Task with a dual-route structure: a rational route that estimates each deck's value from experience, and an emotional modulator that scales the choice according to the losses each deck has produced. The modulator acts on the action, not on memory.
IGT.ipynb— notebook with the full analysis: sweeps, tables and figuresigt_model.py— the task, the agents and the emotional modulatorigt_analysis.py— running, scoring (P and Q indices) and plottingmodel.py,dmchunk.py— ACT-R declarative-memory implementation, from N. Taatgen's teaching materials, used unmodified
Running IGT.ipynb reproduces the sweeps and figures reported in the
project. The random seed is fixed (np.random.seed(0)) before each sweep, so
the reported runs are reproducible.
Requirements: Python 3 with numpy and matplotlib.