Skip to content

Instantly share code, notes, and snippets.

@jeetaf
Created June 29, 2021 11:11
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 jeetaf/8b1a1d4c72883f2a85dbb6be126946a9 to your computer and use it in GitHub Desktop.
Save jeetaf/8b1a1d4c72883f2a85dbb6be126946a9 to your computer and use it in GitHub Desktop.
x_train, x_test, y_train, y_test = train_test_split(x, y, test_size = 0.2, random_state = 0, stratify = y)
x_train.shape
x_test.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment