Please cite the accompanying paper: Constantino, S.M., Daw, N.D. Learning the opportunity cost of time in a patch-foraging task. Cogn Affect Behav Neurosci 15, 837–853 (2015). https://doi.org/10.3758/s13415-015-0350-y
Hello! This repository contains the patch-foraging task code from "Learning the opportunity cost of time in a patch-foraging task".
- Download the project
git clone https://github.com/sarac/patch-foraging.git- Create and activate the environment with dependencies. We will use conda here:
conda env create -f environment.yml
conda activate expcode- Create a data folder to save the data and run the experiment
mkdir ../data
cd treeExp
python main.py -w -d -i -c madFor questions/comments, please contact Sara Constantino at sara.constantino@gmail.com.