Skip to content

Instantly share code, notes, and snippets.

@gabriel19913
Created November 27, 2019 11:04
Show Gist options
  • Save gabriel19913/66ced233ac374f3864612cf0c50b9056 to your computer and use it in GitHub Desktop.
Save gabriel19913/66ced233ac374f3864612cf0c50b9056 to your computer and use it in GitHub Desktop.
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment