Skip to content

Commit

Permalink
Move to sklearn 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Nov 5, 2016
1 parent 829a624 commit bab7760
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 07_ensemble_learning_and_random_forests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
],
"source": [
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.datasets import make_moons\n",
"\n",
"X, y = make_moons(n_samples=500, noise=0.30, random_state=42)\n",
Expand Down Expand Up @@ -906,7 +906,7 @@
},
"outputs": [],
"source": [
"from sklearn.cross_validation import train_test_split\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.metrics import mean_squared_error\n",
"\n",
"X_train, X_val, y_train, y_val = train_test_split(X, y)\n",
Expand Down Expand Up @@ -1080,7 +1080,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
"version": "3.5.2"
},
"nav_menu": {
"height": "252px",
Expand Down

0 comments on commit bab7760

Please sign in to comment.