Skip to content

Commit 43b52ab

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

machine_learning/approx_nearest_neighbours.py

Lines changed: 2 additions & 4 deletions
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:
@@ -104,7 +104,5 @@ def query(self, q: np.ndarray) -> list[list[list[float] | float]]:
104104

105105
if __name__ == "__main__":
106106
import doctest
107-
doctest.testmod()
108-
109-
110107

108+
doctest.testmod()

0 commit comments

Comments
 (0)