-
-
Save amankharwal/2b284d19e3b400fe78e48d9211971146 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.cross_validation import train_test_split | |
from sklearn.cross_validation import StratifiedShuffleSplit | |
# Split data into train and test sets as well as for validation and testing | |
train, test, target_train, target_val = train_test_split(attrition_final, | |
target, | |
train_size= 0.80, | |
random_state=0); | |
#train, test, target_train, target_val = StratifiedShuffleSplit(attrition_final, target, random_state=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment