Skip to content

Commit

Permalink
Add order='C' for transform input array check
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Sep 17, 2019
1 parent c0c8878 commit e5cbac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ def transform(self, X):
"only a single data sample."
)
# If we just have the original input then short circuit things
X = check_array(X, dtype=np.float32, accept_sparse="csr")
X = check_array(X, dtype=np.float32, accept_sparse="csr", order='C')
x_hash = joblib.hash(X)
if x_hash == self._input_hash:
return self.embedding_
Expand Down

0 comments on commit e5cbac0

Please sign in to comment.