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