Skip to content

Instantly share code, notes, and snippets.

@wtberry
Created June 25, 2019 05:01
Show Gist options
  • Save wtberry/6e5f650d67690795164092b61c2fd95b to your computer and use it in GitHub Desktop.
Save wtberry/6e5f650d67690795164092b61c2fd95b to your computer and use it in GitHub Desktop.
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(word_mat, y, test_size=0.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment