Skip to content

Instantly share code, notes, and snippets.

@alinazhanguwo
Created April 24, 2019 20:31
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 alinazhanguwo/3b3f2e7aa9c3104d603fc1a0eec8a599 to your computer and use it in GitHub Desktop.
Save alinazhanguwo/3b3f2e7aa9c3104d603fc1a0eec8a599 to your computer and use it in GitHub Desktop.
# create train and test datasets
X_train, X_test, Y_train, Y_test = train_test_split(X,Y, test_size = 0.33, random_state = 42)
print("Trianing ", X_train.shape,Y_train.shape)
print("Testing ",X_test.shape,Y_test.shape)
batch_size = 32
model.fit(X_train, Y_train, epochs = 20, batch_size=batch_size, verbose = 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment