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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file corrected_fisher_randomization-0.0.2.tar.gz.
File metadata
- Download URL: corrected_fisher_randomization-0.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c5de59604f2f1fa2a13523e96b2609af2bd5ff56728774d197381aec98c63ea
|
|
| MD5 |
e455cb49ca7583e7ede4ee23a804f6a2
|
|
| BLAKE2b-256 |
c530cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687
|
File details
Details for the file corrected_fisher_randomization-0.0.2-py3-none-any.whl.
File metadata
- Download URL: corrected_fisher_randomization-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba466a594d8ed83f4a71f8d5bdcd416b61aae4d6ab1da9a6196967f89adcb0e1
|
|
| MD5 |
caf8d78b12c8a34777c43b82c1ff2f9f
|
|
| BLAKE2b-256 |
f55568260b36b4cc6247c92a7020f3a200d3889774539106a5d970812c89fc00
|