Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created April 21, 2019 12:20
Show Gist options
  • Select an option

  • Save prateekjoshi565/a49ce71ece25fd4cdef42d22369d8b26 to your computer and use it in GitHub Desktop.

Select an option

Save prateekjoshi565/a49ce71ece25fd4cdef42d22369d8b26 to your computer and use it in GitHub Desktop.
genre_traintest_split
# split dataset into training and validation set
xtrain, xval, ytrain, yval = train_test_split(movies_new['clean_plot'], y, test_size=0.2, random_state=9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment