From 8e7b8bb4c4cf28e7aa92023222925e3ff066c03e Mon Sep 17 00:00:00 2001 From: nicozhang <315393472@qq.com> Date: Thu, 13 Sep 2018 12:44:59 +0800 Subject: [PATCH] cross_validation deprecation warings modify cross_validation to sklearn.model_selection :) --- Code/Day 1_Data PreProcessing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Day 1_Data PreProcessing.md b/Code/Day 1_Data PreProcessing.md index 569d0e6..9489031 100644 --- a/Code/Day 1_Data PreProcessing.md +++ b/Code/Day 1_Data PreProcessing.md @@ -39,7 +39,7 @@ Y = labelencoder_Y.fit_transform(Y) ``` ## Step 5: Splitting the datasets into training sets and Test sets ```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.2, random_state = 0) ```