superneuromat.SNN.reset#
- SNN.reset()[source]#
Reset the SNN’s neuron states, refractory periods, spike train, and input spikes.
Equivalent to:
snn.reset_neuron_states() snn.zero_refractory_periods() snn.clear_spike_train() snn.clear_input_spikes() snn.restore()
Warning
This method does not reset the synaptic weights or STDP parameters. SuperNeuroMAT also does not automatically store the initial neuron state values, such as the
initial_stateandrefractory_stateparameters ofcreate_neuron(). Whenreset()is called, if those states are not memoized, each neuron’s charge state will be set to its reset state inneuron_reset_states, and the refractory countdown inneuron_refractory_periods_statewill be set to zero.If this is not desirable, consider manually copying the parameters you care about so you can assign them later, or using
memoize()to store a snapshot to return to whenrestore()orreset()is called, or manually calling only the individual functions that you need (shown above).See Resetting the SNN for more information.
See also
reset_neuron_statesReset the charge states of all neurons to their reset values.
zero_refractory_periodsReset the refractory period countdowns to zero.
clear_spike_trainDelete all recorded spike trains.
clear_input_spikesDelete all queued input spikes.
restoreRestore the model variables to their memoized states.