Guest User

Untitled

a guest
Dec 19th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # here we have set test_size as 0.2 which indicate 20% data is test data
  2. X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2)
  3.  
  4. 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