Author: Simon Cross <[email protected]>
Branch: improve-docs-2
Changeset: r62886:6e161d4684b2
Date: 2013-03-30 08:38 +0200
http://bitbucket.org/pypy/pypy/changeset/6e161d4684b2/

Log:    Fix typo and inaccuracy in bpnn example's comments.

diff --git a/rpython/translator/goal/bpnn.py b/rpython/translator/goal/bpnn.py
--- a/rpython/translator/goal/bpnn.py
+++ b/rpython/translator/goal/bpnn.py
@@ -60,7 +60,7 @@
         # create weights
         self.wi = makeMatrix(self.ni, self.nh)
         self.wo = makeMatrix(self.nh, self.no)
-        # set them to random vaules
+        # set them to random values
         for i in range(self.ni):
             for j in range(self.nh):
                 self.wi[i][j] = rand(-2.0, 2.0)
@@ -177,7 +177,7 @@
         [[1,1], [0]]
     ]
 
-    # create a network with two input, two hidden, and two output nodes
+    # create a network with two input, three hidden, and one output nodes
     n = NN(2, 3, 1)
     # train it with some patterns
     n.train(pat, 2000)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to