Skip to content

Commit 8c42ba9

Browse files
committed
Fix missing random_state
1 parent f0521dc commit 8c42ba9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sklearn_extra/kernel_approximation/_fastfood.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def fit(self, X, y=None):
178178
self._S = np.multiply(1 / self.l2norm_along_axis1(self._G)
179179
.reshape((-1, 1)),
180180
chi.rvs(self._d,
181-
size=(self._times_to_stack_v, self._d)))
181+
size=(self._times_to_stack_v, self._d),
182+
random_state=self.random_state))
182183

183184
self._U = self.uniform_vector()
184185

@@ -205,6 +206,3 @@ def transform(self, X):
205206
X_padded)
206207
VX = self.scale_transformed_data(self._S, HGPHBX)
207208
return self.phi(VX)
208-
209-
def _more_tags(self):
210-
return {'non_deterministic': True}

0 commit comments

Comments
 (0)