minor fix

This commit is contained in:
ton
2023-08-10 13:32:32 +07:00
parent 160128d7a8
commit bbda12bae8

View File

@@ -279,7 +279,7 @@ function onLearn!(wOut,
wOutChange,
arrayProjection4d)
# merge learning weight with average learning weight
wRec .+= (sum(wRecChange, dims=4) ./ (size(wRec, 4))) .* arrayProjection4d
wOut .+= (sum(wOutChange, dims=4) ./ (size(wOut, 4))) .* arrayProjection4d
# adaptive wOut to help convergence using c_decay
wOut .-= 0.001 .* wOut