Signed-off-by: Alireza Fatemi <seyedalirezafatemijahromi@gmail.com>
This commit is contained in:
parent
2745dd51bd
commit
8d394f5726
|
@ -299,7 +299,7 @@ A space corresponds to the function used to measure the distance between two poi
|
|||
<td>\[ d(\mathbf{x}, \mathbf{y}) = 1 - cos { \theta } = 1 - {\mathbf{x} · \mathbf{y} \over \|\mathbf{x}\| · \|\mathbf{y}\|}\]\[ = 1 -
|
||||
{\sum_{i=1}^n x_i y_i \over \sqrt{\sum_{i=1}^n x_i^2} · \sqrt{\sum_{i=1}^n y_i^2}}\]
|
||||
where \(\|\mathbf{x}\|\) and \(\|\mathbf{y}\|\) represent the norms of vectors x and y respectively.</td>
|
||||
<td><b>nmslib</b> and <b>faiss:</b>\[ score = {1 \over 1 + d } \]<br><b>Lucene:</b>\[ score = {1 + d \over 2}\]</td>
|
||||
<td><b>nmslib</b> and <b>faiss:</b>\[ score = {1 \over 1 + d } \]<br><b>Lucene:</b>\[ score = {2 - d \over 2}\]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>innerproduct (not supported for Lucene)</td>
|
||||
|
|
|
@ -306,10 +306,10 @@ A space corresponds to the function used to measure the distance between two poi
|
|||
</tr>
|
||||
<tr>
|
||||
<td>cosinesimil</td>
|
||||
<td>\[ d(\mathbf{x}, \mathbf{y}) = cos \theta = {\mathbf{x} · \mathbf{y} \over \|\mathbf{x}\| · \|\mathbf{y}\|}\]\[ =
|
||||
<td>\[ d(\mathbf{x}, \mathbf{y}) = 1 - cos { \theta } = 1 - {\mathbf{x} · \mathbf{y} \over \|\mathbf{x}\| · \|\mathbf{y}\|}\]\[ = 1 -
|
||||
{\sum_{i=1}^n x_i y_i \over \sqrt{\sum_{i=1}^n x_i^2} · \sqrt{\sum_{i=1}^n y_i^2}}\]
|
||||
where \(\|\mathbf{x}\|\) and \(\|\mathbf{y}\|\) represent normalized vectors.</td>
|
||||
<td>\[ score = 1 + d \]</td>
|
||||
where \(\|\mathbf{x}\|\) and \(\|\mathbf{y}\|\) represent the norms of vectors x and y respectively.</td>
|
||||
<td>\[ score = 2 - d \]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>innerproduct (not supported for Lucene)</td>
|
||||
|
|
Loading…
Reference in New Issue