Skip to content

Instantly share code, notes, and snippets.

@Blaizzy
Last active February 13, 2019 21:17
Show Gist options
  • Select an option

  • Save Blaizzy/2962ad016e08afab39287efd57915cc5 to your computer and use it in GitHub Desktop.

Select an option

Save Blaizzy/2962ad016e08afab39287efd57915cc5 to your computer and use it in GitHub Desktop.
from keras import models
from keras import layers
nn = models.Sequential()
nn.add(Dense(512, activation = 'relu', input_shape = (28*28,)))
nn.add(Dense(256, activation = 'relu'))
nn.add(Dense(10, activation = 'softmax'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment