dev
This commit is contained in:
@@ -607,7 +607,6 @@ function neuroplasticity(synapseConnectionNumber,
|
||||
mask_2 .*= 1 .+ eta # minor activity synapse weight will be reduced by eta
|
||||
wRec .*= mask_2
|
||||
|
||||
#WORKING should i -w only for activated synapse only or ALL synapse. activated synapse representing this signal e.g. number 3
|
||||
# -w, synapse with less than 10% of avg activity get reduced weight by eta
|
||||
mask_less = isless.(synapticActivityCounter, lowerlimit) # 1st criteria
|
||||
|
||||
@@ -616,14 +615,16 @@ function neuroplasticity(synapseConnectionNumber,
|
||||
wRec .*= mask_3
|
||||
|
||||
# -w all non-fire connection except mature connection
|
||||
mask_notmature = isless.(wRec, 0.1) # 2nd criteria, weak synapse has weight < 0.1
|
||||
mask_notmature = isless.(wRec, 0.1) # 2nd criteria, not mature synapse has weight < 0.1
|
||||
mask_1 = alltrue.(mask_inactiveSynapse, mask_notmature)
|
||||
mask_1 .*= 1 .- eta
|
||||
wRec .*= mask_1
|
||||
|
||||
# prune weak connection
|
||||
# mark weak / negative synaptic connection so they will get randomed in neuroplasticity()
|
||||
wRec = GeneralUtils.replaceBetween.(wRec, 0.0, 0.01, -1.0) # mark with -1.0
|
||||
|
||||
# rewire synapse connection
|
||||
#WORKING rewire synapse connection
|
||||
|
||||
|
||||
elseif progress == 0 # no progress, no weight update, only rewire
|
||||
|
||||
Reference in New Issue
Block a user