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.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tensor_maximum_entropy-0.0.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file tensor_maximum_entropy-0.0.1.tar.gz.

File metadata

  • Download URL: tensor_maximum_entropy-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for tensor_maximum_entropy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 150aaf87364c6ae02a15811e30f8e2fd1531e59db7ec94387cce006ffe3abd89
MD5 ffd4fb66a58ea374d74fcf823906bffb
BLAKE2b-256 bfda7e7805cc3084e3497588947b1b586b984c9c40a3644c7b8eee7e62dc46f8

See more details on using hashes here.

File details

Details for the file tensor_maximum_entropy-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tensor_maximum_entropy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aed3949160f7e07025c6ab4e6121c1db4a15c91901adec522e872a9f82c479ea
MD5 e42c766f58c2368bac8ae8c3773e972f
BLAKE2b-256 711e85fea31432ba8165c6f20c246c89ccf418a6ef62e5bcb5625572d65b01d9

See more details on using hashes here.

Supported by

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