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-RC1 </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 @@ -215,7 +215,8 @@ private void initInputNodesAndComputeWeightSums() {
215215 sumDelta [s .isRecurrent ? RECURRENT : DIRECT ][s .getNewWeight () <= 0.0 ? NEGATIVE : POSITIVE ] += (s .limit + s .limitDelta ) * s .getNewWeight ();
216216
217217 if (in .isPassiveInputNeuron () && !s .isNegative ()) {
218- posPassiveSumDelta += ((s .limit + s .limitDelta ) * s .getNewWeight ()) - (s .limit * s .weight );
218+ posPassiveSumDelta += !s .isNegative () ? ((s .limit + s .limitDelta ) * s .getNewWeight ()) : 0.0 ;
219+ posPassiveSumDelta -= s .getNewWeight () > 0.0 ? (s .limit * s .weight ) : 0.0 ;
219220 }
220221
221222 if (s .isConjunction (false , true ) && !s .isConjunction (true , true )) {
You can’t perform that action at this time.
0 commit comments