Last active
September 15, 2018 09:05
-
-
Save sdcubber/07aa4896ea5838138d1a55e82a3ef72c 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
| from keras import models | |
| from keras import layers | |
| network = models.Sequential() | |
| network.add(layers.Dense(512, activation='relu', input_shape=(28 * 28, ))) | |
| network.add(layers.Dense(256, activation='relu')) | |
| network.add(...) | |
| network.add(layers.Dense(10, activation='softmax')) | |
| network.compile(optimizer='sgd', loss='categorical_crossentropy', metrics=['accuracy']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment