Ajout d'un print des resultats sans passer par le test à chaque epoch
This commit is contained in:
parent
c6f4714a4e
commit
cc69233487
13
RUN.py
13
RUN.py
|
@ -3,18 +3,19 @@
|
||||||
import mnist_loader
|
import mnist_loader
|
||||||
training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
|
training_data, validation_data, test_data = mnist_loader.load_data_wrapper()
|
||||||
|
|
||||||
|
print(list(training_data)[0][1])
|
||||||
|
|
||||||
import network
|
import network
|
||||||
|
|
||||||
# net = network.Network([784, 30, 10]) #Testé : 94,56%
|
#net = network.Network([784, 30, 10]) #Testé : 94,56%
|
||||||
# net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
|
#net.SGD(training_data, 10, 10, 3.0, test_data=None)
|
||||||
|
#print("Results : {} / 10000".format(net.evaluate(test_data)))
|
||||||
|
|
||||||
# net = network.Network([784, 100, 10]) #Marche mieux apparemment
|
# net = network.Network([784, 100, 10]) #Marche mieux apparemment
|
||||||
# net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
|
# net.SGD(training_data, 30, 10, 3.0, test_data=test_data)
|
||||||
|
|
||||||
# net = network.Network([784, 100, 10]) #Marche pas bien apparemment
|
# net = network.Network([784, 100, 10]) #Marche pas bien apparemment
|
||||||
# net.SGD(training_data, 30, 10, 0.001, test_data=test_data)
|
# net.SGD(training_data, 30, 10, 0.001, test_data=test_data)
|
||||||
|
|
||||||
# net = network.Network([784, 30, 10]) #Marche pas du tout apparemment
|
# net = network.Network([784, 30, 10]) #Marche pas du tout apparemment
|
||||||
# net.SGD(training_data, 30, 10, 100.0, test_data=test_data)
|
# net.SGD(training_data, 30, 10, 100.0, test_data=test_data)
|
||||||
|
|
||||||
print()
|
|
|
@ -147,6 +147,3 @@ def sigmoid(z):
|
||||||
def sigmoid_prime(z):
|
def sigmoid_prime(z):
|
||||||
"""Derivative of the sigmoid function."""
|
"""Derivative of the sigmoid function."""
|
||||||
return sigmoid(z)*(1-sigmoid(z))
|
return sigmoid(z)*(1-sigmoid(z))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue