Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual weight scaling #1458

Merged
merged 12 commits into from
Jul 18, 2024
Merged

Manual weight scaling #1458

merged 12 commits into from
Jul 18, 2024

Conversation

rowleya
Copy link
Member

@rowleya rowleya commented Jun 20, 2024

Add option to allow manual scaling of weights by users. This then disables the automatic scaling of weights for that Population. This can result in more weight overflows but that is given as a warning if it happens already.

Example use:

pop_fixed_1 = p.Population(256, p.IF_curr_exp(), max_expected_summed_weight=[2.0, 0.0])

Values are in units of the synapses (nA for current-based synapese, uS for conductance), and represent the maximum representable sum of the weights incoming to a synapse of a neuron in any single time step. One value must be specified for each synapse type of the neuron (e.g. for IF_curr_exp, one value each for excitatory and inhibitory).

Copy link
Member

@Christian-B Christian-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A big fat no to adding a param middle list.

Use a "*," to force callers to use named params

@rowleya rowleya requested a review from Christian-B June 21, 2024 06:33
@Christian-B Christian-B merged commit 6f7455b into master Jul 18, 2024
14 checks passed
@Christian-B Christian-B deleted the manual_weight_scaling branch July 18, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants