Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created March 20, 2022 17:53
Show Gist options
  • Save kshirsagarsiddharth/c1776b0fbeba2ea5ea0b4fc04eec77e0 to your computer and use it in GitHub Desktop.
Save kshirsagarsiddharth/c1776b0fbeba2ea5ea0b4fc04eec77e0 to your computer and use it in GitHub Desktop.
X_train, X_test, y_train, y_test \
= train_test_split(X, y, test_size=0.1, random_state=1)
X_train, X_valid, y_train, y_valid \
= train_test_split(X_train, y_train, test_size=0.1, random_state=1)
X_train.shape, X_test.shape, X_valid.shape
((4131, 8), (511, 8), (459, 8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment