Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created September 9, 2021 14:38
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 sgsg704/0f03b0cc015b2b588be184361af7eba4 to your computer and use it in GitHub Desktop.
Save sgsg704/0f03b0cc015b2b588be184361af7eba4 to your computer and use it in GitHub Desktop.
#spliting test and training sets
X_train, X_test, y_train,y_test = train_test_split(X_df,y,test_size=0.25,random_state=7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment