Git Product home page Git Product logo

htm.javascript's Introduction

htm.JavaScript

This is a port of the numenta/nupic port htm.java to JavaScript.

##Disclaimer This project is work in progress and subject to frequent changes. Sometimes it might even be broken.

Goal

Run NuPIC in a browser (For now Firefox only, due to extensive use of the ECMAScript 6 features such as Set and Map data structures)

Usage

Clone or download ZIP

Alternative 1:

Choice of loading qt_interactive.html from the file system or via web server into Firefox (for details with respect to web server usage see Alternative 2). No web workers are used, so debugging with e.g. Firebug is supported. No browser freeze due to input presentation. This alternative is not available vor HelloSP.

Alternative 2:

  1. Unpack into the web root folder of your favorite web server. With XAMPP the result should look like

    • htdocs/foo/bar/baz/nupic/...
    • ...
    • htdocs/foo/bar/baz/sp.html
    • htdocs/foo/bar/baz/qt.html (depreceated)
  2. Start the web server

  3. Load http://localhost/foo/bar/baz/sp.html or http://localhost/foo/bar/baz/qt.html (depreceated) with Firefox

This alternative uses web workers to avoid browser freeze. Drawback: web workers make debugging difficult.

Alternative 3:

Load sp_dbg.html or qt_dbg.html (depreceated) from the file system without using a web server. Allows the use of a debugger. This variant is closest to the Java original. Drawback: Browser freezes.

Currently htm.JavaScript reproduces both the "HelloSP" (sp.html or sp_dbg.html) and "QuickTest" (qt_interactive.html, qt.html (depreceated), qt_dbg.html (depreceated)) demos from htm.java which illustrate SDRs, spatial pooling and temporal memory.

htm.javascript's People

Contributors

chessweb01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rhyolight

htm.javascript's Issues

Status

hi,
cool port! I would be interested in a JS HTM-port soonish. I've noticed the last activity was some 7mo ago, so I'd like to know what is the status of the project? And if we wanted to pick up where you left, could you write up some document what features you've reached? What were the known problems to fix, etc?
Thanks a bunch!

Distribution

Could this project be packed and distributed over npm or bower? So it's easily deployable.

Experiment with automated conversion to JavaScript

This issue relates to the #2 of the project.
One option, even though definitely not the cleanest, would be to use an automated conversion tool to JavaScript from a source language (python, java).

  • the disadvantage: code will be a mess
  • advantage: low on resources, able to keep up-to-date with the main development (which is still active)
  • depending on interest in JS version development, and availability of man-hours, this could be a viable alternative to kick-start a HTM on JS for our applications.

We could port from:

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.