Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Last active October 23, 2020 09:51
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 BinarySpoon/9985e866d7fc0a53c15c5fa48f9cf96d to your computer and use it in GitHub Desktop.
Save BinarySpoon/9985e866d7fc0a53c15c5fa48f9cf96d to your computer and use it in GitHub Desktop.
# train test split -->
labels = cancerdf['target']
data.drop('target',axis=1,inplace=1)
features = data
X_train, X_test, y_train, y_test = train_test_split(features,labels,random_state=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment