Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created February 19, 2021 07:10
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/1b6b1f28818c041807aea85f894b3087 to your computer and use it in GitHub Desktop.
Save AyishaR/1b6b1f28818c041807aea85f894b3087 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