-
-
Save amankharwal/c0aed38a809a4f1a56e48924d9c3e823 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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