dev
This commit is contained in:
@@ -4,6 +4,7 @@ export refractoryStatus!, addNewSynapticConn!, mergeLearnWeight!, growRepeatedP
|
||||
weakenNotMatureSynapse!, pruneSynapse!, rewireSynapse!
|
||||
|
||||
using Random, GeneralUtils
|
||||
using ..type
|
||||
|
||||
#------------------------------------------------------------------------------------------------100
|
||||
|
||||
@@ -167,7 +168,7 @@ function rewireSynapse!(wRec::AbstractArray, neuronInactivityCounter::AbstractAr
|
||||
zitCumulative::AbstractArray)
|
||||
_,_,i3,i4 = size(wRec)
|
||||
for n in 1:i3 # neuron-by-neuron
|
||||
if neuronInactivityCounter[1,1,n,i4][1] < -10000 # neuron die i.e. reset all weight
|
||||
if neuronInactivityCounter[1,1,n,i4][1] < -100000 # neuron die i.e. reset all weight
|
||||
println("neuron $n die")
|
||||
neuronInactivityCounter[:,:,n,i4] .= 0 # reset
|
||||
w = random_wRec(i1,i2,1,synapseConnectionNumber)
|
||||
|
||||
Reference in New Issue
Block a user