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.9 to Python 3.11

To install the package, run the following command:

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.0.tar.gz (71.8 kB 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.0-py3-none-any.whl (65.9 kB view details)

Uploaded Python 3

File details

Details for the file torch_brain-0.1.0.tar.gz.

File metadata

  • Download URL: torch_brain-0.1.0.tar.gz
  • Upload date:
  • Size: 71.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for torch_brain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 608b4740d210567775881b71dafd9492f82f30a3e45e371d560f61c14d432797
MD5 8186987da0129e581b3ead0e5ed67432
BLAKE2b-256 0650296a3985ea1ff40ca5911c9cf8d5b9f459bd3da5513a994a88689ddaf186

See more details on using hashes here.

File details

Details for the file torch_brain-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: torch_brain-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 65.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for torch_brain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff6f2e9b9cf703b43f058403d1a6eb37563d81cf9f520374234c23f0ee0e722
MD5 44f62dc718d84a05dedeaa9b6eca2825
BLAKE2b-256 ee1305ebba644fa567b4a409134d1d370a81fa8d362af51123b4b3919f9b5b3c

See more details on using hashes here.

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