dev
This commit is contained in:
@@ -567,6 +567,7 @@ function onLearn!(wOut,
|
|||||||
end
|
end
|
||||||
|
|
||||||
alltrue(args...) = false ∈ [args...] ? false : true
|
alltrue(args...) = false ∈ [args...] ? false : true
|
||||||
|
isbetween(x, lowerlimit, upperlimit) = lowerlimit < x < upperlimit ? true : false
|
||||||
|
|
||||||
#WORKING 1) implement 90% +w, 10% -w 2) rewrite this function
|
#WORKING 1) implement 90% +w, 10% -w 2) rewrite this function
|
||||||
function neuroplasticity(synapseConnectionNumber,
|
function neuroplasticity(synapseConnectionNumber,
|
||||||
@@ -622,6 +623,7 @@ function neuroplasticity(synapseConnectionNumber,
|
|||||||
|
|
||||||
# prune weak connection
|
# prune weak connection
|
||||||
# mark weak / negative synaptic connection so they will get randomed in neuroplasticity()
|
# mark weak / negative synaptic connection so they will get randomed in neuroplasticity()
|
||||||
|
mask = isbetween.(wRec, 0.0, 0.01)
|
||||||
wRec = GeneralUtils.replaceBetween.(wRec, 0.0, 0.01, -1.0) # mark with -1.0
|
wRec = GeneralUtils.replaceBetween.(wRec, 0.0, 0.01, -1.0) # mark with -1.0
|
||||||
|
|
||||||
#WORKING rewire synapse connection
|
#WORKING rewire synapse connection
|
||||||
|
|||||||
Reference in New Issue
Block a user