|
@@ -5,6 +5,7 @@ print("Start session")
|
|
|
|
|
|
# Import python libraries
|
|
|
from scipy.special import expit
|
|
|
+import numpy as np
|
|
|
|
|
|
# Import local code to call
|
|
|
from lab import generator, trainer, benchmark
|
|
@@ -16,7 +17,7 @@ activationDerivative = lambda x : expit(x) * (1 - expit(x))
|
|
|
epochs = 1
|
|
|
|
|
|
# Session
|
|
|
-network = generator.generate(activation, activationDerivative, generator.gaussUnitDev)
|
|
|
+network = generator.generate(activation, activationDerivative, np.random.normal)
|
|
|
|
|
|
precisionBefore = benchmark.computePrecision(network)
|
|
|
|