learning.py¶
This module contains classes that can learn the weights.
-
class
neurons.learning.STDP(eta, w_in, w_out, tau, window_size, verbose=False)¶ Spike Timing Dependent Plasticity
-
learning_window(x)¶ Constant Learning Window
Parameters: x – Returns:
-
learning_window_neuron_post(t1, t2_list)¶ Return the sum of the learning windows of one neuron.
Parameters: - t1 – current time
- t2_list – spiking times of neuron
-
learning_window_neuron_pre(t1, t2_list)¶ Return the sum of the learning windows of one neuron. :param t1: current time :param t2_list: spiking times of neuron
-
weight_change(spikes, weights, t)¶ Calculate the weight change at time t. Changes the weights in place.
Parameters: - spikes – Spiketrain
- weights – current weights
Returns: Changes in weights
-