I think we can avoid this computation (happening during landmark creation):
|
distances = cdist(data, data[landmark_indices], metric="euclidean") |
Since we compute the distances between every pair of points here:
|
distances, indices = knn_tree.kneighbors(Y, n_neighbors=search_knn) |
I think we can avoid this computation (happening during landmark creation):
graphtools/graphtools/graphs.py
Line 1066 in c18d494
Since we compute the distances between every pair of points here:
graphtools/graphtools/graphs.py
Line 698 in c18d494