Skip to content

Instantly share code, notes, and snippets.

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 um4ng-tiw/e91ecb7fd1dab64249cc56c9f5806e13 to your computer and use it in GitHub Desktop.
Save um4ng-tiw/e91ecb7fd1dab64249cc56c9f5806e13 to your computer and use it in GitHub Desktop.
from tensorflow.keras import regularizers
model = Sequential()
model.add(Flatten(input_shape = ((28,28))))
model.add(Dropout(0.05))
model.add(Dense(128, activation = "relu"))
model.add(Dense(64, activation = "relu"))
model.add(Dropout(0.05))
model.add(Dense(10,activation="softmax"))
model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment