Skip to content
Numenta Platform for Intelligent Computing PyTorch libraries
Python Shell
Branch: master
Clone or download
lscheinkman Merge pull request #51 from lscheinkman/fix_sparse_weights_hooks
Forward hooks are ignored when calling the forward method
Latest commit f453d54 Nov 18, 2019

Numenta Platform for Intelligent Computing PyTorch libraries


This library integrates selected neuroscience principles from Hierarchical Temporal Memory (HTM) into the pytorch deep learning platform. The current code aims to replicate how sparsity is enforced via Spatial Pooling, as defined in the paper How Could We Be So Dense? The Benefits of Using Highly Sparse Representations.

For detail on the neuroscience behind these theories, read Why Neurons Have Thousands of Synapses, A Theory of Sequence Memory in Neocortex. For a description of Spatial Pooling in isolation, read Spatial Pooling (BAMI).

nupic.torch is named after the original HTM library, the Numenta Platform for Intelligent Computing (NuPIC).

Interested in contributing?


To install from local source code:

python develop

Or using conda:

conda env create


To run all tests:

python test


We've created a few jupyter notebooks demonstrating how to use nupic.torch with standard datasets. You can find these notebooks in the examples/ directory or if you prefer you can open them in Google Colab and start experimenting.

Having problems?

For any installation issues, please search our forums (post questions there). Report bugs here.

You can’t perform that action at this time.