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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for corrected_fisher_randomization-0.0.1.tar.gz
Algorithm Hash digest
SHA256 86423fa7015c135e63603a93bd0c84c840c60e9537b0b55d214d5b04c3a3d3c6
MD5 e01e78c287d184b1d99987507e58ec7d
BLAKE2b-256 f9cc98b41d6fc02d30a7d714f208d8016e3f387110b15b885e8d4ffa194fd6ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for corrected_fisher_randomization-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77ad9a0e742cd7373da38fa05e33e0847824b7f0c9bca1607e1594c05ef7883d
MD5 34c7cf235f2af2b445e15da80ad87709
BLAKE2b-256 99aac42d4b9216a7dc629305b5df261f34d683ded909c9d9f29e00d27c2d364b

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