Skip to content

Instantly share code, notes, and snippets.

@kperry2215
Created July 30, 2019 22:29
Show Gist options
  • Save kperry2215/567f6a4131807eb5d2b231bc4db83102 to your computer and use it in GitHub Desktop.
Save kperry2215/567f6a4131807eb5d2b231bc4db83102 to your computer and use it in GitHub Desktop.
# Split the data into training and testing sets
train_features, test_features, train_labels, test_labels = train_test_split(features,
labels,
test_size = 0.25,
random_state = 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment