Guest User

Untitled

a guest
Dec 13th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. training.shape (50000, 28, 28)
  2. testing.shape (2938, 28, 28)
  3.  
  4. model = Sequential()
  5. model.add(Conv2D(64, kernel_size=3, activation='relu', input_shape=(28,28,1)))
  6. model.add(Conv2D(32, kernel_size=3, activation='relu'))
  7. model.add(Flatten())
  8. model.add(Dense(10, activation='softmax'))
  9.  
  10.  
  11. Layer (type) Output Shape Param #
  12. =================================================================
  13. conv2d_1 (Conv2D) (None, 26, 26, 64) 640
  14. _________________________________________________________________
  15. conv2d_2 (Conv2D) (None, 24, 24, 32) 18464
  16. _________________________________________________________________
  17. flatten_1 (Flatten) (None, 18432) 0
  18. _________________________________________________________________
  19. dense_1 (Dense) (None, 10) 184330
  20. =================================================================
  21. Total params: 203,434
  22. Trainable params: 203,434
  23. Non-trainable params: 0
  24. _________________________________________________________________
  25.  
  26. model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])
Add Comment
Please, Sign In to add comment