2021-05-31 16:26:26 +02:00
|
|
|
|
#RUN
|
|
|
|
|
|
|
|
|
|
import mnist_loader
|
|
|
|
|
training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
|
|
|
|
|
|
2021-05-31 20:06:35 +02:00
|
|
|
|
print(list(training_data)[0][1])
|
|
|
|
|
|
2021-05-31 16:26:26 +02:00
|
|
|
|
import network
|
|
|
|
|
|
2021-05-31 20:06:35 +02:00
|
|
|
|
#net = network.Network([784, 30, 10]) #Testé : 94,56%
|
|
|
|
|
#net.SGD(training_data, 10, 10, 3.0, test_data=None)
|
|
|
|
|
#print("Results : {} / 10000".format(net.evaluate(test_data)))
|
2021-05-31 16:26:26 +02:00
|
|
|
|
|
2021-05-31 20:06:35 +02:00
|
|
|
|
# net = network.Network([784, 100, 10]) #Marche mieux apparemment
|
2021-05-31 16:32:22 +02:00
|
|
|
|
# net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
|
2021-05-31 16:26:26 +02:00
|
|
|
|
|
|
|
|
|
# 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
|
2021-05-31 20:06:35 +02:00
|
|
|
|
# net.SGD(training_data, 30, 10, 100.0, test_data=test_data)
|