Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # here we have set test_size as 0.2 which indicate 20% data is test data
- X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2)
- print('shape of X_train, X_test, y_train, y_testt: ', X_train.shape, X_test.shape ,y_train.shape,y_test.shape)
Add Comment
Please, Sign In to add comment