flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Diomin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-4148) incorrect calculation distance in QuadTree
Date Mon, 04 Jul 2016 12:34:11 GMT
Alexey Diomin created FLINK-4148:
------------------------------------

             Summary: incorrect calculation distance in QuadTree
                 Key: FLINK-4148
                 URL: https://issues.apache.org/jira/browse/FLINK-4148
             Project: Flink
          Issue Type: Bug
            Reporter: Alexey Diomin
            Priority: Trivial


https://github.com/apache/flink/blob/master/flink-libraries/flink-ml/src/main/scala/org/apache/flink/ml/nn/QuadTree.scala#L105

Because EuclideanDistanceMetric extends SquaredEuclideanDistanceMetric we always move in first
case and never reach case for math.sqrt(minDist)

correct match first EuclideanDistanceMetric and after it SquaredEuclideanDistanceMetric



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message