A package for deep learning models for neuroscience
Project description
Documentation | Join our Discord community
torch_brain is a Python library for various deep learning models designed for neuroscience.
Features
- Multi-recording training
- Optimized data loading with with on-demand data access -- only loads data when needed
- Advanced samplers that enable arbitrary slicing of data on the fly
- Advanced data collation strategies including chaining and padding
- Support for arbitrary neural and behavioral modalities
- Collection of useful nn.Modules like stitchers, multi-output readouts, infinite vocab embeddings, etc.
- Collection of neural and behavioral transforms and augmentation strategies
- Implementations of various deep learning models for neuroscience
List of implemented models
- POYO: A Unified, Scalable Framework for Neural Population Decoding (Azabou et al. 2023)
- More coming soon...
Installation
torch_brain is available for Python >= 3.10 and can be installed via pip.
We recommend using a virtual environment to manage dependencies, and Python 3.10.
To create and activate a new virtual environment with venv, run:
python3 -m venv venv
source venv/bin/activate # On Windows, use: .venv\Scripts\activate
pip install torch_brain
Contributing
If you are planning to contribute to the package, you can install the package in development mode by running the following command:
pip install -e ".[dev]"
Install pre-commit hooks:
pre-commit install
Unit tests are located under test/. Run the entire test suite with
pytest
or test individual files via, e.g., pytest test/test_binning.py
Cite
Please cite our paper if you use this code in your own work:
@inproceedings{
azabou2023unified,
title={A Unified, Scalable Framework for Neural Population Decoding},
author={Mehdi Azabou and Vinam Arora and Venkataramana Ganesh and Ximeng Mao and Santosh Nachimuthu and Michael Mendelson and Blake Richards and Matthew Perich and Guillaume Lajoie and Eva L. Dyer},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
year={2023},
}
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 torch_brain-0.1.1.tar.gz.
File metadata
- Download URL: torch_brain-0.1.1.tar.gz
- Upload date:
- Size: 14.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1badb95b4b1867b77942a97e9fe81b3da24d0607a9ad46f7c292aae087eef047
|
|
| MD5 |
04ac88ee1a31ca362856193333d91e27
|
|
| BLAKE2b-256 |
c8f22e12227f57f9721b40e050a5a7de2bd6b6a1e5ffdfc64ad9f29344ddc4fe
|
Provenance
The following attestation bundles were made for torch_brain-0.1.1.tar.gz:
Publisher:
publish.yml on neuro-galaxy/torch_brain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_brain-0.1.1.tar.gz -
Subject digest:
1badb95b4b1867b77942a97e9fe81b3da24d0607a9ad46f7c292aae087eef047 - Sigstore transparency entry: 1091786653
- Sigstore integration time:
-
Permalink:
neuro-galaxy/torch_brain@44a2456e02c4564fc9ac0859bd3d9ff509dce8ad -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/neuro-galaxy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@44a2456e02c4564fc9ac0859bd3d9ff509dce8ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file torch_brain-0.1.1-py3-none-any.whl.
File metadata
- Download URL: torch_brain-0.1.1-py3-none-any.whl
- Upload date:
- Size: 80.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49e36af44735f9f453462e1e1d4f9fb184d9c5ab3c34b2731cc4e1a00ccb8e74
|
|
| MD5 |
fc5f6034e43e9266e9b007eec126d50c
|
|
| BLAKE2b-256 |
8eca815bdc3271f75d1eade17ccecefcbd83903c2f08b76123e30045f312bd67
|
Provenance
The following attestation bundles were made for torch_brain-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on neuro-galaxy/torch_brain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_brain-0.1.1-py3-none-any.whl -
Subject digest:
49e36af44735f9f453462e1e1d4f9fb184d9c5ab3c34b2731cc4e1a00ccb8e74 - Sigstore transparency entry: 1091786682
- Sigstore integration time:
-
Permalink:
neuro-galaxy/torch_brain@44a2456e02c4564fc9ac0859bd3d9ff509dce8ad -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/neuro-galaxy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@44a2456e02c4564fc9ac0859bd3d9ff509dce8ad -
Trigger Event:
push
-
Statement type: