Giter Club home page Giter Club logo

bcpnn's Introduction

Bayesian Confidence Propagation Neural Network (BCPNN)

"A Bayesian Confidence Propagation Neural Network (BCPNN) is an artificial neural network inspired by Bayes' theorem: node activations represent probability ("confidence") in the presence of input features or categories, synaptic weights are based on estimated correlations and the spread of activation corresponds to calculating posteriori probabilities. It was originally proposed by Anders Lansner and Örjan Ekeberg at KTH." - Wikipedia

Implemented roughly following the architecture devised in "The Use of a Bayesian Neural Network Model for Classification Tasks", Anders Holst, 1997 [1].

The single-layered feedforward version can be used for classification tasks, while the recurrent version works as a CAM.

Usage

Instantiate classifier, then fit, and predict or predict_proba for classification. The API closely follows the method naming convention of sklearn's classifiers, and so should be straightforward to use for familiar users.

Dependencies

Mainly numpy + sklearn for its OneHotEncoder, and pytest for running tests. Run $ pip install -r requirements(_dev).txt to install.

Denoising demo

bcpnn's People

Contributors

mwielondek avatar

Stargazers

 avatar

Watchers

 avatar

bcpnn's Issues

Is there a detailed tutorial on how to use this code?

Hi Milo! Thank you for your great job! Especially when you showcase the results of Mnist dataset.

I am a beginner in BCPNN and have recently attempted to reproduction the classification and CAM tasks of BCPNN. How do I prepare data, train networks, and then perform inference?

Any suggestion will be appreciated! Thanks in advance!

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.