Giter VIP home page Giter VIP logo

sanity's Introduction

Sanity

A web-based visualization layer for HTMs.

It works with:

For original motivation see this blog post.

The Runner

See it in action in the online demos.

Sanity runs HTM models from the browser with interactive controls. The model state from recent timesteps is kept, so you can step back in time. You can inspect input values, encoded input bits, and the columns that make up cortical layers. Within a column you can inspect cells and their distal dendrite segments. Feed-forward and distal synapses can be shown.

Kept timesteps are shown in a row at the top of the display. Below that, the blocks represent input fields (squares) and layers of cortical columns (circles). Depending on the display mode, these may be shown in 2D grids from a single time step, or as one vertical line per timestep, allowing several time steps to be shown in series. Also, summarised time series are shown in the 'plots' tab.

Sanity can run HTM models:

  • Inside the browser
  • On a remote / localhost server

The Notebook

Sanity interactive visualizations are also available in notebook form, similar to IPython Notebook or Mathematica. It builds on Gorilla REPL.

The notebook:

  • Is a fun-filled way to drive and present HTM models
  • Is a launchpad for Sanity runners
  • Is built for blogging. Interactive graphics are saved as images in the state that you left them.

Some cool examples:

Usage

Get Leiningen first.

Clone Comportex, and install (this command installs to your local Maven repository, ~/.m2. Once we make a release this step will not be needed.):

cd comportex
lein install

Clone Sanity, and then build it:

cd sanity
lein do clean, cljsbuild once demos

Start a REPL:

lein repl

From the REPL, start a notebook:

(start-notebook)

You can now launch it in a web browser. The notebook will show you how to launch your own Sanity runner.

Online demos

To host the online demos locally, do a cljsbuild, as above.

Now open public/demos/*.html in a web browser. Each HTML page loads the corresponding model defined in examples/demos/sanity/demos/.

Hello

License

Copyright © 2015-2016 Marcus Lewis and Felix Andrews

Copyright © 2014 Felix Andrews

Distributed under your choice of

sanity's People

Contributors

floybix avatar mrcslws avatar fergalbyrne avatar smee avatar

Watchers

James Cloos avatar eric o 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.