minor fix
This commit is contained in:
@@ -267,7 +267,7 @@ function alifLearn!(wRec,
|
|||||||
wRecChange,
|
wRecChange,
|
||||||
arrayProjection4d)
|
arrayProjection4d)
|
||||||
# merge learning weight with average learning weight
|
# merge learning weight with average learning weight
|
||||||
wRec .+= (sum(wRecChange) ./ (size(wRec, 4))) .* arrayProjection4d
|
wRec .+= (sum(wRecChange, dims=4) ./ (size(wRec, 4))) .* arrayProjection4d
|
||||||
|
|
||||||
#TODO synaptic strength
|
#TODO synaptic strength
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ function onLearn!(wOut,
|
|||||||
wOutChange,
|
wOutChange,
|
||||||
arrayProjection4d)
|
arrayProjection4d)
|
||||||
# merge learning weight with average learning weight
|
# merge learning weight with average learning weight
|
||||||
wOut .+= (sum(wOutChange) ./ (size(wOut, 4))) .* arrayProjection4d
|
wRec .+= (sum(wRecChange, dims=4) ./ (size(wRec, 4))) .* arrayProjection4d
|
||||||
|
|
||||||
# adaptive wOut to help convergence using c_decay
|
# adaptive wOut to help convergence using c_decay
|
||||||
wOut .-= 0.001 .* wOut
|
wOut .-= 0.001 .* wOut
|
||||||
|
|||||||
Reference in New Issue
Block a user