Skip to content

Instantly share code, notes, and snippets.

@alvations
Created June 10, 2019 14:37
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 alvations/5d9ec507c0d71691ea210f66aacfa355 to your computer and use it in GitHub Desktop.
Save alvations/5d9ec507c0d71691ea210f66aacfa355 to your computer and use it in GitHub Desktop.
from keras.models import Sequential
from keras.layers import Dense, Activation
model = Sequential([
Dense(32, input_shape=(784,)),
Activation('relu'),
Dense(10),
Activation('softmax'),
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment