Skip to content

Commit 1e37447

Browse files
committed
Fix 270. Use 'random_state' parameter instead of 'seed' parameter.
1 parent 9c4dcbf commit 1e37447

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cuml/coordinate_descent_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"X = cudf.DataFrame.from_gpu_matrix(X)\n",
7676
"y = cudf.DataFrame.from_gpu_matrix(y)[0]\n",
7777
"\n",
78-
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, seed=random_state)"
78+
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, random_state=random_state)"
7979
]
8080
},
8181
{

cuml/linear_regression_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"X = cudf.DataFrame.from_gpu_matrix(X)\n",
6565
"y = cudf.DataFrame.from_gpu_matrix(y)[0]\n",
6666
"\n",
67-
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, seed=random_state)"
67+
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, random_state=random_state)"
6868
]
6969
},
7070
{

cuml/ridge_regression_demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"X = cudf.DataFrame.from_gpu_matrix(X)\n",
6767
"y = cudf.DataFrame.from_gpu_matrix(y)[0]\n",
6868
"\n",
69-
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, seed=random_state)"
69+
"X_cudf, X_cudf_test, y_cudf, y_cudf_test = train_test_split(X, y, test_size = 0.2, random_state=random_state)"
7070
]
7171
},
7272
{

0 commit comments

Comments
 (0)