Skip to main content

Differentiable neuron simulations.

Project description

Contributions welcome Tests GitHub license

Jaxley is a differentiable simulator for biophysical neuron models in JAX. Its key features are:

  • automatic differentiation, allowing gradient-based optimization of thousands of parameters
  • support for CPU, GPU, or TPU without any changes to the code
  • jit-compilation, making it as fast as other packages while being fully written in python
  • backward-Euler solver for stable numerical solution of multicompartment neurons
  • elegant mechanisms for parameter sharing

Tutorials

Tutorials are available on our website. We currently have tutorials on how to:

Units

Jaxley uses the same units as NEURON.

Installation

Jaxley is available on pypi:

pip install jaxley

This will install Jaxley with CPU support. If you want GPU support, follow the instructions on the JAX github repository to install JAX with GPU support (in addition to installing Jaxley). For example, for NVIDIA GPUs, run

pip install -U "jax[cuda12]"

Feedback and Contributions

We welcome any feedback on how Jaxley is working for your neuron models and are happy to receive bug reports, pull requests and other feedback (see contribute). We wish to maintain a positive community, please read our Code of Conduct.

Acknowledgements

We greatly benefited from previous toolboxes for simulating multicompartment neurons, in particular NEURON.

License

Apache License

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

jaxley-0.1.1.tar.gz (87.4 kB view details)

Uploaded Source

Built Distribution

jaxley-0.1.1-py3-none-any.whl (122.3 kB view details)

Uploaded Python 3

File details

Details for the file jaxley-0.1.1.tar.gz.

File metadata

  • Download URL: jaxley-0.1.1.tar.gz
  • Upload date:
  • Size: 87.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for jaxley-0.1.1.tar.gz
Algorithm Hash digest
SHA256 55db074bcfb0a2183063a4de97811a50700e4ff4a6283396aa0a12cb98b17e8b
MD5 cfbf2981832f806888a4aec72d8ffde5
BLAKE2b-256 dccd291a8799d929cbe71475c406267975b962cf75e5c197f9bbd1694a56b079

See more details on using hashes here.

File details

Details for the file jaxley-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jaxley-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 122.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for jaxley-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3bf268e78bea0a0e80ea39c727ef6d26febd9858f32d6c4287385f42f72491f8
MD5 8043bb623f09f370444060e9a61831b0
BLAKE2b-256 8362586708a28b24047a00cf340d9c79493380680d86f863a22ba62e60fd8efb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page