From cc69233487068292e21f6ca1830668d5ff6263b5 Mon Sep 17 00:00:00 2001 From: Absobel Date: Mon, 31 May 2021 20:06:35 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20print=20des=20resultats=20sans?= =?UTF-8?q?=20passer=20par=20le=20test=20=C3=A0=20chaque=20epoch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RUN.py | 13 +++++++------ network.py | 3 --- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/RUN.py b/RUN.py index b977ec9..d3eeaa5 100644 --- a/RUN.py +++ b/RUN.py @@ -3,18 +3,19 @@ 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% -# net.SGD(training_data, 30, 10, 3.0, test_data=test_data) +#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))) -# 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 = 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) - -print() \ No newline at end of file +# net.SGD(training_data, 30, 10, 100.0, test_data=test_data) \ No newline at end of file diff --git a/network.py b/network.py index e8f075a..78629cf 100644 --- a/network.py +++ b/network.py @@ -147,6 +147,3 @@ def sigmoid(z): def sigmoid_prime(z): """Derivative of the sigmoid function.""" return sigmoid(z)*(1-sigmoid(z)) - - -