Skip to content

Commit fc11012

Browse files
author
Lukas Molzberger
committed
fix
1 parent 4bb5dd8 commit fc11012

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/network/aika/neuron/activation/Activation.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,9 @@ private Activation getInputExcitatoryActivation() {
669669

670670

671671
private Link getStrongestLink() {
672+
if(inputLinks.size() == 1) {
673+
return inputLinks.firstEntry().getValue();
674+
}
672675
return inputLinks
673676
.values()
674677
.stream()

0 commit comments

Comments
 (0)