diff options
Diffstat (limited to 'python/alla_net.py')
-rw-r--r-- | python/alla_net.py | 4 |
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 |