From 6ed00af7d069ec9e2b2a0c98dfe77ae2529200d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Sat, 5 Nov 2016 14:25:56 +0100 Subject: [PATCH] Move to sklearn 0.18 --- 07_ensemble_learning_and_random_forests.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/07_ensemble_learning_and_random_forests.ipynb b/07_ensemble_learning_and_random_forests.ipynb index 0c716b8..879b454 100644 --- a/07_ensemble_learning_and_random_forests.ipynb +++ b/07_ensemble_learning_and_random_forests.ipynb @@ -117,7 +117,7 @@ }, "outputs": [], "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", @@ -634,7 +634,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", @@ -767,7 +767,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.1" + "version": "3.5.2" }, "nav_menu": { "height": "252px",