Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created March 27, 2021 10:18
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/cdee030ff65c40154d8d16c81e42a508 to your computer and use it in GitHub Desktop.
Save AyishaR/cdee030ff65c40154d8d16c81e42a508 to your computer and use it in GitHub Desktop.
# Splitting into train and val set -- 90-10 split
train_df, val_df = train_test_split(df, test_size = 0.1)
print("Number of samples in...")
print("Training set: ", len(train_df))
print("Validation set: ", len(val_df))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment