brainevent.update_fixed_pre_conn_on_binary_post#
- brainevent.update_fixed_pre_conn_on_binary_post = <NameScope(brainevent.update_fixed_pre_conn_on_binary_post)>#
Post-spike STDP update for a
FixedNumPerPost(favorable, row-driven).For each firing post neuron
jand every stored synapse(i, j):W[i, j] <- clip(W[i, j] + pre_trace[i], w_min, w_max).- Parameters:
data (jax.Array or Quantity) – Heterogeneous ELL weights, shape
(num_post, num_conn).indices (jax.Array) – Pre-synaptic ids, shape
(num_post, num_conn).pre_trace (jax.Array or Quantity) – Pre-synaptic trace, shape
(num_pre,).post_spike (jax.Array) – Post-synaptic spikes (bool or float), shape
(num_post,).w_min (jax.Array, Quantity, number, or None, optional) – Clip bounds (
Nonedisables the corresponding bound).w_max (jax.Array, Quantity, number, or None, optional) – Clip bounds (
Nonedisables the corresponding bound).
- Returns:
Updated weights, shape
(num_post, num_conn).- Return type:
jax.Array or Quantity
- Raises:
ValueError – If
datais homogeneous (size-1) while the connectivity stores more than one synapse.
See also
brainevent.FixedNumPerPost.update_on_prePre-spike (unfavorable) counterpart, served by the perm-fused CSR plasticity primitive.