Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created July 14, 2023 12:41
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 quantra-go-algo/489f6e30d354d453ae9b340552037546 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/489f6e30d354d453ae9b340552037546 to your computer and use it in GitHub Desktop.
# Splitiing the X and y into train and test datasets
X_train, X_test = X[:split], X[split:]
y_train, y_test = y[:split], y[split:]
# Print the size of the train and test dataset
print(X_train.shape, X_test.shape)
print(y_train.shape, y_test.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment