From 08ccc9463894f27d52df7a9590b36727f1a83d2c Mon Sep 17 00:00:00 2001 From: wengJJ <31797645+wengJJ@users.noreply.github.com> Date: Thu, 6 Sep 2018 22:11:27 +0800 Subject: [PATCH] Update Day 25_Decision_Tree.md --- Code/Day 25_Decision_Tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Day 25_Decision_Tree.md b/Code/Day 25_Decision_Tree.md index 5966e97..60ea7a6 100644 --- a/Code/Day 25_Decision_Tree.md +++ b/Code/Day 25_Decision_Tree.md @@ -18,7 +18,7 @@ y = dataset.iloc[:, 4].values ``` ### 将数据集拆分为训练集和测试集 ```python -from sklearn.cross_validation import train_test_split +from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.25, random_state = 0) ```