Skip to main content

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

Metadata

Release files for corrected-fisher-randomization 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for corrected-fisher-randomization 0.0.2
File Size Uploaded Provenance Actions
corrected_fisher_randomization-0.0.2.tar.gz 6.9 kB Without provenance Details for corrected_fisher_randomization-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for corrected-fisher-randomization 0.0.2
File Interpreter ABI Platform Actions
corrected_fisher_randomization-0.0.2-py3-none-any.whl Python 3 none any Details for corrected_fisher_randomization-0.0.2-py3-none-any.whl

Total release size: 15.5 kB

Release files / corrected_fisher_randomization-0.0.2.tar.gz

Download URL corrected_fisher_randomization-0.0.2.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3c5de59604f2f1fa2a13523e96b2609af2bd5ff56728774d197381aec98c63ea
BLAKE2b-256 checksum
How to use checksums
c530cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Release files / corrected_fisher_randomization-0.0.2-py3-none-any.whl

Download URL corrected_fisher_randomization-0.0.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba466a594d8ed83f4a71f8d5bdcd416b61aae4d6ab1da9a6196967f89adcb0e1
BLAKE2b-256 checksum
How to use checksums
f55568260b36b4cc6247c92a7020f3a200d3889774539106a5d970812c89fc00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.9

Security for corrected-fisher-randomization 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page