Skip to main content

Python implementation of the Tensor Maximum Entropy (TME)

Project description

TME

Python implementation of Tensor Maximum Entropy (TME)

Install:

pip install tensor-maximum-entropy

Usage example:

import numpy as np
import scipy.io
from tensor_maximum_entropy import TME

model_dim = 10

data = scipy.io.loadmat('./exampleData.mat')
dataTensor = data['dataTensor']

print(dataTensor.shape)
t = data['t']

mask = np.logical_and(t > - 50, t < 350)
TME(dataTensor, mask, model_dim)

The algorithm description can be found in the following article:

Elsayed, G.F.; Cunningham, J.P. Structure in Neural Population Recordings: An Expected Byproduct of Simpler Phenomena? Nat Neurosci 2017, 20, 1310–1318, doi:10.1038/nn.4617.

A matlab implementation can be found at the following link: https://github.com/gamaleldin/TME

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensor_maximum_entropy-0.0.2.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

tensor_maximum_entropy-0.0.2-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page