Giter Club home page Giter Club logo

li_vanrossum_19's Introduction

li_vanrossum_19

This contains the simulation code to our paper, https://doi.org/10.7554/eLife.50804.

List of files perceptron code to produce the data for Figure 1 and can be edited to produce the data for the other figures related to the perceptron.

  • cperc.m: Octave file for simulating perceptron learning
  • runc.cc: For efficiency, the actual learning is done in this C code.
  • Makefile: compiles runc.cc

The Octave script runs multi-threaded using pararrayfun; replacing it with arrayfun will run single threaded. Conversion to Matlab should be straightforward and is left as an exercise.

List of multi-layer codes to produce Figure 4. Each panel in the figure has a specific code to generate its data, which then is plotted by a respective "MakePlot" Python code.

  • learning_rate.py: generating data for panel (a), and its plotting code is learning_rate_MakePlot.py
  • energy_vs_accuracy.py: for (b), the plotting code is energy_vs_accuracy_MakePlot.py
  • nHidden.py: for (c), the plotting code is nHidden_MakePlot.py
  • KleinFunction.py: this contains the function that conducts the back-propagation training, and is called by the Python codes above.

List of codes to produce the energy cost of learning by using D'Souza et al. (2010) learning rule (Figure 2-Figure 1 Supplement):

  • standalone_STDP.py: generating data
  • standaloneFunction.py: contains functions that are called by standalone_STDP.py
  • makeplot.py: for analysing the data and plotting the result.

li_vanrossum_19's People

Contributors

holingli avatar vrossum avatar elifeproduction avatar

Watchers

James Cloos 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.