Git Product home page Git Product logo

rustichini2015's Introduction

Rustichini2015

Reproduction of "A neuro-computational model of economic decisions"

Install

Requires Python 3.5 or higher. Tested on Linux and macOS.

pip install -r requirements.txt

To produce and manipulate figures, you will also need to install PhantomJS:

npm install -g phantomjs

And Inkscape and imagemagick. In macOS, with Homebrew:

brew cast install inkscape
brew install imagemagick

Generating graphs

In the notebooks/ folder, you can run:

python fig4_data.py
python fig5_data.py
python fig6_data.py

This will precompute the data necessary to compute the graphs. Alternatively, you can run the notebooks and the data will be computed as necessary.

rustichini2015's People

Contributors

benureau avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

benureau afcarl

rustichini2015's Issues

Model as a class

The model should be contained in a class, so that we can easily instantiate independent models in the same script.

Firing rate CJ cells

capture d ecran 2017-05-01 a 18 55 43
capture d ecran 2017-05-01 a 18 56 51
When I test the code with one trial, I get very high firing rate of CJ quickly.
At t = 0.002s, the firing rate is already at ~16 spikes/s.
And at t= 0.0055s, the firing rate exceeds 166 spikes/s.
Looking at phi (equation 6), at t = 0.002s, I have phi ~ 57,55.
In the equation, the only variable is I_syn, so I look at it.
All the terms of I_syn are low compared to I_ampa_ext (equation 7).
But I_ampa_ext is determined by a constant term and the white noise, that is negligible.

Would there be some errors in the code units?

Unit tests

The code should have unit tests, so that we can quickly see if a change in the code translate into a change of behavior. This is especially important when we want to do changes that should not effects on the code.

Orientation of graphs

Orientation of axes may be change to fit with those of the article.
Example from the figure 4 :
graph 4b

Repeated code

The cj_b_cells and cj_a_cells function are identical, save for print statements. Only one of them should exist.

Abscissa of graph C, G and K of figure 4

Find a way to find the corresponding (quantity of juice A, quantity of juice B) on the abscissa for each firing rate on the ordinate for the 3e column of the figure 4.
Example of abscissa from the figure 4C :
fig 4c

Firing rate of CJ and CV cells too high

capture d ecran 2017-05-10 a 16 08 42
These are the graphs I should obtain with a firing rate that is stable between 3 and 4 spikes/s before the offer and that is under ~25 spikes/s after the offer for CJ cells.

fig 4e 4000_1
But before the offer I obtain a firing rate between 3 and 4 spikes/s but after the offer I obtain a firing rate that can go until 34 spikes/s.

fig 4i 4000_1
Concerning CV cells, the firing is stable at ~9,5 spikes/s instead of ~11 spikes/s before the offer and after the offer it can rise until ~16 spikes/s instead of ~18 spikes/s.

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.