Skip to content

General code for modelling of behaviour, primarily in learning & decision-making tasks

License

Notifications You must be signed in to change notification settings

the-wise-lab/behavioural-modelling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computational models of learning and decision-making

Tests Documentation Python

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:

  1. Defining a model.
  2. Simulating data from that model for multiple trials and multiple subjects.
  3. Performing model fitting based on this.

This package is intended to perform step (1) only.

About

General code for modelling of behaviour, primarily in learning & decision-making tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages