Merge pull request #36 from jmazanec15/knn-mapping-refactor
Fix score conversion for inner product
This commit is contained in:
commit
2297d78063
|
@ -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 · B} \]</td>
|
<td>\[ Distance(X, Y) = - {A · 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>
|
||||||
|
|
|
@ -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 · 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>
|
||||||
|
|
Loading…
Reference in New Issue