Fix description of cosinesimil distance function (#2214)
Signed-off-by: Mauricio Scheffer <mauricioscheffer@gmail.com> Signed-off-by: Mauricio Scheffer <mauricioscheffer@gmail.com>
This commit is contained in:
parent
a41457242e
commit
2320a4b281
|
@ -305,7 +305,7 @@ A space corresponds to the function used to measure the distance between two poi
|
|||
<td>cosinesimil</td>
|
||||
<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>
|
||||
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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue