Created
March 15, 2021 17:52
-
-
Save oscar-defelice/7788d6267f220a2b6414f87bf55534cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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.model_selection import train_test_split | |
X = pd.DataFrame(np.c_[df[df.columns[:-1]]], columns = df.columns[:-1]) | |
Y = df.target | |
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.2, random_state=42) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment