post assignment 4 solution
This commit is contained in:
parent
a1cbf87f32
commit
15c5c0c9c4
@ -98,6 +98,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
" return df, df_nomralized\n",
|
" return df, df_nomralized\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"\n",
|
||||||
"def train_test_split(X, y, test_size=0.2):\n",
|
"def train_test_split(X, y, test_size=0.2):\n",
|
||||||
" # Split the dataset into train and test sets\n",
|
" # Split the dataset into train and test sets\n",
|
||||||
" idx = np.arange(X.shape[0])\n",
|
" idx = np.arange(X.shape[0])\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user