You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2020/06/28 22:57:48 UTC

[commons-math] 07/08: Condition does not apply.

This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 824d92fac676a5bbde947a437f1698960edf3bc6
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sun Jun 28 11:13:24 2020 +0200

    Condition does not apply.
---
 .../org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java b/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
index 17055da..b30e06a 100644
--- a/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
+++ b/src/main/java/org/apache/commons/math4/ml/neuralnet/twod/NeuronSquareMesh2D.java
@@ -756,8 +756,9 @@ public class NeuronSquareMesh2D
                         hitHistogram[r][c] = hitCount / (double) numSamples;
                         quantizationError[r][c] /= hitCount;
                         topographicError[r][c] /= hitCount;
-                        uMatrix[r][c] = uDistance / neighbourCount;
                     }
+
+                    uMatrix[r][c] = uDistance / neighbourCount;
                 }
             }