Skip to content

Commit 0742a76

Browse files
FIX Make arrays C-contiguous in FastFood (#109)
1 parent 38e260f commit 0742a76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn_extra/kernel_approximation/_fastfood.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def fit(self, X, y=None):
167167
self : object
168168
Returns the transformer.
169169
"""
170-
X = check_array(X, dtype=np.float64)
170+
X = check_array(X, order="C", dtype=np.float64)
171171

172172
d_orig = X.shape[1]
173173
rng = check_random_state(self.random_state)
@@ -217,7 +217,7 @@ def transform(self, X):
217217
-------
218218
X_new : array-like, shape (n_samples, n_components)
219219
"""
220-
X = check_array(X, dtype=np.float64)
220+
X = check_array(X, order="C", dtype=np.float64)
221221
X_padded = self._pad_with_zeros(X)
222222
HGPHBX = self._apply_approximate_gaussian_matrix(
223223
self._B, self._G, self._P, X_padded

0 commit comments

Comments
 (0)