Giter Club home page Giter Club logo

nupic-js's Introduction

nupic-js

Build Status

A port of NuPIC to JavaScript

Usage:

git clone [email protected]:iandanforth/nupic-js.git
cd nupic-js
node webserver.js
[In Chrome]
http://localhost:8000/examples/index.html

Things to play with:

Local vs Global Topologies

The example (examples/index.html) defaults to using small receptive fields for each column. Modify the instantiation of the spatial pooler so that the receptive fields cover the whole input.

Local vs Global Inhibition

The default is local inhibition, turn on global inhibition and increase the numActiveColumnsPerInhArea to something like 5.

Alternate input image

Find another 128x128 image and use it instead of examples/images/Image2.png. The example uses the red channel of the image only.

Development Notes:

  • The temporal pooler is not implemented.
  • The code is in no way optimized. It is intended primarily for explanitory visualizations which only require small networks.
  • The code is not well tested and where tested only in Chrome.
  • The spatial pooler is a direct port but has modifications -- Where modifications were made a note about the divergence was added to the source.
  • 2D Topology is supported, which is not true in either the cpp or py versions.

Major Divergences from CPP/PY

  • New constructor parameters expose previously internal variables and control points
  • 2D Topology is supported
  • Boosting is now a purely local column property
  • Bump up weak columns is not used, it doesn't make sense biologically.
  • The percentage of connected synapses on init is definite rather than an average
  • When you only have a few columns we spread them to evenly cover the input -- Note: There can still be gaps in coverage if your radius is too small.
  • Overlap scores support scalar inputs.

nupic-js's People

Contributors

iandanforth avatar jefffohl avatar rhyolight avatar

Watchers

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