Skip to content

Instantly share code, notes, and snippets.

@FourthBrain
Created April 9, 2021 18:58
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 FourthBrain/0e145b50728d7604fea1ee0a1b73784f to your computer and use it in GitHub Desktop.
Save FourthBrain/0e145b50728d7604fea1ee0a1b73784f to your computer and use it in GitHub Desktop.
MNIST.py
# Fully Connected Layer 6
model.add(Dropout(0.2)) # 20% dropout of randomly selected nodes
model.add(Dense(10)) # final 10 FCN nodes
model.add(Activation('softmax')) # softmax activation
model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=['accuracy'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment