Giter Club home page Giter Club logo

mouse_history_ddm's Introduction

Code to fit DDMs to behavioral data from IBL mice

Anne Urai, Leiden University, 2023 Questions? [email protected]


Requirements
  • install the iblenv for getting IBL data
  • install the hddmnn_env for fitting HDDMnn models. See here for a .yml environment file.
Instructions

conda activate iblenv

get_data.py # will grab data from IBL public server
preprocess_data.py # select good RTs to work with
figure1a_plot_behavior.py # plots basic things about the data
figure1b_choice_history.py # fits basic psychometric functions with history terms
figure1c_history_strategy.py

Then, on ALICE: sbatch hddmnn_submit.sh 0 0 (will activate hddmnn_env and submit an ALICE job) run several models on the same dataset: for m in {0..4}; do sbatch hddmnn_submit.sh 0 $m; done

And plot the results of these fits

figure2_hddm.py

mouse_history_ddm's People

Contributors

anne-urai 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.