Skip to main content

brainpy.state: stateful spiking neural network models in BrainPy

Project description

Header image of brainpy.state - brain dynamics programming in Python.

Supported Python Version LICENSE Documentation PyPI version Continuous Integration

brainpy.state modernizes BrainPy simulator of spiking neural networks with state-based syntax in brainstate. Moreover, brainpy.state provides more features compared to BrainPy, including:

Links

Installation

brainpy.state is based on Python (>=3.10) and can be installed on Linux (Ubuntu 16.04 or later), macOS (10.12 or later), and Windows platforms.

pip install brainpy-state -U

If you want to use brainpy.state with different hardware support, please install the corresponding version:

pip install brainpy-state[cpu] -U  # install with CPU support only
pip install brainpy-state[cuda12] -U  # install with CUDA 12.x support
pip install brainpy-state[cuda13] -U  # install with CUDA 13.x support
pip install brainpy-state[tpu] -U  # install with TPU support

Install the brainpy.state with the ecosystem packages:

pip install BrainX -U

Citing

If you are using brainpy.state, please consider citing the corresponding paper:

@article {10.7554/eLife.86365,
    article_type = {journal},
    title = {BrainPy, a flexible, integrative, efficient, and extensible framework for general-purpose brain dynamics programming},
    author = {Wang, Chaoming and Zhang, Tianqiu and Chen, Xiaoyu and He, Sichao and Li, Shangyang and Wu, Si},
    editor = {Stimberg, Marcel},
    volume = 12,
    year = 2023,
    month = {dec},
    pub_date = {2023-12-22},
    pages = {e86365},
    citation = {eLife 2023;12:e86365},
    doi = {10.7554/eLife.86365},
    url = {https://doi.org/10.7554/eLife.86365},
    abstract = {Elucidating the intricate neural mechanisms underlying brain functions requires integrative brain dynamics modeling. To facilitate this process, it is crucial to develop a general-purpose programming framework that allows users to freely define neural models across multiple scales, efficiently simulate, train, and analyze model dynamics, and conveniently incorporate new modeling approaches. In response to this need, we present BrainPy. BrainPy leverages the advanced just-in-time (JIT) compilation capabilities of JAX and XLA to provide a powerful infrastructure tailored for brain dynamics programming. It offers an integrated platform for building, simulating, training, and analyzing brain dynamics models. Models defined in BrainPy can be JIT compiled into binary instructions for various devices, including Central Processing Unit (CPU), Graphics Processing Unit (GPU), and Tensor Processing Unit (TPU), which ensures high running performance comparable to native C or CUDA. Additionally, BrainPy features an extensible architecture that allows for easy expansion of new infrastructure, utilities, and machine-learning approaches. This flexibility enables researchers to incorporate cutting-edge techniques and adapt the framework to their specific needs},
    journal = {eLife},
    issn = {2050-084X},
    publisher = {eLife Sciences Publications, Ltd},
}

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

brainpy_state-0.0.1.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

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

brainpy_state-0.0.1-py3-none-any.whl (89.9 kB view details)

Uploaded Python 3

File details

Details for the file brainpy_state-0.0.1.tar.gz.

File metadata

  • Download URL: brainpy_state-0.0.1.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brainpy_state-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3a13c3651e21e53ee6664fb87d4ed8c3ecb7134e524a71be617cc72acf29d549
MD5 938a3d8347ca097dd1cd790d905854aa
BLAKE2b-256 c62f9bc440e5ea89101fc58377e4c65b057561bea0204404ea128e681a24d233

See more details on using hashes here.

File details

Details for the file brainpy_state-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: brainpy_state-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 89.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for brainpy_state-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 213c385ba69a10ee4ce51bbdcb4bbdd8f68e44bfae175de1b9ccd3d90d736fba
MD5 1c37a087dffc83cf00dea9ff40b42d6c
BLAKE2b-256 9c0d502d5d41aca63f1811f6737da6a7df47bcae653eb3b96697d71e00c99313

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