TIPE-OperationValkyrie/RUN.py

21 lines
908 B
Python
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#RUN
import mnist_loader
training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
#print(list(training_data)[0][1])
import network
net = network.Network([784, 30, 10]) #Testé : 94,56% / 94,87%
net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
print("Results : {} / 10000".format(net.evaluate(test_data)))
# net = network.Network([784, 100, 10]) #Marche mieux apparemment
# net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
# net = network.Network([784, 100, 10]) #Marche pas bien apparemment
# net.SGD(training_data, 30, 10, 0.001, test_data=test_data)
# net = network.Network([784, 30, 10]) #Marche pas du tout apparemment
# net.SGD(training_data, 30, 10, 100.0, test_data=test_data)