Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created April 20, 2019 05:07
Show Gist options
  • Save StrikingLoo/f1b1da853ae204ff586c1e6725052b31 to your computer and use it in GitHub Desktop.
Save StrikingLoo/f1b1da853ae204ff586c1e6725052b31 to your computer and use it in GitHub Desktop.
print('# Fit model on training data')
history = model.fit(x_train,
x_train, #we pass it the same input data as desired output
#If the model is taking forever to train, make this bigger
#If it is taking forever to load for the first epoch, make this smaller
batch_size=256,
epochs=10,
# We pass it validation data to
# monitor loss and metrics
# at the end of each epoch
validation_data=(x_valid, x_valid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment