NeuromorphicProcessorProject / snn_toolbox

Toolbox for converting analog to spiking neural networks (ANN to SNN), and running them in a spiking neuron simulator.
MIT License
360 stars 104 forks source link

Units of SynOps #108

Closed narduzzi closed 3 years ago

narduzzi commented 3 years ago

Hello,

I am wondering what the unit for synaptic operations is? When I simulate on a simple network, I get a matrix of shape (128, 15) as I simulate on 128 data samples during 15ms. I don't know how to interpret the values in this matrix:

print(simulation_data["synaptic_operations_b_t"][0])

// [0.00e+00 ... 6.20e-05 1.54e-04 1.54e-04 1.54e-04 2.66e-04 ... 6.32e-04 6.32e-04]

What is the meaning of synops? Why are synops smaller than 1?

Config
Python 3.7.9
SNNToolbox 0.6.0

Thanks for your help!

rbodo commented 3 years ago

The synaptic operations are given in Million here (i.e. factor 1e6).

A synaptic operation happens when a spike is transmitted from a source neuron in one layer to a target neuron in the next layer.

See also #70