Created
September 24, 2017 12:35
-
-
Save emilwallner/071226fe323354d19532e415b89b62f6 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
# Convolutional network building | |
network = input_data(shape=[None, 32, 32, 3], | |
data_preprocessing=img_prep, | |
data_augmentation=img_aug) | |
# One set of layers | |
network = conv_2d(network, 32, 3, activation='relu') | |
network = max_pool_2d(network, 2) | |
network = fully_connected(network, 512, activation='relu') | |
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