Train test split
from sklearn.model_selection import train_test_split
train_x, train_y, test_x, test_y = train_test_split(X, y, test_size=0.3)
#0.3 == 30% Test set
#Default 25% Test set
#My usual value 20% Test set
from sklearn.model_selection import train_test_split
train_x, train_y, test_x, test_y = train_test_split(X, y, test_size=0.3)
#0.3 == 30% Test set
#Default 25% Test set
#My usual value 20% Test set