A web-based visualization layer for HTMs.
It works with:
For original motivation see this blog post.
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
Sanity interactive visualizations are also available in notebook form, similar to IPython Notebook or Mathematica. It builds on Gorilla REPL.
- 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:
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:
From the REPL, start a notebook:
You can now launch it in a web browser. The notebook will show you how to launch your own Sanity runner.
To host the online demos locally,
cljsbuild, as above.
public/demos/*.html in a web browser.
Each HTML page loads the corresponding model defined
- Gitter chat
- or email or github issues.
Copyright © 2015-2016 Marcus Lewis and Felix Andrews
Copyright © 2014 Felix Andrews
Distributed under your choice of
- the Eclipse Public License, the same as Clojure.
- the GNU Affero General Public Licence, Version 3, the same as NuPIC.