GithubHelp home page GithubHelp logo

htm-community / htm-school-viz Goto Github PK

View Code? Open in Web Editor NEW
59.0 11.0 27.0 1.98 MB

Visualizations supporting HTM School

Home Page: https://www.youtube.com/playlist?list=PL3yXMgtrZmDqhsFQzwUC9V8MeeVOQ7eZ9

License: MIT License

HTML 4.49% JavaScript 93.74% CSS 1.76%
htm-school visualizations htm

htm-school-viz's Introduction

Work In Progress!

This project is under very heavy development and will change drastically with no warning.

HTM School Visualizations

These are supporting visualizations for the HTM School educational video series.

Here is a guide to running the complete HTM School Visualization Suite.

Stack

This is a web application with a Nodejs server and a JavaScript frontend.

Server

Client

  • Lodash
  • Bootstrap
  • jQuery UI
  • Handlebars
  • Moment

Dependencies

Generate static content from cell-viz

There are 2 options:

  • Permanent link: ln -s static/js/third/dyson-bundle.js YOUR_PATH/cell-viz/out/dyson.js This is a permanent solution, just need to update the webpack in cell-viz later on.
  • Generate the file: go to cd YOUR_PATH/cell-viz/, generate: webpack --output-path OTHER_PATH/htm-school-viz/static/js/third --output-filename dyson-bundle.js

Install

Install npm requirements:

npm install

Run

REQUIREMENT: This server depends on the nupic-history-server 0.0.1 running on PORT 8080. You must have that server running for any spatial pooler visualizations to work (ep. 7+).

Now start this server on any port you like:

npm start 8001

View on http://localhost:8001/.

Episodes

Notes about the episodes.

  • Ep. 10, ep. 11: need to generate the webpack static content from cell-viz
  • Ep. 10: You appear too close to the scene, press s to zoom-out. Currently works only in Chrome/Chromium browsers

htm-school-viz's People

Contributors

breznak avatar itsibitzi avatar lastmeta avatar rhyolight avatar rikkertkoppes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

htm-school-viz's Issues

Code for Epizodes 10, 11 not yet published?

Even though the videos are already online, Matt, will you update the code to play with them?

For ep.10, I get to choose a moving gif, and that's it.
For 11 there's any empty window.

Running certain episodes fail with 404 error

I have downloaded the numenta/nupic docker and installed nodeJS 8.x on it. After running npm install and then npm start 8001, I can access the site at localhost:8001, but when I click on Episode 7 I never get past the loading GIF, and I get the error in the console:

POST http://localhost:8001/_proxy/_sp/ 404 (Not Found)

Some of the other episodes work fine, example: Episode 6. The 404 error returned is returned by Nginx.

Can't get samples for episode 8 to load

I can get all the other samples to load and run just fine however. I've attached a screenshot that shows the console error message. Something about a _proxy call failing.

screen shot 2016-10-04 at 11 20 39 am

Fails to run for Ep. 7+

Related to #9 - but not the same issue.

  • I fixed redis to run on expected port 8000 htm-community/nupic-history-server#9
  • there I also had to update the dependencies
  • you've used some local build 0.5.7.dev0 and 0.4.13.dev0, which are not available
  • tested with both: stable (0.5.7 and 0.4.13), and latest (just nupic, nupic.bindings in requirements)

And I get the same error:

(schools) mmm@mmm-U2442:/mnt/store/devel/HTM/htm_schools/htm-school-viz$ npm start 8080

> [email protected] start /mnt/store/devel/HTM/htm_schools/htm-school-viz
> node index.js "8080"

htm-school-viz running on http://localhost:8080
Error: Parse Error
    at Error (native)
    at Socket.socketOnData (_http_client.js:304:20)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at TCP.onread (net.js:523:20)

The screen is stuck on a "loading" circle

npm start error: "sh: 1: node: not found"

Hi,
I installed the nupic-history-server and have it running on port 8000 with the command "redis-server --port 8000". Then I attempted to start the htm-school-viz with "npm start 8080". The firewall is disabled and I installed the dependencies with "npm install --user".
The npm error log follows:

npm-debug.log.txt

Help with 2D Topology

@rhyolight Hello Matt,

sorry for reaching for you this way, I couldn't get in touch on Gitter..
Could you please help me with 2D spatial pooler in C++? Similar as you've been using in the topology episodes here.

Say I have input board 100x100, and SP 32x32, I want to select some input positions ({{99,0}, {0,0}, {0,99}}) and then let the SP compute. I know how to make a 2D SP:

SpatialPooler sp{vector<int>{100, 100} /*input dims*/, vector<int>{32, 32} /*cols*/,...};

But I don't know how to format the input 1D vector for compute(), it should be a dense, binary 1d vector, but I don't know how the 2d is translated to 1d here.
Thank you very much!

Convert python server to node.js express app

I started this project with a Python server so I could run NuPIC on the server. Since then, I have moved all that to another server, so this project can be converted to 100% JS.

This task is to remove server.py and replace with index.js that does exactly the same thing.

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.