Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Last active November 12, 2020 06:52
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 amankharwal/c0aed38a809a4f1a56e48924d9c3e823 to your computer and use it in GitHub Desktop.
Save amankharwal/c0aed38a809a4f1a56e48924d9c3e823 to your computer and use it in GitHub Desktop.
X = final_data[['Timestamp', 'Latitude', 'Longitude']]
y = final_data[['Magnitude', 'Depth']]
from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
print(X_train.shape, X_test.shape, y_train.shape, X_test.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment