Giter Club home page Giter Club logo

brian2stdpmnist's Introduction

Brian 2 version source code for paper "Unsupervised Learning of Digit recognition using STDP"

This small project is to translate Brian 1 code from Paper "Unsupervised learning of digit recognition using spike-timing-dependent plasticity" written by PU Diehl to Brian 2 version.

Prerequisite

  1. Brian 2
  2. MNIST datasets, which can be downloaded from http://yann.lecun.com/exdb/mnist/.
    • The data set includes four gz files. Extract them after you downloaded them.

Testing with pretrained weights:

  1. Run the main file "Diehl&Cook_spiking_MNIST_Brian2.py". It might take hours depending on your computer
  2. After the previous step is finished, evaluate it by running "Diehl&Cook_MNIST_evaluation.py".

Training a new network:

  1. modify the main file "Diehl&Cook_spiking_MNIST_Brian2.py" by changing line 214 to "test_mode=False" and run the code.
  2. The trained weights will be stored in the folder "weights", which can be used to test the performance.
  3. In order to test your training, change line 214 back to "test_mode=True".
  4. Run the "Diehl&Cook_spiking_MNIST_Brian2.py" code to get the results.

brian2stdpmnist's People

Contributors

mrahtz avatar zxzhijia avatar karthisrinivasan 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.