File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/network/aika Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 55 <groupId >org.aika-software</groupId >
66 <artifactId >aika</artifactId >
77 <packaging >jar</packaging >
8- <version >0.21-SNAPSHOT </version >
8+ <version >0.21-RC2 </version >
99 <name >aika</name >
1010 <url >http://aika.network</url >
1111 <description >An artificial intelligence for knowledge acquisition</description >
Original file line number Diff line number Diff line change @@ -229,7 +229,8 @@ private void initInputNodesAndComputeWeightSums() {
229229 sumDelta [s .isRecurrent ? RECURRENT : DIRECT ][s .getNewWeight () <= 0.0 ? NEGATIVE : POSITIVE ] += (s .limit + s .limitDelta ) * s .getNewWeight ();
230230
231231 if (in .isPassiveInputNeuron () && !s .isNegative ()) {
232- posPassiveSumDelta += ((s .limit + s .limitDelta ) * s .getNewWeight ()) - (s .limit * s .weight );
232+ posPassiveSumDelta -= !s .isNegative () ? (s .limit * s .weight ) : 0.0 ;
233+ posPassiveSumDelta += s .getNewWeight () > 0.0 ? ((s .limit + s .limitDelta ) * s .getNewWeight ()) : 0.0 ;
233234 }
234235
235236 if (s .isConjunction (false , true ) && !s .isConjunction (true , true )) {
You can’t perform that action at this time.
0 commit comments