Skip to content

Instantly share code, notes, and snippets.

@rahulkrishnan98
Created January 18, 2019 03:04
Show Gist options
  • Select an option

  • Save rahulkrishnan98/ff4994bbd22ba8cd30ed8ac03e2af3c8 to your computer and use it in GitHub Desktop.

Select an option

Save rahulkrishnan98/ff4994bbd22ba8cd30ed8ac03e2af3c8 to your computer and use it in GitHub Desktop.
model=Sequential()
model.add(Conv2D(32,(3,3),strides=(1,1),padding='same',activation='relu',input_shape=(28,28,1)))
model.add(Flatten())
model.add(Dense(100,activation='relu'))
model.add(Dense(10,activation='softmax'))
model.compile(loss='categorical_crossentropy', optimizer='nadam', metrics=['accuracy'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment