Skip to main content

Spiking neural networks for AI workflows and neuromorphic computing

Project description

Spikelearn

Implementation of spiking neural networks capable of online learning tailored for machine learning workflows and neuromorphic computing applications.

Motivation

We needed a SNN model with the following requirements:

  • Capable of handling traditional ML workflows
  • Heterogeneous, with the ability to integrate both mathematical models and neurons or synapses inspired on neuromorphic computing and emergent devices
  • That could be easily parametrizable, in order to explore a large number of configurations in high performance computing environments.
  • That could reproduce models in existing neuromorphic chips such as Loihi.
  • That could handle neuromodulators and other neuroscience-inspired goodies.
  • That could be easily extensible.
  • That is capable of online learning through a variety of synaptic plasticity rules.

Spikelearn intends to fill that role.

Status

Spikelearn is still in development. Please check spikelearn's documentation in readthedocs.

Quick install

Through pypi:

pip install spikelearn

Usage

from spikelearn import SpikingNet, SpikingLayer, StaticSynapse
import numpy as np

snn = SpikingNet()
sl = SpikingLayer(10, 4)
syn = StaticSynapse(10, 10, np.random.random((10,10)))

snn.add_input("input1")
snn.add_layer(sl, "l1")
snn.add_synapse("l1", syn, "input1")
snn.add_output("l1")

u = 2*np.random.random(10)
for i in range(10):
    s = snn(2*np.random.random(10))
    print(s)

Acknowledgements

  • Threadwork, U.S. Department of Energy Office of Science, Microelectronics Program.

Copyright and license

Copyright © 2022, UChicago Argonne, LLC

Spikelearn is distributed under the terms of BSD License. See LICENSE

Argonne Patent & Intellectual Property File Number: SF-22-154

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

spikelearn-0.1.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

spikelearn-0.1.2-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file spikelearn-0.1.2.tar.gz.

File metadata

  • Download URL: spikelearn-0.1.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for spikelearn-0.1.2.tar.gz
Algorithm Hash digest
SHA256 04910a6b2b2ede868b466cc2a0356a5fc5db41acfbea5484a07017deee3ac2e2
MD5 1289f64f9b1e956549961a310b0e1bed
BLAKE2b-256 edd4b15b4c888efae1585821fe45bc6626a6dde84d4b92a468507fce744ed1e6

See more details on using hashes here.

File details

Details for the file spikelearn-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: spikelearn-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for spikelearn-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a887ca5ef73056876280c90dd29cf96f19b13ab9e65815de5804048d1f1ed962
MD5 62b99f9c76ae06f0191f32faed36f5e4
BLAKE2b-256 05c04713abbfe925e13a6bbf97d4e39e84cd867992be560e9a59cf0e3d156980

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