Coder Social home page Coder Social logo

heydarshahi / biological_learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dimakrotov/biological_learning

3.0 0.0 1.0 34.7 MB

Example of "biological" learning for MNIST, CIFAR, and more.

License: Apache License 2.0

Jupyter Notebook 100.00%

biological_learning's Introduction

Biological Learning

A GPU implementation of Biological Learning. This is a fork from this repo by D. Krotov and J. Hopfield.

MNIST CIFAR-10 Real/Fake Faces

Structure

Notebooks:

Installation

We create a conda environment using environment.yml. Feel free to change the package versions. To install the environment:

conda env create -f environment.yml
conda env list 
conda activate hebbian 

Note: To get the best of GPU functionalities, you should have a cuda-compatible gpu. Please change the cudatoolkit, tensorflow, and pytorch versions to match your GPU settings.

Running the Code

To run any of the notebooks, simply run:

jupyter notebook [NOTEBOOK NAME]

Results

MNIST:

N_hid BIO Validation Accuracy BP Validation Accuracy
200 95.7 97.9
500 96.5 97.9
1000 97.2 98.1
2000 97.8 98.15
4000 98.1 98.29
8000 98.1 98.3
BIO vs. BP Accuracies for MNIST BIO Weights Visualization

CIFAR-10:

N_hid BIO Validation Accuracy BP Validation Accuracy
1000 46.5 54.2
2000 49.0 54.2
4000 50.3 54.6
8000 52.0 55.0
BIO vs. BP Accuracies for CIFAR BIO Weights Visualization

Resources

Example of "biological" learning for MNIST based on the paper Unsupervised Learning by Competing Hidden Units by D.Krotov and J.Hopfield. If you want to learn more about this work you can also check out this lecture from MIT's 6.S191 course.

Author and License

(c) 2018 Dmitry Krotov -- Apache 2.0 License

This fork is the work of Yana Kuznetcov and Amin Heydarshahi and was initially developed as the course project for the graduate class Computational Visual Perception, instructed and supervised by Prof. Dr. Bernhard Egger and Dr. Patrick Krauß.

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.