summaryrefslogtreecommitdiff
path: root/python/alla_net.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-08-23 19:46:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-08-23 19:46:30 (GMT)
commit3c5bdffd74d21f6c156730a91d3c78b59eb83b42 (patch)
treeaf5f6fd7ef987ce2668c32feecb4bca2cb96ce91 /python/alla_net.py
parent27d9a07db9d3bc2027003ba218acee940ae7ed3f (diff)
Added binary diffing examples.
Diffstat (limited to 'python/alla_net.py')
-rw-r--r--python/alla_net.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/alla_net.py b/python/alla_net.py
index 02c5f8d..78c0510 100644
--- a/python/alla_net.py
+++ b/python/alla_net.py
@@ -65,7 +65,7 @@ class NeuralNetwork():
self._o_error = y - o
self._o_delta = self._o_error * self.sigmoidPrime(o)
- # How much the hidden layer weights contributed to output error?
+ # How much the hidden layer weights contributed to output error?
self._z2_error = self._o_delta.dot(self._w2.T)
self._z2_delta = self._z2_error * self.sigmoidPrime(self._z2)
@@ -215,7 +215,7 @@ class DeepLearning():
inputs.append( self._vectorize_string(raw) )
- outputs.append( [ 1.0 if encrypted else 0.1 ] )
+ outputs.append( [ 1.0 if encrypted else 0.0 ] )
return inputs, outputs