Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created January 30, 2021 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyishaR/6112400c4d887f9774206e001cd480d6 to your computer and use it in GitHub Desktop.
Save AyishaR/6112400c4d887f9774206e001cd480d6 to your computer and use it in GitHub Desktop.
# Splitting into train and val set -- 80-20 split
Xtrain, Xval, ytrain, yval = 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