Skip to content

Commit

Permalink
Docs: fixed error in Tour de Elastiknn post
Browse files Browse the repository at this point in the history
  • Loading branch information
alexklibisz committed Aug 19, 2021
1 parent 94afe6b commit 1d3eac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_posts/2021-07-30-how-does-elastiknn-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ This hash function is defined more precisely as:

$$h_j(v) = \lfloor \frac{A_j \cdot v + B_j}{w} \rfloor$$

Each vector $$A_j$$ is sampled from a standard Normal distribution and each scalar $$B_j$$ is sampled from a uniform distribution in $$[0, 1]$$.
Each vector $$A_j$$ is sampled from a standard Normal distribution and each scalar $$B_j$$ is sampled from a uniform distribution in $$[0, w]$$.

The width $$w$$ is provided as a hyper-parameter and depends on the magnitude of the vectors.
As vector values increase, the scalar projections will increase, so $$w$$ should also increase.
Expand Down

0 comments on commit 1d3eac7

Please sign in to comment.