Skip to content

Instantly share code, notes, and snippets.

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 saimadhu-polamuri/8301739390e1444a3a702210930d0424 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/8301739390e1444a3a702210930d0424 to your computer and use it in GitHub Desktop.
# Split data into train and test datasets
x_train, x_test, y_train, y_test = train_test_split(
data['text'], data['label'], test_size=0.33, random_state=7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment