Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created March 6, 2019 18:58
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 prateekjoshi565/9713b49b6f9685789ec8aee594c61f84 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/9713b49b6f9685789ec8aee594c61f84 to your computer and use it in GitHub Desktop.
split data elmo
from sklearn.model_selection import train_test_split
xtrain, xvalid, ytrain, yvalid = train_test_split(elmo_train_new,
train['label'],
random_state=42,
test_size=0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment