Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Use train_test_split under sklearn.model_selection #384

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/finding_donors/finding_donors.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"outputs": [],
"source": [
"# Import train_test_split\n",
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"\n",
"# Split the 'features' and 'income' data into training and testing sets\n",
"X_train, X_test, y_train, y_test = train_test_split(features_final, \n",
Expand Down