Skip to content

simjega/nupic.cerebro2.server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cerebro 2 Server

Makes a CLA model's state history available to the Cerebro 2 client.

Installation

Requirements:

Install other requirements:

pip install -r requirements.txt

Install the Cerebro 2 Python library:

cd py
python setup.py install

Usage

First, patch your model:

// Assuming `model` is a CLA model you already have
from cerebro2.patcher import Patcher
Patcher().patchCLAModel(model)

You can also patch an SP or a TP directly:

// Assuming `sp` and `tp` are already defined
from cerebro2.patcher import Patcher
Patcher().patchSP(sp)
Patcher().patchTP(tp)

Then, after the model / SP / TP has through a number of iterations:

python server.py 9090

Finally, switch to nupic.cerebro2 to visualize your model / SP / TP.

Demos

See /demo.

Notes

  • By default, the model state history is saved to /tmp/cerebro2.

About

Makes NuPIC model state available to Cerebro 2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%