Skip to content

Commit 6380810

Browse files
author
Lukas Molzberger
committed
revert
1 parent 0d7d8b6 commit 6380810

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/aika/training/LongTermLearning.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static void longTermPotentiation(Document doc, Config config, Activation
111111
// n.posDirSum wird bei Oder-Neuronen sehr groß.
112112
double norm = n.posDirSum + n.posRecSum > 0.0 ? (iaSum / (n.posDirSum + n.posRecSum)) : 1.0;
113113

114-
double x = config.ltpLearnRate * act.getFinalState().value * (1.0 - act.getFinalState().value) * norm;
114+
double x = config.ltpLearnRate * (1.0 - act.getFinalState().value) * norm;
115115

116116
doc.getFinalActivations().filter(iAct -> iAct.key.node != act.key.node).forEach(iAct -> {
117117
Result r = config.synapseEvaluation.evaluate(null, iAct, act);
@@ -129,6 +129,7 @@ public static void longTermPotentiation(Document doc, Config config, Activation
129129
doc.notifyWeightsModified(n, n.inputSynapses.values());
130130
}
131131

132+
132133
/**
133134
* The long-term depression algorithm decreases the strength of a synapse if only one side of the synapse is
134135
* firing. The algorithm tries however to preserve the logical characteristic of the synapse. If for example the

0 commit comments

Comments
 (0)