Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created January 22, 2021 00:32
Show Gist options
  • Save john-adeojo/6f80fc9e56e1c8010613dea8885eb2fb to your computer and use it in GitHub Desktop.
Save john-adeojo/6f80fc9e56e1c8010613dea8885eb2fb to your computer and use it in GitHub Desktop.
Fitting Sequential NN
# Fit model1 : sequential NN
history = model.fit(X_train, y_train, epochs=30, # Set the number of epochs else Keras defaults to 1 epoch
validation_data=(X_valid, y_valid)) # Passing the validation sets enables Keras to measure the loss and accuracy metrics on the validation set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment