Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lacerbi/changeprob
Human Online Adaptation to Changes in Prior Probability
https://github.com/lacerbi/changeprob
bayesian-inference change-point-detection data modeling psychophysics
Last synced: 23 days ago
JSON representation
Human Online Adaptation to Changes in Prior Probability
- Host: GitHub
- URL: https://github.com/lacerbi/changeprob
- Owner: lacerbi
- License: mit
- Created: 2016-09-15T15:26:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T20:57:33.000Z (about 5 years ago)
- Last Synced: 2024-03-29T21:20:25.427Z (8 months ago)
- Topics: bayesian-inference, change-point-detection, data, modeling, psychophysics
- Language: MATLAB
- Homepage:
- Size: 61.4 MB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Human Online Adaptation to Changes in Prior Probability
This repository accompanies the article by Norton et al. (2019) [[1](https://github.com/lacerbi/ChangeProb/blob/master/README.md#reference)].
It includes human subjects' data and the code used for fitting and comparing the models reported in the paper.**Data:** The data are stored in the `./data` subfolder, in separate `.mat` files for each of the `N = 11` subjects used in the paper. Each file contains a `data` struct, whose fields contain information about the sessions. Each struct contains information for both the covert-criterion task and for the overt-criterion task (800 trials each).
**Models:** All model files are stored in the `./matlab` subfolder. The main file to run a model fit is `changeprob_runfit.m`. See the [function description](https://github.com/lacerbi/ChangeProb/blob/master/matlab/changeprob_runfit.m) for more information about the inputs and outputs. An example run on one dataset and model (identified by model and data id `1`) can be obtained with:
```
> changepoint_runfit(1,'marglike');
```
Example scripts to run the model fits on a computer cluster (using the [Slurm](https://slurm.schedmd.com/) workload manager) are in the `./scripts` subfolder.## Reference
1. Norton EH, Acerbi L, Ma WJ, Landy MS (2019) Human online adaptation to changes in prior probability. *PLoS Comput Biol* 15(7): e1006681. https://doi.org/10.1371/journal.pcbi.1006681 ([link](https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1006681))
### License
This code is released under the terms of the [MIT License](https://github.com/lacerbi/ChangeProb/blob/master/LICENSE.txt).