khannaekta commented on a change in pull request #427: KNN: Add distances to
the output table
URL: https://github.com/apache/madlib/pull/427#discussion_r310827487
##########
File path: src/ports/postgres/modules/knn/knn.sql_in
##########
@@ -388,14 +393,15 @@ SELECT * FROM madlib.knn(
SELECT * FROM knn_result_classification ORDER BY id;
</pre>
<pre class="result">
+ id | data | prediction | k_nearest_neighbours | distance
+----+---------+------------+----------------------+---------------------
+ 1 | {2,1} | 1 | {1,2,3} | {1,1,5}
+ 2 | {2,6} | 1 | {5,4,3} | {5,8,10}
+ 3 | {15,40} | 0 | {7,6,5} | {106,125,1346}
+ 4 | {12,1} | 1 | {4,5,3} | {73,80,85}
+ 5 | {2,90} | 0 | {9,6,7} | {442,1924,3545}
+ 6 | {50,45} | 0 | {6,7,8} | {925,1796,1985}
id | data | prediction | k_nearest_neighbours
Review comment:
Duplicate Line
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services