Skip to content

Commit a63daf8

Browse files
authored
Update README.md
1 parent 0c5d875 commit a63daf8

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# Bayesian_Strategy_Analyisis_Python
22

3-
Taking the MATLAB toolbox for Bayesian strategy analysis and recreating it in Python
3+
Python toolbox for Bayesian analysis of behavioural strategies on choice tasks
4+
5+
(This is a Python port of https://github.com/Humphries-Lab/Bayesian_Strategy_Analysis_MATLAB)
6+
7+
Tested with: Python 3.9 onwards
8+
9+
[reference to pre-print to go here]
10+
11+
## Top-level scripts
12+
Two scripts demonstrate the main use of the Toolbox:
13+
1. Demonstrate_Bayesian_strategy_analysis.m: shows how to run the algorithm for a single strategy model
14+
2. Replicate_Figure1: replicates panels c, d, and e of Figure 1 in the paper, to demonstrate the full workflow: choosing strategies, computing p(strategy) for each, interpolating probabilities for Null trials, and then plotting the appropriate time-series of probabilities
15+
16+
## Modules
17+
- strategymodels.py contains functions that implement the strategy models
18+
19+
## Data
20+
- data.csv: data from Rat 2 of the Peyrache et al 2009 (Nat Neurosci) study of Y-maze performance (see pre-print for details)
21+
22+
## Folders
23+
- Functions/: the set of functions that implement the Bayesian algorithm, handle multiple strategies, and summarise the Beta distribution (MAP estimate, precision etc)
24+

0 commit comments

Comments
 (0)