From bbda12bae8eb73438ac77c3e2e6295d04dadd76c Mon Sep 17 00:00:00 2001 From: ton Date: Thu, 10 Aug 2023 13:32:32 +0700 Subject: [PATCH] minor fix --- src/learn.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/learn.jl b/src/learn.jl index 9f185d1..f147b2a 100644 --- a/src/learn.jl +++ b/src/learn.jl @@ -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