Skip to content

Instantly share code, notes, and snippets.

@marcosatanaka
Created April 24, 2018 20:08
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 marcosatanaka/08636a44854e70e88fc98b13aa177c1a to your computer and use it in GitHub Desktop.
Save marcosatanaka/08636a44854e70e88fc98b13aa177c1a to your computer and use it in GitHub Desktop.
# Misturando e separando os dados em conjuntos de treinamento e teste
X_train, X_test, y_train, y_test = train_test_split(features, prices, test_size = 0.2, random_state = 123)
print "\nSeparação entre treinamento e teste feita com êxito.\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment