GithubHelp home page GithubHelp logo

lacerbi / changeprob Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 1.0 62.92 MB

Human Online Adaptation to Changes in Prior Probability

License: MIT License

MATLAB 91.87% C 6.37% Shell 1.76%
bayesian-inference change-point-detection psychophysics modeling data

changeprob's Introduction

Human Online Adaptation to Changes in Prior Probability

This repository accompanies the article by Norton et al. (2019) [1]. 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 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 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)

License

This code is released under the terms of the MIT License.

changeprob's People

Contributors

ehnorton avatar lacerbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

weijimalab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.