Giter VIP home page Giter VIP logo

unsupervised_bio_classifier's Introduction

PyTorch Implementation of “Unsupervised learning by competing hidden units” MNIST classifier, combining with Feedback alignment.

This reprository is a PyTorch implementation of the paper "Unsupervised learning by competing hidden units". By Dmitry Krotov and John J. Hopfield.

And a simple implementation of "Random synaptic feedback weights support error backpropagation for deep learning" by Timothy P. Lillicrap, Daniel Cownden, Douglas B. Tweed & Colin J. Akerman.

We also very brielfy explore adversarial robustness of models implemented with this method.

Environment

torch 2.1 + cu118

python 3.9

Explanation

  • bioLearning.ipynb: comparison of different CNN, Bio net, and Feedback alignment architecture.
  • fa_linear.py: implementation of the feedback alignment function
  • bio_learn.py: core codes implement the different architecture, detailed can be found in inline comments
  • 0030_adverserial_1.ipynb: other metric comparison

unlisted files are for test use.

Reference code

https://github.com/gatapia/unsupervised_bio_classifier

https://github.com/L0SG/feedback-alignment-pytorch

unsupervised_bio_classifier's People

Contributors

wrencanfly 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.