From 41ede79f600f9f2f4cc96a27fe8cf0d1807ba74d Mon Sep 17 00:00:00 2001 From: wengJJ <31797645+wengJJ@users.noreply.github.com> Date: Thu, 6 Sep 2018 22:26:22 +0800 Subject: [PATCH] Update Day 3_Multiple_Linear_Regression.ipynb --- Code/Day 3_Multiple_Linear_Regression.ipynb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Code/Day 3_Multiple_Linear_Regression.ipynb b/Code/Day 3_Multiple_Linear_Regression.ipynb index 0875bf2..979fe09 100644 --- a/Code/Day 3_Multiple_Linear_Regression.ipynb +++ b/Code/Day 3_Multiple_Linear_Regression.ipynb @@ -104,18 +104,8 @@ "cell_type": "code", "execution_count": 5, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/home/ymao/usr/miniconda/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.\n", - " \"This module will be removed in 0.20.\", DeprecationWarning)\n" - ] - } - ], "source": [ - "from sklearn.cross_validation import train_test_split\n", + "from sklearn.model_selection import train_test_split\n", "X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.2, random_state = 0)" ] },