Created
September 24, 2017 12:36
-
-
Save emilwallner/74d8c76ef3ea4757639e8ff8d3bd6835 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
network = input_data(shape=[None, 32, 32, 3], | |
data_preprocessing=img_prep, | |
data_augmentation=img_aug) | |
network = conv_2d(network, 32, 3, activation='relu') | |
network = max_pool_2d(network, 2) | |
network = conv_2d(network, 64, 3, activation='relu') | |
network = conv_2d(network, 64, 3, activation='relu') | |
network = max_pool_2d(network, 2) | |
network = fully_connected(network, 512, activation='relu') | |
#The dropout layer | |
network = dropout(network, 0.5) | |
network = fully_connected(network, 10, activation='softmax') | |
network = regression(network, optimizer='adam', | |
loss='categorical_crossentropy', | |
learning_rate=0.001) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment