diff test_mlp.py @ 133:b4657441dd65

Corrected typos
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Fri, 09 May 2008 13:38:54 -0400
parents 2ca8dccba270
children 0d8e721cc63c
line wrap: on
line diff
--- a/test_mlp.py	Thu May 08 00:54:14 2008 -0400
+++ b/test_mlp.py	Fri May 09 13:38:54 2008 -0400
@@ -1,9 +1,17 @@
 
 from mlp import *
+import dataset
 
 def test0():
-    nnet = OneHiddenLayerNNetClassifier(10,3,.1)
+    nnet = OneHiddenLayerNNetClassifier(10,3,.1,1000)
+    training_set = dataset.ArrayDataSet(numpy.array([[0, 0, 0],
+                                                     [0, 1, 1],
+                                                     [1, 0, 1],
+                                                     [1, 1, 1]]),
+                                        {'input':slice(2),'target':2})
+    fprop=nnet(training_set)
 
+    print fprop(training_set)
 
 test0()