Skip to main content

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.

Metadata

Release files for plastic-balanced-network 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plastic-balanced-network 0.0.6
File Size Uploaded
plastic_balanced_network-0.0.6.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plastic-balanced-network 0.0.6
File Interpreter ABI Platform
plastic_balanced_network-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 40.1 kB

Release files / plastic_balanced_network-0.0.6.tar.gz

Download URL plastic_balanced_network-0.0.6.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2f1200c386ce7c989d24da7f7b50d5bbf727c0889c6c2c6d73f99ea19f5b520
BLAKE2b-256 checksum
How to use checksums
945f7d1f5cf01b74b2b58e037d916c56dc084a81ee56e16f6d17592fa1157358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / plastic_balanced_network-0.0.6-py3-none-any.whl

Download URL plastic_balanced_network-0.0.6-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0b07a165f75d2d259ba01514a14f4211dcd7a75c6cfdd01ee73ffa6a6a7b038
BLAKE2b-256 checksum
How to use checksums
a725bb4e56173cb9fac3161abbb60180c5c6fb9d06ddda963922e98a3992d762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page