Train test split

PHOTO EMBED

Sat Aug 13 2022 14:19:44 GMT+0000 (Coordinated Universal Time)

Saved by @pathikg #python

from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42)
content_copyCOPY

splits data into training and test set