Skip to content

Instantly share code, notes, and snippets.

@KananMahammadli
Created August 21, 2021 12:33
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 KananMahammadli/17523cbbd084c728a31024c116133112 to your computer and use it in GitHub Desktop.
Save KananMahammadli/17523cbbd084c728a31024c116133112 to your computer and use it in GitHub Desktop.
from sklearn.model_selection import train_test_split
X_train, X_val, y_train, y_val = train_test_split(train_images, train_labels, stratify=train_labels, test_size=0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment