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

Spinncer weight scale #110

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6eb8a6c
Make some adjustments of weight / STDP values to make examples better
andrewgait Nov 11, 2021
93b2c93
Merge branch 'master' into weight_scale
andrewgait Nov 11, 2021
5273d17
merge
andrewgait Nov 25, 2021
f85b0fb
Merge branch 'master' into weight_scale
andrewgait Feb 25, 2022
0bd4d5f
Merge branch 'master' into weight_scale
andrewgait Apr 14, 2022
b6c89a9
Merge branch 'master' into weight_scale
andrewgait Apr 21, 2022
a70a2ca
Merge branch 'master' into weight_scale
andrewgait May 20, 2022
40b3131
Merge branch 'master' into weight_scale
andrewgait Jun 16, 2022
202f52f
Merge branch 'master' into weight_scale
andrewgait Jul 11, 2022
a391ad8
Stop float_gcd from failing
andrewgait Jul 11, 2022
4031b4c
Merge branch 'master' into weight_scale
andrewgait Sep 9, 2022
345016a
Merge remote-tracking branch 'origin/master' into weight_scale
andrewgait Nov 18, 2022
151a855
Merge branch 'master' into weight_scale
andrewgait Jan 11, 2023
85f266c
Merge branch 'master' into weight_scale
andrewgait Jan 11, 2023
e35b194
Merge branch 'master' into weight_scale
andrewgait Feb 10, 2023
783c9ac
Merge branch 'master' into weight_scale
andrewgait Feb 20, 2023
44371df
Merge branch 'master' into weight_scale
andrewgait Mar 1, 2023
4d7f51d
Merge branch 'master' into weight_scale
andrewgait Apr 11, 2023
ba42e4a
Merge remote-tracking branch 'origin/master' into weight_scale
andrewgait Jun 23, 2023
eb4b8dd
Merge remote-tracking branch 'origin/master' into spinncer_weight_scale
andrewgait Sep 12, 2023
be6b25b
Edit numbers to fix curve to look better
andrewgait Sep 13, 2023
b277d2d
Merge branch 'master' into spinncer_weight_scale
Christian-B Jan 5, 2024
e8001a4
Merge branch 'master' into spinncer_weight_scale
Christian-B May 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/extra_models_examples/stdp_example_izk_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
weight_dependence=sim.AdditiveWeightDependence(w_min=0, w_max=0.1))

plastic_projection = sim.Projection(
pre_pop, post_pop, sim.FixedProbabilityConnector(p_connect=1.0), # 0.5
pre_pop, post_pop, sim.FixedProbabilityConnector(p_connect=0.5), # 0.5
synapse_type=stdp_model)

# Record neurons' potentials
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# Build inhibitory plasticity model
stdp_model = sim.STDPMechanism(
timing_dependence=sim.extra_models.Vogels2011Rule(alpha=0.12, tau=20.0,
A_plus=0.05),
A_plus=0.0005),
weight_dependence=sim.AdditiveWeightDependence(w_min=0.0, w_max=1.0))

# Make inhibitory->excitatory projections
Expand Down
8 changes: 4 additions & 4 deletions examples/stdp_curve_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# ------------------------------------------------------------------
time_between_pairs = 1000
num_pairs = 60
start_w = 0.005
start_w = 0.05
delta_t = [-100, -60, -40, -30, -20, -10, -1, 1, 10, 20, 30, 40, 60, 100]
start_time = 200
mad = True
Expand Down Expand Up @@ -89,7 +89,7 @@
post_stim = sim.Population(
1, sim.SpikeSourceArray(spike_times=[post_times]))

weight = 0.035
weight = 0.075

# Connections between spike sources and neuron populations
ee_connector = sim.OneToOneConnector()
Expand All @@ -104,9 +104,9 @@
stdp_model = sim.STDPMechanism(
timing_dependence=sim.SpikePairRule(
tau_plus=16.7, tau_minus=33.7,
A_plus=0.0000875, A_minus=0.0000875),
A_plus=0.00075, A_minus=0.00075),
weight_dependence=sim.AdditiveWeightDependence(
w_min=0.0, w_max=0.0175), weight=start_w)
w_min=0.0, w_max=1.0), weight=start_w)

projections.append(sim.Projection(
pre_pop, post_pop, sim.OneToOneConnector(),
Expand Down
12 changes: 6 additions & 6 deletions examples/stdp_example_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,20 @@
# Noise projections
sim.Projection(
INoisePre, pre_pop, ee_connector, receptor_type='excitatory',
synapse_type=sim.StaticSynapse(weight=JEE * 0.001))
synapse_type=sim.StaticSynapse(weight=JEE * 0.0012))
sim.Projection(
INoisePost, post_pop, ee_connector, receptor_type='excitatory',
synapse_type=sim.StaticSynapse(weight=JEE * 0.001))
synapse_type=sim.StaticSynapse(weight=JEE * 0.0012))

# Additional Inputs projections
for i in range(len(IAddPre)):
sim.Projection(
IAddPre[i], pre_pop, ee_connector, receptor_type='excitatory',
synapse_type=sim.StaticSynapse(weight=JEE * 0.001))
synapse_type=sim.StaticSynapse(weight=JEE * 0.0012))
for i in range(len(IAddPost)):
sim.Projection(
IAddPost[i], post_pop, ee_connector, receptor_type='excitatory',
synapse_type=sim.StaticSynapse(weight=JEE * 0.001))
synapse_type=sim.StaticSynapse(weight=JEE * 0.0012))

# Plastic Connections between pre_pop and post_pop
stdp_model = sim.STDPMechanism(
Expand All @@ -178,7 +178,7 @@
# Run simulation
sim.run(simtime)

print("Weights:{}".format(plastic_projection.get('weight', 'list')))
# print("Weights:{}".format(plastic_projection.get('weight', 'list')))

pre_spikes = pre_pop.get_data('spikes')
post_spikes = post_pop.get_data('spikes')
Expand All @@ -188,7 +188,7 @@
Panel(pre_spikes.segments[0].spiketrains,
yticks=True, markersize=0.5, xlim=(0, simtime)),
Panel(post_spikes.segments[0].spiketrains,
yticks=True, markersize=0.5, xlim=(0, simtime)),
yticks=True, xticks=True, markersize=0.5, xlim=(0, simtime)),
title="stdp example cond",
annotations="Simulated with {}".format(sim.name()))
plt.show()
Expand Down