Skip to main content

Python implementation of the Corrected Fisher Randomization (CFR)

Project description

TME

Python implementation of Corrected Fisher Randomization (CFR)

Install:

pip install corrected-fisher-randomization

Usage example:

import numpy as np
import scipy.io
from corrected_fisher_randomization import CFR

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)
CFR(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/CFR

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

corrected_fisher_randomization-0.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file corrected_fisher_randomization-0.0.2.tar.gz.

File metadata

File hashes

Hashes for corrected_fisher_randomization-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3c5de59604f2f1fa2a13523e96b2609af2bd5ff56728774d197381aec98c63ea
MD5 e455cb49ca7583e7ede4ee23a804f6a2
BLAKE2b-256 c530cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687

See more details on using hashes here.

File details

Details for the file corrected_fisher_randomization-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for corrected_fisher_randomization-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba466a594d8ed83f4a71f8d5bdcd416b61aae4d6ab1da9a6196967f89adcb0e1
MD5 caf8d78b12c8a34777c43b82c1ff2f9f
BLAKE2b-256 f55568260b36b4cc6247c92a7020f3a200d3889774539106a5d970812c89fc00

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