Merge pull request #36 from jmazanec15/knn-mapping-refactor

Fix score conversion for inner product
This commit is contained in:
Andrew Etter
2021-05-28 13:52:03 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ A space corresponds to the function used to measure the distance between two poi
</tr>
<tr>
<td>innerproduct</td>
<td>\[ Distance(X, Y) = {A &middot; B} \]</td>
<td>\[ Distance(X, Y) = - {A &middot; B} \]</td>
<td>if (Distance Function >= 0) 1 / (1 + Distance Function) else -Distance Function + 1</td>
</tr>
</table>
+2 -2
View File
@@ -312,8 +312,8 @@ A space corresponds to the function used to measure the distance between two poi
</tr>
<tr>
<td>innerproduct</td>
<td>\[ Distance(X, Y) = \sum_{i=1}^n (X_i - Y_i) \]</td>
<td>1 / (1 + Distance Function)</td>
<td>\[ Distance(X, Y) = -{A &middot; B} \]</td>
<td>if (Distance Function >= 0) 1 / (1 + Distance Function) else -Distance Function + 1</td>
</tr>
<tr>
<td>hammingbit</td>