# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/ArdeleanRichard/CFR",
"name": "corrected-fisher-randomization",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Eugen-Richard Ardelean",
"author_email": "ardeleaneugenrichard@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c5/30/cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687/corrected_fisher_randomization-0.0.2.tar.gz",
"platform": null,
"description": "# TME\r\nPython implementation of Corrected Fisher Randomization (CFR)\r\n\r\n\r\nInstall:\r\n```\r\npip install corrected-fisher-randomization\r\n```\r\n\r\nUsage example:\r\n```\r\nimport numpy as np\r\nimport scipy.io\r\nfrom corrected_fisher_randomization import CFR\r\n\r\nmodel_dim = 10\r\n\r\ndata = scipy.io.loadmat('./exampleData.mat')\r\ndataTensor = data['dataTensor']\r\n\r\nprint(dataTensor.shape)\r\nt = data['t']\r\n\r\nmask = np.logical_and(t > - 50, t < 350)\r\nCFR(dataTensor, mask, model_dim)\r\n```\r\n\r\nThe algorithm description can be found in the following article:\r\n```\r\nElsayed, G.F.; Cunningham, J.P. Structure in Neural Population Recordings: An Expected Byproduct of Simpler Phenomena? Nat Neurosci 2017, 20, 1310\u00e2\u20ac\u201c1318, doi:10.1038/nn.4617.\r\n```\r\n\r\nA matlab implementation can be found at the following link:\r\nhttps://github.com/gamaleldin/CFR\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python implementation of the Corrected Fisher Randomization (CFR)",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/ArdeleanRichard/CFR"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f55568260b36b4cc6247c92a7020f3a200d3889774539106a5d970812c89fc00",
"md5": "caf8d78b12c8a34777c43b82c1ff2f9f",
"sha256": "ba466a594d8ed83f4a71f8d5bdcd416b61aae4d6ab1da9a6196967f89adcb0e1"
},
"downloads": -1,
"filename": "corrected_fisher_randomization-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "caf8d78b12c8a34777c43b82c1ff2f9f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8574,
"upload_time": "2024-05-08T05:44:49",
"upload_time_iso_8601": "2024-05-08T05:44:49.668569Z",
"url": "https://files.pythonhosted.org/packages/f5/55/68260b36b4cc6247c92a7020f3a200d3889774539106a5d970812c89fc00/corrected_fisher_randomization-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c530cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687",
"md5": "e455cb49ca7583e7ede4ee23a804f6a2",
"sha256": "3c5de59604f2f1fa2a13523e96b2609af2bd5ff56728774d197381aec98c63ea"
},
"downloads": -1,
"filename": "corrected_fisher_randomization-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "e455cb49ca7583e7ede4ee23a804f6a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6932,
"upload_time": "2024-05-08T05:44:52",
"upload_time_iso_8601": "2024-05-08T05:44:52.608041Z",
"url": "https://files.pythonhosted.org/packages/c5/30/cef5e7105984496a5962287de9dd262e7619cde3794e99129bf6b8978687/corrected_fisher_randomization-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-08 05:44:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ArdeleanRichard",
"github_project": "CFR",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "numpy",
"specs": []
},
{
"name": "matplotlib",
"specs": []
},
{
"name": "scipy",
"specs": []
},
{
"name": "scikit-learn",
"specs": []
}
],
"lcname": "corrected-fisher-randomization"
}