Last active
April 24, 2016 06:15
-
-
Save bigsnarfdude/57ff7d6095f7ee83d4195d1fed26388b to your computer and use it in GitHub Desktop.
784 input neurons, 60 neurons, 10 output neurons
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
import mnist_loader | |
training_data, validation_data, test_data = mnist_loader.load_data_wrapper() | |
import network2 | |
net = network2.Network([784, 30, 10], cost=network2.CrossEntropyCost) | |
net.large_weight_initializer() | |
net.SGD(training_data, 30, 10, 0.5, evaluation_data=test_data, monitor_evaluation_accuracy=True) | |
<<<<<<<<<< Snippet Output >>>>>>>>>>> | |
In [12]: net.SGD(training_data, 30, 10, 0.5, evaluation_data=test_data, monitor_evaluation_accuracy=True) | |
Epoch 0 training complete | |
Accuracy on evaluation data: 9135 / 10000 | |
Epoch 1 training complete | |
Accuracy on evaluation data: 9274 / 10000 | |
Epoch 2 training complete | |
Accuracy on evaluation data: 9300 / 10000 | |
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
# network basic | |
net = Network([784, 60, 10]) | |
net.SGD(training_data, 60, 10, 3.0, test_data=test_data) | |
Epoch 59: 9597 / 10000 | |
net.SGD(training_data, 60, 10, 2.0, test_data=test_data) | |
Epoch 59: 9598 / 10000 | |
net.SGD(training_data, 60, 10, 1.0, test_data=test_data) | |
Epoch 59: 9540 / 10000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment