Skip to content

Instantly share code, notes, and snippets.

@wtberry
Created June 25, 2019 05:01
Show Gist options
  • Save wtberry/37f6bafc9e172d56be8542dacffa1771 to your computer and use it in GitHub Desktop.
Save wtberry/37f6bafc9e172d56be8542dacffa1771 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