Created
August 30, 2021 09:57
-
-
Save siddharthganjoo/fc8e4f67f5597aa173eae3faae71690c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense, Flatten, Dropout, Conv2D, BatchNormalization, MaxPool2D | |
model= Sequential() | |
model.add(Conv2D(32, (3,3), activation='relu', padding='same', input_shape=(28,28,1))) | |
model.add(Conv2D(32, (3,3), activation='relu')) | |
model.add(MaxPool2D(2,2)) | |
model.add(Dropout(0.25)) | |
model.add(Conv2D(64, (3,3), activation='relu')) | |
model.add(MaxPool2D(2,2)) | |
model.add(Flatten()) | |
model.add(Dense(64, activation='relu')) | |
model.add(Dropout(0.25)) | |
model.add(Dense(3, activation='softmax')) | |
model.summary() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment