Skip to main content

Plastic Balanced Network Package (Akil et al., 2021)

Project description

Python version License GitHub pull requests Downloads Downloads Downloads Build and Test Code Coverage Documentation Lint Publish to PyPI.org pages-build-deployment

PlasticBalancedNetsPackage

The package plastic_balanced_network can be used to simulate spiking neural networks in the balance regime and undergoing synaptic plasticity on any cell type pair.

There is a great deal of flexibility to simulate a network with any combination of the following parameters:

(1) Total number of neurons.

(2) Fraction of E-I neurons.

(3) Probability of connection.

(4) Synaptic strengths.

(5) Total time of simulation.

(6) Input rate and correlations.

(7) Extra injected current.

(8) EIF neuron parameters.

(9) Plasticity parameters on any connection type and plasticity type (Hebbian, Kohonen, homeostatic inhibitory plasticities).

Installation: Run pip install plastic_balanced_network in the terminal. Alternatively, clone the repo and run pip install -e .

Import: from plastic_balanced_network.network import PlasticNeuralNetwork

You may also import other useful functions for analysis: from plastic_balanced_network.helpers import compute_firing_rate, spike_count_cov, cov2corr, average_cov_corr_over_subpops

Documentation: https://alanakil.github.io/PlasticBalancedNetsPackage/

Research Article: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1008958

Original Simulations

In addition to the packaged neural network, we also make available the original simulations of plastic balanced networks that were run in MATLAB. The results of these simulations were reported in Akil et al. 2021 ("Balanced networks under spike-timing dependent plasticity"). The exact same network is used in the MATLAB simulations and the Python package presented here. Link to paper: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1008958

We provide the MATLAB and Python code that was used for all simulations in Akil et al., 2021 in the folder named original_simulations. In this code, we run several realizations of plastic balanced networks with varying:

  • Network size. To compare with theoretical predictions of rates, covariances, and synaptic weights.

  • Input correlations. To assess the impact of increasing correlations in synaptic weights and rates.

  • Initial connectivity. To show the emergence of a manifold of fixed points in weight space when only I->E synapses are plastic.

Please see more details in the paper Akil et al., 2021.

This codebase was developed by Robert Rosenbaum and Alan Akil and is currently maintained by Alan Akil.

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

plastic_balanced_network-0.0.5.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

plastic_balanced_network-0.0.5-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file plastic_balanced_network-0.0.5.tar.gz.

File metadata

  • Download URL: plastic_balanced_network-0.0.5.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for plastic_balanced_network-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3f0b63b765b4104b0a7c8f332b29ba671406dbcddc89a4d3d530e4bda8f93cc8
MD5 c6ce59935e6885e51082ea2a051d7196
BLAKE2b-256 530fd76d33ae90a7d1ab58fd4b222a33c3f85b710503f1e48548bf76ffab14f7

See more details on using hashes here.

File details

Details for the file plastic_balanced_network-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for plastic_balanced_network-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eb37b40df1bfd7383ef5e7673b2faac0c1d3d2f08092c2b734be639f39c941e5
MD5 2df2998b83ce55afb36c6d274aefafdc
BLAKE2b-256 84e3a3952c362433a73e4de958ed78359dd6624dbea666cf0f77e0a26357de78

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