diff test_mlp.py @ 135:0d8e721cc63c

Fixed bugs in dataset to make test_mlp.py work
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Mon, 12 May 2008 14:30:21 -0400
parents b4657441dd65
children 2698c0feeb54
line wrap: on
line diff
--- a/test_mlp.py	Fri May 09 17:38:57 2008 -0400
+++ b/test_mlp.py	Mon May 12 14:30:21 2008 -0400
@@ -11,7 +11,10 @@
                                         {'input':slice(2),'target':2})
     fprop=nnet(training_set)
 
-    print fprop(training_set)
+    output_ds = fprop(training_set)
+
+    for fieldname in output_ds.fieldNames():
+        print fieldname+"=",output_ds[fieldname]
 
 test0()