Initialization of Sparse Connecttivity fixed conectivity with user defined weights. #711
Answered
by
neworderofjamie
andreARibe
asked this question in
GeNN questions
-
|
I have a model that I will requires large neuron populations, for wich I now use DENSE matrices. |
Beta Was this translation helpful? Give feedback.
Answered by
neworderofjamie
Sep 10, 2025
Replies: 1 comment 2 replies
-
|
Assuming you want to provide weights yourself, the easiest solution is to create 3 numpy arrays: presynaptic neuron id ( sg = model.add_synapse_population(
"Synapses", "SPARSE",
pre_pop, post_pop,
init_weight_update("StaticPulse", {}, {"g": g}),
init_postsynaptic("DeltaCurr"))
sg.set_sparse_connections(pre_ind, post_ind)Obviously, using whatever weight update and postsynaptic models you want! We have recently fixed some issues in this area so please make sure you are using either the GeNN 5.3.0 release candidate or the lastest master version. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
andreARibe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming you want to provide weights yourself, the easiest solution is to create 3 numpy arrays: presynaptic neuron id (
pre_ind), postsynaptic neuron id (post_ind) and weight (g):Obviously, using whatever weight update and postsynaptic models you want!
We have recently fixed some issues in this area so please make sure you are using either the GeNN 5.3.0 release candidate or the lastest master version.