brainmass.delay_index

Contents

brainmass.delay_index#

brainmass.delay_index(n_hidden)[source]#

Build the neuron-index matrix used to address per-connection delays.

Parameters:

n_hidden (int) – Number of hidden units (nodes).

Returns:

An integer array of shape (n_hidden, n_hidden) whose every row is arange(n_hidden); row i selects the source-neuron index for each delayed connection into target i.

Return type:

numpy.ndarray