Coder Social home page Coder Social logo

hasha / cosmo2017 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drugowitschlab/cosmo2017

0.0 1.0 0.0 18.21 MB

Data and scripts for the CoSMo 2017 summer school

License: BSD 3-Clause "New" or "Revised" License

MATLAB 54.61% C++ 42.21% Objective-C 0.25% Python 0.81% Makefile 0.24% M 1.89%

cosmo2017's Introduction

Scripts for CoSMo 2017 summer school

Notes by Jan Drugowitsch, July 2017

Datasets

phs_subj_id.mat: Palmer, Huk & Shadlen (2006) data
phs_data_README.txt: describes the format of phs_subj_id.mat files
rs_subj_id.mat: Roitman & Sahdlen (2002) data
rs_data_README.txt: describes the format of rs_subj_id.mat files

Behavioral data plots

plot_psych_chron.m: Plots chronometric / psychometric curves
plot_speed_accuracy.m: Plots chronometric / psychometric curve with RT median splits
plot_rt_quant.m: Generates RT quantile plots
plot_rt_dist.m: Plots RT distributions
plot_pcorrect_over_time.m: Plots how p(correct) changes over time

Fitting behavior

fit_psych_chron.m: Fits psychometric / chronometric curve with diffusion model
plot_fitted_rt_dists.m: Fits behavior with diffusion model and plots RT distributions

Decision-making models

collapse_gain.m: Script comparing rewards between constant and collapsing-bound DDMs
plot_fpt_vary_bound_example.m: Plots RT distribution examples for constant vs. collapsing bounds
fpt_moments.m: Returns the RT moments for given RT distributions
accum_evidence_reward.m: Plots expected reward for accumulating evidence
accum_evidence_discrete.m: Plots discrete-time evidence accumulation with point-wise prior
accum_evidence_continuous.m: Plots continuous evidence accumulation with point-wise prior
accum_evidence_gauss.m: Plots continuous evidence accumulation with Gaussian prior

Dynamic programming

dp_discretized_g.m: Returns a vector of discretized beliefs
dp_value_iteration_point_hyp.m: Performs value iteration to find value function for point-wise prior
dp_getvalues_gauss_hyp.m: Uses backwards induction to find value function for Gaussian prior
dp_g_trans_point_hyp.m: Returns the belief transition matrix for point-wise prior
dp_g_trans_gauss_hyp.m: Returns the belief transition matrix for Gaussian prior
dp_valueintersect.m: Interpolates the belief at which two value functions intersect plot_dp_bound_direct_maximization.m: Performs direct diffusion model reward maximization
plot_dp_valueintersect_point.m: Plots value function intersection for point-wise prior
plot_dp_valueintersect_gauss.m: Plots value function intersection for Gaussian prior
plot_g_trans_point_hyp.m: Plots belief transition matrix examples for point-wise prior
plot_g_trans_gauss_hyp.m: Plots belief transition matrix examples for Gaussian prior
plot_dp_diffusion_point.m: Plots optimal diffusion model example for point-wise prior
plot_dp_diffusion_gauss.m: Plots optimal diffusion model example for Gaussian prior
plot_const_bound_gauss.m: Plots bound in belief for constant-bounded DDM for Gaussian prior

cosmo2017's People

Contributors

jdrugo avatar

Watchers

 avatar

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.