Skip to content

Commit

Permalink
Missed a case of scipy lil matrix handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Jun 29, 2020
1 parent 23e23fa commit cf3d66c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pynndescent/pynndescent_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1524,8 +1524,8 @@ def transform(self, X, y=None):
)

result = lil_matrix((n_samples_transform, self.n_samples_fit), dtype=np.float32)
result.rows = indices
result.data = distances
result.rows[:] = indices.tolist()
result.data[:] = distances.tolist()

return result.tocsr()

Expand Down

0 comments on commit cf3d66c

Please sign in to comment.