Skip to main content

A package for deep learning models for neuroscience

Project description

Documentation | Join our Discord community

PyPI version Documentation Status Tests Linting Discord

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torch_brain-0.1.1.tar.gz (14.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torch_brain-0.1.1-py3-none-any.whl (80.4 kB view details)

Uploaded Python 3

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

Hashes for torch_brain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1badb95b4b1867b77942a97e9fe81b3da24d0607a9ad46f7c292aae087eef047
MD5 04ac88ee1a31ca362856193333d91e27
BLAKE2b-256 c8f22e12227f57f9721b40e050a5a7de2bd6b6a1e5ffdfc64ad9f29344ddc4fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_brain-0.1.1.tar.gz:

Publisher: publish.yml on neuro-galaxy/torch_brain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for torch_brain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49e36af44735f9f453462e1e1d4f9fb184d9c5ab3c34b2731cc4e1a00ccb8e74
MD5 fc5f6034e43e9266e9b007eec126d50c
BLAKE2b-256 8eca815bdc3271f75d1eade17ccecefcbd83903c2f08b76123e30045f312bd67

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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