Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Created June 14, 2020 00:29
Show Gist options
  • Save securetorobert/afc380da79f99c14b144954f1ba288a7 to your computer and use it in GitHub Desktop.
Save securetorobert/afc380da79f99c14b144954f1ba288a7 to your computer and use it in GitHub Desktop.
Split boston housing data
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(predictors, target, test_size=0.3, random_state=40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment