From 6ad7c3d7ebbe898de4a1c37f6f1b0b494d34e145 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Thu, 1 Sep 2022 13:45:08 -0500 Subject: [PATCH] Fix innerproduct function to match Dot Product (#1004) * Fix innerproduct function to match Dot Product Signed-off-by: Naarcha-AWS * Fix formatting Signed-off-by: Naarcha-AWS * Use dot instead Signed-off-by: Naarcha-AWS * Remove parenthesies Signed-off-by: Naarcha-AWS * Remove space Signed-off-by: Naarcha-AWS Signed-off-by: Naarcha-AWS (cherry picked from commit d65b56fb33be7c93bda3b9287e3160471ef60449) --- _search-plugins/knn/knn-score-script.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_search-plugins/knn/knn-score-script.md b/_search-plugins/knn/knn-score-script.md index a2819f7568..a02e85defd 100644 --- a/_search-plugins/knn/knn-score-script.md +++ b/_search-plugins/knn/knn-score-script.md @@ -313,7 +313,7 @@ A space corresponds to the function used to measure the distance between two poi innerproduct - \[ Distance(X, Y) = \sum_{i=1}^n (X_i - Y_i) \] + \[ Distance(X, Y) = \sum_{i=1}^n X_iY_i \] 1 / (1 + Distance Function)