Skip to content

Commit fcc086e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 47b8562 commit fcc086e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

machine_learning/approx_nearest_neighbors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://en.wikipedia.org/wiki/Nearest_neighbor_search#Approximate_nearest_neighbor
44
55
ANN search finds "close enough" vectors instead of the exact nearest neighbor,
6-
which makes it much faster for large datasets.
6+
which makes it much faster for large datasets.
77
This implementation uses a simple **random projection hashing** method.
88
99
Steps:
@@ -103,4 +103,5 @@ def query(self, q: np.ndarray) -> list[list[list[float] | float]]:
103103

104104
if __name__ == "__main__":
105105
import doctest
106+
106107
doctest.testmod()

0 commit comments

Comments
 (0)