Skip to content
Go to file


TensorTools is a bare bones Python package for fitting and visualizing canonical polyadic (CP) tensor decompositions of higher-order data arrays. Check out the documentation and examples/ folder for more detailed information.


From the command line run:

pip install git+

(You will need to have git installed for this command to work.)

Alternatively you can download the source code and install locally by running:

git clone
cd tensortools
pip install -e .


If you found this resource useful, please consider citing this paper.

  title    = "Unsupervised Discovery of Demixed, {Low-Dimensional} Neural
              Dynamics across Multiple Timescales through Tensor Component
  author   = "Williams, Alex H and Kim, Tony Hyun and Wang, Forea and Vyas,
              Saurabh and Ryu, Stephen I and Shenoy, Krishna V and Schnitzer,
              Mark and Kolda, Tamara G and Ganguli, Surya",
  journal  = "Neuron",
  volume   =  98,
  number   =  6,
  pages    = "1099--1115.e8",
  month    =  jun,
  year     =  2018,
You can’t perform that action at this time.