change how to random neuron's initial weight

This commit is contained in:
ton
2023-08-26 17:19:22 +07:00
parent 3ca52b03f5
commit bf78ca5086
3 changed files with 3 additions and 62 deletions

View File

@@ -437,6 +437,7 @@ function neuroplasticity(synapticConnectionNumber,
projection = ones(i1,i2,i3)
zitMask = zitMask .* projection # (row, col, n)
totalNewConn = sum(isequal.(wRec, -1.0), dims=(1,2)) # count new conn mark (-1.0), (1, 1, n)
# println("neuroplasticity, from $synapticConnectionNumber, $totalNewConn are replaced")
# clear -1.0 marker
GeneralUtils.replace_elements!(wRec, -1.0, synapticInactivityCounter, -0.99)