compares snn algorithms against neumann algorithms
Project description
Spiking Neural Network Algorithms
This is a library of Spiking Neural Network algorithms (SNNs), along with their regular/normal/Neumann implementation. to their default/Neumann implementations. The user can specify an SNN and "normal" algorithm which take as input a networkx graph, and compute some graph property as output. The output of the SNN is then compared to the "normal" algorithm as "ground truth", in terms of:
- Score: How many results the SNN algorithm computed correctly (from a set of input graphs).
- Runtime In theory, the score should always be 100% for the SNN, as it should be an exact SNN implementation of the ground truth algorithm. This comparison is mainly relevant for the additions of brain adaptation and simulated radiation.
Different SNN implementations may use different encoding schemes, such as sparse coding, population coding and/or rate coding.
Parent Repository
These algorithms can be analysed using this parent repository. Together, these repos can be used to investigate the effectivity of various brain-adaptation mechanisms applied to these algorithms, in order to increase their [radiation] robustness. You can run it on various backends, as well as on a custom LIF-neuron simulator.
Algorithms
An overview is included of the implemented SNN algorithms and their respective compatibilities with brain-adaptation, radiation and backends implementations:
Algorithm | Encoding | Adaptation | Radiation | Backend |
---|---|---|---|---|
Minimum Dominating Set Approximation | Sparse | Redundancy | Neuron Death | - networkx LIF - Lava LIF |
Some Algorithm Approximation | Sparse | Redundancy | Neuron Death | - networkx LIF - Lava LIF |
retry
Algorithm | Encoding | Adaptation | Radiation | Backend |
---|---|---|---|---|
Minimum Dominating | Sparse | Redundancy | Neuron Death | - networkx LIF |
Set Approximation | Sparse | Redundancy | Neuron Death | - Lava LIF |
Some Algorithm | Sparse | Redundancy | Neuron Death | - networkx LIF |
Minimum Dominating Set Approximation
This is an implementation of the distributed algorithm presented by Alipour et al.
- Input: Non-triangle, planar Networkx graph. (Non triangle means there should not be any 3 nodes that are all connected with each other (forming a triangle)). Planar means that if you lay-out the graph on a piece of paper, no lines intersect (that you can roll it out on a 2D plane).
- Output: A set of nodes that form a dominating set in the graph.
Description: The algorithm basically consists of k
rounds, where you can
choose k
based on how accurate you want the approximation to be, more rounds
(generally) means more accuracy. At the start each node i
gets 1 random
number r_i
. This is kept constant throughout the entire algorithm. Then for
the first round:
- Each node
i
computes how many neighbours (degree)d_i
it has. - Then it adds
r_i+d_i=w_i
. In all consecutive rounds: - Each node
i
"computes" which neighbour has the highest weightw_j
, and gives that node 1 mark/point. Then each nodei
has some mark/scorem_i
. Next, the weightw_i=r_i+m_i
is computed (again) and the next round starts. This last round is repeated untilk
rounds are completed. At the end, the nodes with a non-zero mark/scorem_i
are selected to form the dominating set.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file snnalgorithms-0.0.1.tar.gz
.
File metadata
- Download URL: snnalgorithms-0.0.1.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3025b5d39fa1b83ebc96d3cf8851a165f05307a1e04b98b3012a1ded138d3bf |
|
MD5 | 81d7d3611f55a123508bda033b993597 |
|
BLAKE2b-256 | 5005a95aec7eaa273fc8642e5073afe6f6ac8a7d0e1e8cabbf9840dc12cd6348 |
File details
Details for the file snnalgorithms-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: snnalgorithms-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89e280f97b307759b674310f954e28e50ac325c9e96514597e0a60f1be684537 |
|
MD5 | 35a8605341fdf3f5a00027979d501be6 |
|
BLAKE2b-256 | c1641d2cda5741ef34d63e5d6af078e8b11b17a92d63eab4d54454fa64c58efb |