8000 add random_state (#9542) · maskani-moh/scikit-learn@c4e72c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4e72c7

Browse files
qinhanmin2014maskani-moh
authored andcommitted
add random_state (scikit-learn#9542)
1 parent 897fb70 commit c4e72c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tests/test_kernel_ridge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from sklearn.utils.testing import assert_array_almost_equal
1111

1212

13-
X, y = make_regression(n_features=10)
13+
X, y = make_regression(n_features=10, random_state=0)
1414
Xcsr = sp.csr_matrix(X)
1515
Xcsc = sp.csc_matrix(X)
1616
Y = np.array([y, y]).T

0 commit comments

Comments
 (0)
0