We don't need to build this stuff if we use pynndescent
@@ -1681,6 +1681,7 @@ class UMAP(BaseEstimator):
self.verbose,
)
+ if not _HAVE_PYNNDESCENT:
self._search_graph = scipy.sparse.lil_matrix(
(X[index].shape[0], X[index].shape[0]), dtype=np.int8
)
