Implementation of the rERP analysis reported in
Evaluating ERP data from
The code for the rERP analysis (Julia & R) is based on the implementation by Christoph Aurnhammer, found here.
15 GB free disk space
data (see release) must be downloaded and extracted in main project folder
Python (tested on 3.11.9)
Using conda, you can create a dedicated environment:
conda env create -f llm-surprisal-rerps.yml
Julia (tested on 1.9)
R (tested on 4.3.1)
GNU Make (optional)
From within code directory, to reproduce all results:
make analysis
This will take some time to run. Collection of surprisal values is excluded, since specifically the Llama-2 LLM (Leo13b) requires a lot of computational resources. Surprisal values are included in the stimulus data files (e.g. adbc23.csv), and can optionally be reproduced by running python 01_collect_surprisal -m [model_id] (which is not recommended to be run locally for Leo13b).
57 commits
R
48.3%
Julia
32.0%
Python
19.1%
Implementation of the rERP analysis reported in
Evaluating ERP data from
The code for the rERP analysis (Julia & R) is based on the implementation by Christoph Aurnhammer, found here.
15 GB free disk space
data (see release) must be downloaded and extracted in main project folder
Python (tested on 3.11.9)
Using conda, you can create a dedicated environment:
conda env create -f llm-surprisal-rerps.yml
Julia (tested on 1.9)
R (tested on 4.3.1)
GNU Make (optional)
From within code directory, to reproduce all results:
make analysis
This will take some time to run. Collection of surprisal values is excluded, since specifically the Llama-2 LLM (Leo13b) requires a lot of computational resources. Surprisal values are included in the stimulus data files (e.g. adbc23.csv), and can optionally be reproduced by running python 01_collect_surprisal -m [model_id] (which is not recommended to be run locally for Leo13b).
57 commits
R
48.3%
Julia
32.0%
Python
19.1%