Created
July 9, 2018 11:38
-
-
Save siakon89/28f411fb48802acad59280ef81b21ac2 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
model = Sequential() | |
model.add(Conv2D(32, (2, 2), padding='same', | |
input_shape=x_train.shape[1:])) | |
model.add(Activation('relu')) | |
model.add(Conv2D(32, (2, 2))) | |
model.add(Activation('relu')) | |
model.add(MaxPooling2D(pool_size=(1, 1))) | |
model.add(Dropout(0.25)) | |
model.add(Conv2D(64, (2, 2), padding='same')) | |
model.add(Activation('relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Dropout(0.25)) | |
model.add(Conv2D(128, (2, 2), padding='same')) | |
model.add(Activation('relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Dropout(0.25)) | |
model.add(Conv2D(256, (2, 2), padding='same')) | |
model.add(Activation('relu')) | |
model.add(MaxPooling2D(pool_size=(2, 2))) | |
model.add(Dropout(0.25)) | |
model.add(Flatten()) | |
model.add(Dense(512)) | |
model.add(Activation('relu')) | |
model.add(Dropout(0.5)) | |
model.add(Dense(64)) | |
model.add(Activation('relu')) | |
model.add(Dropout(0.5)) | |
model.add(Dense(10)) | |
model.add(Activation('softmax')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment