Computational models of learning and decision-making
This repository contains a selection of useful functions for modelling of behaviour in learning and decision-making tasks.
All of these functions are written on top of JAX. As a result, this code may not work on Windows unless using WSL.
Installation
You can install the package directly from GitHub using pip:
pip install git+https://github.com/the-wise-lab/behavioural-modelling.git
Alternatively, clone the repository and run pip install . -e from the root directory.
For example:
git clone https://github.com/the-wise-lab/behavioural-modelling.git
cd behavioural-modelling
pip install -e .
This will install an editable version of the package, meaning that you can modify the code and the changes will be reflected in the package.
It can then be used as a regular Python package:
from behavioural_modelling.decision_rules import softmax
Documentation
Documentation can be found here.
Examples
Example Jupyter notebooks can be found in the examples directory.
General principles
The intention of this package to provide functions implementing specific behavioural models, not for fitting these models. The idea is that these functions are modular and can be used in a variety of contexts, including fitting, simulation, and analysis.
A scenario case might involve:
- Defining a model.
- Simulating data from that model for multiple trials and multiple subjects.
- Performing model fitting based on this.
This package is intended to perform step (1) only.