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
commit 2297d78063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ A space corresponds to the function used to measure the distance between two poi
</tr> </tr>
<tr> <tr>
<td>innerproduct</td> <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> <td>if (Distance Function >= 0) 1 / (1 + Distance Function) else -Distance Function + 1</td>
</tr> </tr>
</table> </table>

View File

@ -312,8 +312,8 @@ A space corresponds to the function used to measure the distance between two poi
</tr> </tr>
<tr> <tr>
<td>innerproduct</td> <td>innerproduct</td>
<td>\[ Distance(X, Y) = \sum_{i=1}^n (X_i - Y_i) \]</td> <td>\[ Distance(X, Y) = -{A &middot; B} \]</td>
<td>1 / (1 + Distance Function)</td> <td>if (Distance Function >= 0) 1 / (1 + Distance Function) else -Distance Function + 1</td>
</tr> </tr>
<tr> <tr>
<td>hammingbit</td> <td>hammingbit</td>